]> git.baikalelectronics.ru Git - kernel.git/commit
net: mdio: mscc-miim: add lan966x internal phy reset support
authorMichael Walle <michael@walle.cc>
Fri, 18 Mar 2022 20:13:24 +0000 (21:13 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 22 Mar 2022 05:33:02 +0000 (22:33 -0700)
commit66d709032ff895868a685ba0ebaa8a73f9be20da
tree320e722128651ad2b3744acc810f21fab2233cfc
parent0937c25a99ebc44f5febd5e6c38364101ba05e0e
net: mdio: mscc-miim: add lan966x internal phy reset support

The LAN966x has two internal PHYs which are in reset by default. The
driver already supported the internal PHYs of the SparX-5. Now add
support for the LAN966x, too. Add a new compatible to distinguish them.

The LAN966x has additional control bits in this register, thus convert
the regmap_write() to regmap_update_bits() to leave the remaining bits
untouched. This doesn't change anything for the SparX-5 SoC, because
there, the register consists only of reset bits.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/mdio-mscc-miim.c