Skip to content

Commit 6bb9681

Browse files
mansrkuba-moo
authored andcommitted
net: dsa: lan9303: fix reset on probe
The reset input to the LAN9303 chip is active low, and devicetree gpio handles reflect this. Therefore, the gpio should be requested with an initial state of high in order for the reset signal to be asserted. Other uses of the gpio already use the correct polarity. Fixes: a129259 ("net: dsa: add new DSA switch driver for the SMSC-LAN9303") Signed-off-by: Mans Rullgard <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Florian Fianelil <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 85d24ad commit 6bb9681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dsa/lan9303-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ static int lan9303_probe_reset_gpio(struct lan9303 *chip,
13101310
struct device_node *np)
13111311
{
13121312
chip->reset_gpio = devm_gpiod_get_optional(chip->dev, "reset",
1313-
GPIOD_OUT_LOW);
1313+
GPIOD_OUT_HIGH);
13141314
if (IS_ERR(chip->reset_gpio))
13151315
return PTR_ERR(chip->reset_gpio);
13161316

0 commit comments

Comments
 (0)