| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* drivers/net/ethernet/8390/ax88796.c |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright 2005,2007 Simtec Electronics |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Asix AX88796 10/100 Ethernet controller support |
|---|
| 7 | 8 | * Based on ne.c, by Donald Becker, et-al. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 10 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 11 | | - * published by the Free Software Foundation. |
|---|
| 12 | 9 | */ |
|---|
| 13 | 10 | |
|---|
| 14 | 11 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 377 | 374 | return ret; |
|---|
| 378 | 375 | } |
|---|
| 379 | 376 | |
|---|
| 380 | | - /* mask with MAC supported features */ |
|---|
| 381 | | - phy_dev->supported &= PHY_BASIC_FEATURES; |
|---|
| 382 | | - phy_dev->advertising = phy_dev->supported; |
|---|
| 377 | + phy_set_max_speed(phy_dev, SPEED_100); |
|---|
| 383 | 378 | |
|---|
| 384 | 379 | netdev_info(dev, "PHY driver [%s] (mii_bus:phy_addr=%s, irq=%d)\n", |
|---|
| 385 | 380 | phy_dev->drv->name, phydev_name(phy_dev), phy_dev->irq); |
|---|