OSDN Git Service

net: dsa: bcm_sf2: Add support for optional reset controller line
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 4 Nov 2019 21:51:39 +0000 (13:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Nov 2019 02:06:38 +0000 (18:06 -0800)
commiteee87e4377a4b86dc2eea0ade162b0dc33f40576
treea5c32c181178bec55759b98097d19a2e4c206791
parent9482d036cc02848f7001f2cc13e417fae0f4a1e8
net: dsa: bcm_sf2: Add support for optional reset controller line

Grab an optional and exclusive reset controller line for the switch and
manage it during probe/remove functions accordingly. For 7278 devices we
change bcm_sf2_sw_rst() to use the reset controller line since the
WATCHDOG_CTRL register does not reset the switch contrary to stated
documentation.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/bcm_sf2.h