]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvmdio: check the MII_ADDR_C45 bit is not set for smi operations
authorAntoine Ténart <antoine.tenart@free-electrons.com>
Thu, 15 Jun 2017 14:43:22 +0000 (16:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jun 2017 16:27:12 +0000 (12:27 -0400)
commitbf4c9dab064bbacbd18d9996ad7abcc08c1645f6
tree0d72f599578523e2e37fa29c6ab34b119e454ec6
parentc11d74993521ee03019907195e340940bd707b63
net: mvmdio: check the MII_ADDR_C45 bit is not set for smi operations

Add a check for the read and write smi operations, to ensure the
MII_ADDR_C45 bit isn't set. This will be needed as soon as the xSMI
support is added to the mvmdio driver.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvmdio.c