OSDN Git Service

net: mdio: mdiobus_register: update validation test
authorAndrew Lunn <andrew@lunn.ch>
Mon, 9 Jan 2023 15:30:43 +0000 (16:30 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Jan 2023 23:53:36 +0000 (15:53 -0800)
commit555d64c6d8e551a149ce29024b9318d3523f2842
tree551f1e8d67ed3cb46b3441343c0afc086e2765e6
parent3a65e5f91780ecfc98ca0cf374843be533ade591
net: mdio: mdiobus_register: update validation test

Now that C45 uses its own read/write methods, the validation performed
when a bus is registers needs updating. All combinations of C22 and
C45 are supported, but both read and write methods must be provided,
read only busses are not supported etc.

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