net: phy: mscc-miim: reject clause 45 register accesses
authorMichael Walle <michael@walle.cc>
Tue, 5 Apr 2022 12:02:33 +0000 (14:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2022 12:57:48 +0000 (13:57 +0100)
commit8d90991e5bf7fdb9f264f5f579d18969913054b7
tree9c509b865bd0d830fb764c35854625918d58009f
parent9386d1811f343db5fc11aba10441108a7411e8f1
net: phy: mscc-miim: reject clause 45 register accesses

The driver doesn't support clause 45 register access yet, but doesn't
check if the access is a c45 one either. This leads to spurious register
reads and writes. Add the check.

Fixes: 542671fe4d86 ("net: phy: mscc-miim: Add MDIO driver")
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mdio/mdio-mscc-miim.c