From: jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Tue, 3 Aug 2010 03:04:34 +0000 (+0000)
Subject: ip17xx: r21709 broke VLAN functionality on the IP175C switch, add back mdelay() to... 
X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/fe9e70274f53d9630f8e7c51d989fa07b7d5d70d

ip17xx: r21709 broke VLAN functionality on the IP175C switch, add back mdelay() to wait before reading back the phy state, fixes ethernet on the DIR-300 and possibly others


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22468 3c298f89-4303-0410-b956-a3cf2f4a3e73
---

diff --git a/target/linux/generic/files/drivers/net/phy/ip17xx.c b/target/linux/generic/files/drivers/net/phy/ip17xx.c
index 262123a57..864168ffd 100644
--- a/target/linux/generic/files/drivers/net/phy/ip17xx.c
+++ b/target/linux/generic/files/drivers/net/phy/ip17xx.c
@@ -373,6 +373,7 @@ static int setPhy(struct ip17xx_state *state, reg mii, u16 value)
 	err = ip_phy_write(state, mii.p, mii.m, value);
 	if (err < 0)
 		return err;
+	mdelay(2);
 	getPhy(state, mii);
 	return 0;
 }