]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: bcm7xxx: fix spurious MDIO failures during workaround
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 24 Mar 2014 23:36:48 +0000 (16:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Mar 2014 20:19:24 +0000 (16:19 -0400)
commit329daafc11e4eba776106116cb1a742659b21cf2
treed0be668523442a9793db20a01dd370eb44a66ff5
parente1dd939472ecd592606d6d938771481d4893be02
net: phy: bcm7xxx: fix spurious MDIO failures during workaround

Writing first to the AFE registers, and then the VCO, RCAL, RC_CAL
registers turned out to unveil some spurious MDIO read/write failures
which would make the workaround partially applied. The fix is to write
first to the VCO, RCAL, RC_CAL registers, and then write to the AFE
registers.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/bcm7xxx.c