aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/microchip
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2022-08-31 13:18:55 +0200
committerDavid S. Miller <davem@davemloft.net>2022-09-02 11:37:27 +0100
commitf4c1f51cea4e145995076d5dae98486934e8f281 (patch)
tree4d8cb186c5b146ec1d22c85a6bebcbc8c8af53a5 /drivers/net/ethernet/microchip
parentdt-bindings: net: sparx5: don't require a reset line (diff)
downloadlinux-dev-f4c1f51cea4e145995076d5dae98486934e8f281.tar.xz
linux-dev-f4c1f51cea4e145995076d5dae98486934e8f281.zip
net: lan966x: make reset optional
There is no dedicated reset for just the switch core. The reset which is used up until now, is more of a global reset, resetting almost the whole SoC and cause spurious errors by doing so. Make it possible to handle the reset elsewhere and make the reset optional. Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/microchip')
-rw-r--r--drivers/net/ethernet/microchip/lan966x/lan966x_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
index 2ad078608c45..e2c77f954a3d 100644
--- a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
+++ b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
@@ -971,7 +971,8 @@ static int lan966x_reset_switch(struct lan966x *lan966x)
int val = 0;
int ret;
- switch_reset = devm_reset_control_get_shared(lan966x->dev, "switch");
+ switch_reset = devm_reset_control_get_optional_shared(lan966x->dev,
+ "switch");
if (IS_ERR(switch_reset))
return dev_err_probe(lan966x->dev, PTR_ERR(switch_reset),
"Could not obtain switch reset");