lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 30 Mar 2022 13:02:10 +0200
From:   Michael Walle <>
To:     Horatiu Vultur <>,
        Jakub Kicinski <>,
        Paolo Abeni <>,
        Philipp Zabel <>
Cc:,,, Michael Walle <>
Subject: [PATCH RFC net-next] net: lan966x: make PHY reset support optional

The PHY subsystem as well as the MIIM mdio driver (in case of the
integrated PHYs) will already take care of the resets of any external
and internal PHY. There is no need for this reset anymore, so mark it
optionally to be backwards compatible.

Signed-off-by: Michael Walle <>

Horatiu, what do you think, should it be removed altogether? There is
no user for that in mainline and I don't know about downstream but the
reset driver doesn't really work (as it also resets the GPIO/SGPIO)
and conceptionally the property is on the wrong DT node. All of the
drawbacks should have been addressed by my patches for the miim [1]
and the pinctrl driver [2].


 drivers/net/ethernet/microchip/lan966x/lan966x_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
index 1f8c67f0261b..0765064d2845 100644
--- a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
+++ b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
@@ -916,7 +916,7 @@ static int lan966x_reset_switch(struct lan966x *lan966x)
 		return dev_err_probe(lan966x->dev, PTR_ERR(switch_reset),
 				     "Could not obtain switch reset");
-	phy_reset = devm_reset_control_get_shared(lan966x->dev, "phy");
+	phy_reset = devm_reset_control_get_optional_shared(lan966x->dev, "phy");
 	if (IS_ERR(phy_reset))
 		return dev_err_probe(lan966x->dev, PTR_ERR(phy_reset),
 				     "Could not obtain phy reset\n");

Powered by blists - more mailing lists