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)
commit9918542e2d02f259f909a956e41bd6d5827fa422
treed0be668523442a9793db20a01dd370eb44a66ff5
parenta3622f2c824135a7ce235a61bf9ff5688e8f576b
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