forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/8390/ax88796.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /* drivers/net/ethernet/8390/ax88796.c
23 *
34 * Copyright 2005,2007 Simtec Electronics
....@@ -5,10 +6,6 @@
56 *
67 * Asix AX88796 10/100 Ethernet controller support
78 * 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.
129 */
1310
1411 #include <linux/module.h>
....@@ -377,9 +374,7 @@
377374 return ret;
378375 }
379376
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);
383378
384379 netdev_info(dev, "PHY driver [%s] (mii_bus:phy_addr=%s, irq=%d)\n",
385380 phy_dev->drv->name, phydev_name(phy_dev), phy_dev->irq);