Skip to contentSkip to conversation

r8169:Actually from r810x_pll_power_up

PATCH In review Corcodel Marian 2 participants 2 messages Aug 26, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 r8169:Actually from r810x_pll_power_up

Actually from r810x_pll_power_up function i removed function
r810x_phy_power_up because is two situation.One run from rtl8169_phy_reset
wich already power on interface after reset MII_BMCR and two i placed supplementary on __rtl8169_resume.

drivers/net/ethernet/realtek/r8169.c +1 -2
index 91cf3a6..2d712a4 100644
@@ -4699,7 +4699,6 @@ static void r810x_pll_power_up(struct rtl8169_private *tp)
 {
 	void __iomem *ioaddr = tp->mmio_addr;
 
-	r810x_phy_power_up(tp);
 
 	switch (tp->mac_version) {
 	case RTL_GIGA_MAC_VER_07:
@@ -7862,7 +7861,7 @@ static void __rtl8169_resume(struct net_device *dev)
 	struct rtl8169_private *tp = netdev_priv(dev);
 
 	netif_device_attach(dev);
-
+	r810x_phy_power_up(tp);	
 	rtl_pll_power_up(tp);
 
 	rtl_lock_work(tp);
Signature · 1 line
2.1.4
#1 lore raw

Corcodel Marian <[email protected]> :

Quoted 4 lines

Actually from r810x_pll_power_up function i removed function
r810x_phy_power_up because is two situation.One run from rtl8169_phy_reset
wich already power on interface after reset MII_BMCR and two i placed supplementary on __rtl8169_resume.

r810x_phy_power_up and r810x_pll_power_up are dedicated to 810x chipsets.

__rtl8169_resume is used by all chipsets.

Signature · 3 lines
Ueimor

C'est systématiquement débile mais c'est toujours inattendu.