mediatek: sync MT7988 USXGMII with SDK driver
The USXGMII driver in SDK was heavily refactored, some bugs have been
fixed and it has switched to use phylink_pcs. Follow up with changes
in SDK driver and sync our on-top-of-mainline driver with the SDK
driver.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit ba58245e83)
			
			
This commit is contained in:
		
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -103,7 +103,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net> | |||||||
|   |   | ||||||
|  	ret = mtk_mdio_busy_wait(eth); |  	ret = mtk_mdio_busy_wait(eth); | ||||||
|  	if (ret < 0) |  	if (ret < 0) | ||||||
| @@ -1018,6 +1061,7 @@ static int mtk_mdio_init(struct mtk_eth | @@ -1013,6 +1056,7 @@ static int mtk_mdio_init(struct mtk_eth | ||||||
|  	eth->mii_bus->name = "mdio"; |  	eth->mii_bus->name = "mdio"; | ||||||
|  	eth->mii_bus->read = mtk_mdio_read; |  	eth->mii_bus->read = mtk_mdio_read; | ||||||
|  	eth->mii_bus->write = mtk_mdio_write; |  	eth->mii_bus->write = mtk_mdio_write; | ||||||
|   | |||||||
| @@ -14,7 +14,7 @@ Signed-off-by: René van Dorst <opensource@vdorst.com> | |||||||
|  |  | ||||||
| --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c | --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c | ||||||
| +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c | +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c | ||||||
| @@ -4638,6 +4638,7 @@ static const struct net_device_ops mtk_n | @@ -4633,6 +4633,7 @@ static const struct net_device_ops mtk_n | ||||||
|   |   | ||||||
|  static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np) |  static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np) | ||||||
|  { |  { | ||||||
| @@ -22,7 +22,7 @@ Signed-off-by: René van Dorst <opensource@vdorst.com> | |||||||
|  	const __be32 *_id = of_get_property(np, "reg", NULL); |  	const __be32 *_id = of_get_property(np, "reg", NULL); | ||||||
|  	phy_interface_t phy_mode; |  	phy_interface_t phy_mode; | ||||||
|  	struct phylink *phylink; |  	struct phylink *phylink; | ||||||
| @@ -4796,6 +4797,9 @@ static int mtk_add_mac(struct mtk_eth *e | @@ -4791,6 +4792,9 @@ static int mtk_add_mac(struct mtk_eth *e | ||||||
|  		register_netdevice_notifier(&mac->device_notifier); |  		register_netdevice_notifier(&mac->device_notifier); | ||||||
|  	} |  	} | ||||||
|   |   | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Golle
					Daniel Golle