diff options
author | Andrew Lunn <andrew@lunn.ch> | 2023-01-09 16:30:44 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-10 15:53:36 -0800 |
commit | b063b1924fd9bf0bc157cf644764dc2151d04ccc (patch) | |
tree | 13353456f0dcf24a6d2af0d6dab3be4f5a21b899 /include/linux/mdio.h | |
parent | 555d64c6d8e551a149ce29024b9318d3523f2842 (diff) |
net: mdio: C22 is now optional, EOPNOTSUPP if not provided
When performing a C22 operation, check that the bus driver actually
provides the methods, and return -EOPNOTSUPP if not. C45 only busses
do exist, and in future their C22 methods will be NULL.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/mdio.h')
0 files changed, 0 insertions, 0 deletions