]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:41:09 +0000 (14:41 +0200)
commitd8e270169b3c5a3447ae7bd220b888081322924d
tree0a5be87ce55ee05be214ac8dd7a453380d90f7bf
parent8a5b740b4eebbaeb6b16a2acd37e2ad1011a5a93
net: phy: mscc-miim: reject clause 45 register accesses

BugLink: https://bugs.launchpad.net/bugs/1969107
[ Upstream commit 8d90991e5bf7fdb9f264f5f579d18969913054b7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit fb45e80b2194ee6f615dfde4ab86da4144811126)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/mdio/mdio-mscc-miim.c