]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: lan9303: fix reset on probe
authorMans Rullgard <mans@mansr.com>
Wed, 9 Feb 2022 14:54:54 +0000 (14:54 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Feb 2022 22:22:20 +0000 (14:22 -0800)
commita71ffcbd7c2f633349c3b1f93ec8873b79d1507c
treee428f4c0798e844122b4a420dbedcd55457aafe6
parentaa99a3502fddf18fe08cd84dd99c1e05564a6a70
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: 85bad8d1801c ("net: dsa: add new DSA switch driver for the SMSC-LAN9303")
Signed-off-by: Mans Rullgard <mans@mansr.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fianelil <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220209145454.19749-1-mans@mansr.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/lan9303-core.c