From: Steve Glendinning <steve.glendinning@shawell.net> Date: 2012-11-06 10:08:57
The device datasheet specifies the BUSY bit must be set when reading
or writing phy registers. This patch ensures we do that.
Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
---
drivers/net/usb/smsc95xx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -167,7 +167,7 @@ static int smsc95xx_mdio_read(struct net_device *netdev, int phy_id, int idx)/* set the address, index & direction (read from PHY) */phy_id&=dev->mii.phy_id_mask;idx&=dev->mii.reg_num_mask;-addr=(phy_id<<11)|(idx<<6)|MII_READ_;+addr=(phy_id<<11)|(idx<<6)|MII_READ_|MII_BUSY_;ret=smsc95xx_write_reg(dev,MII_ADDR,addr);check_warn_goto_done(ret,"Error writing MII_ADDR");
@@ -204,7 +204,7 @@ static void smsc95xx_mdio_write(struct net_device *netdev, int phy_id, int idx,/* set the address, index & direction (write to PHY) */phy_id&=dev->mii.phy_id_mask;idx&=dev->mii.reg_num_mask;-addr=(phy_id<<11)|(idx<<6)|MII_WRITE_;+addr=(phy_id<<11)|(idx<<6)|MII_WRITE_|MII_BUSY_;ret=smsc95xx_write_reg(dev,MII_ADDR,addr);check_warn_goto_done(ret,"Error writing MII_ADDR");
From: David Miller <davem@davemloft.net> Date: 2012-11-07 20:39:03
From: Steve Glendinning <steve.glendinning@shawell.net>
Date: Tue, 6 Nov 2012 10:08:53 +0000
The device datasheet specifies the BUSY bit must be set when reading
or writing phy registers. This patch ensures we do that.
Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
From: David Miller <davem@davemloft.net> Date: 2012-11-09 21:08:52
From: Steve Glendinning <steve.glendinning@shawell.net>
Date: Tue, 6 Nov 2012 10:08:53 +0000
The device datasheet specifies the BUSY bit must be set when reading
or writing phy registers. This patch ensures we do that.
Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Steve please let me know why you only submitted patch #2
of an apparent 2 part series.
If I don't get a response soon I'm just going to toss this
patch instead of letting it simply rot in patchwork.
Thanks.
From: Steve Glendinning <hidden> Date: 2012-11-13 17:44:40
Steve please let me know why you only submitted patch #2
of an apparent 2 part series.
My bad being sloppy when formatting the patch for submission, sorry.
The first patch in my rebased tree was one you've already accepted
into net but hadn't pulled into net-next yet. I just sent the second
one, and I forgot to remove the 2/2 from it.
They don't depend on each other, they're independent bugfixes.
Sorry again for the sloppyness.
From: David Miller <davem@davemloft.net> Date: 2012-11-13 19:26:20
From: Steve Glendinning <redacted>
Date: Tue, 13 Nov 2012 17:44:39 +0000
quoted
Steve please let me know why you only submitted patch #2
of an apparent 2 part series.
My bad being sloppy when formatting the patch for submission, sorry.
The first patch in my rebased tree was one you've already accepted
into net but hadn't pulled into net-next yet. I just sent the second
one, and I forgot to remove the 2/2 from it.
They don't depend on each other, they're independent bugfixes.
Sorry again for the sloppyness.