diff options
author | Marek BehĂșn <[email protected]> | 2019-11-18 19:15:05 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-11-18 17:59:32 -0800 |
commit | 075e238d12c21c8bde700d21fb48be7a3aa80194 (patch) | |
tree | ed3abf590650b70be12436995e57c581c8b8f7e8 /lib/mpi/mpi-mul.c | |
parent | ca749bbb108c24a876014c804f9777c545be4d59 (diff) |
mdio_bus: fix mdio_register_device when RESET_CONTROLLER is disabled
When CONFIG_RESET_CONTROLLER is disabled, the
devm_reset_control_get_exclusive function returns -ENOTSUPP. This is not
handled in subsequent check and then the mdio device fails to probe.
When CONFIG_RESET_CONTROLLER is enabled, its code checks in OF for reset
device, and since it is not present, returns -ENOENT. -ENOENT is handled.
Add -ENOTSUPP also.
This happened to me when upgrading kernel on Turris Omnia. You either
have to enable CONFIG_RESET_CONTROLLER or use this patch.
Signed-off-by: Marek BehĂșn <[email protected]>
Fixes: 71dd6c0dff51b ("net: phy: add support for reset-controller")
Cc: Dmitry Torokhov <[email protected]>
Cc: Andrew Lunn <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions