]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: broadcom: Fix auxiliary control register reads
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 22 May 2018 23:22:26 +0000 (16:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 19:18:00 +0000 (15:18 -0400)
commit5e1bb1434da9fefdc8fd98e205a0e97652cc0d5b
treeda35b9fece1168c29fc03c27f212800f97d0f4b4
parent3154b7e7cec1c314aa7783d4e88582faa4e81575
net: phy: broadcom: Fix auxiliary control register reads

We are currently doing auxiliary control register reads with the shadow
register value 0b111 (0x7) which incidentally is also the selector value
that should be present in bits [2:0]. Fix this by using the appropriate
selector mask which is defined (MII_BCM54XX_AUXCTL_SHDWSEL_MASK).

This does not have a functional impact yet because we always access the
MII_BCM54XX_AUXCTL_SHDWSEL_MISC (0x7) register in the current code.
This might change at some point though.

Fixes: c53f5951ab04 ("net: phy: broadcom: add bcm54xx_auxctl_read")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/bcm-phy-lib.c