net: dsa: Add support for a switch reset gpio
authorAndrew Lunn <andrew@lunn.ch>
Fri, 20 Nov 2015 02:56:23 +0000 (03:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Nov 2015 16:53:10 +0000 (11:53 -0500)
commitcc30c16344fc3a25153175c7eb9037b2136cd466
tree47beff192fa89bd934323581f5cc9fed18052a0a
parent3f8c0f7efb4fcac11f31afa97584d06118c614bb
net: dsa: Add support for a switch reset gpio

Some boards have a gpio line tied to the switch reset pin. Allow this
gpio to be retrieved from the device tree, and take the switch out of
reset before performing the probe.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/dsa/dsa.txt
include/net/dsa.h
net/dsa/dsa.c