net: dsa: mv88e6xxx: add helper to hardware reset
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 5 Dec 2016 22:30:26 +0000 (17:30 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2016 16:32:28 +0000 (11:32 -0500)
commit309eca6db96ad69470220fa12c0bdc1ee64da8af
tree259d93e44e3239e3840ade542f20445fbf607a3a
parent4ac4b5a623f808e64d4d17b14bc23e934eaed008
net: dsa: mv88e6xxx: add helper to hardware reset

Add an helper to toggle the eventual GPIO connected to the reset pin.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c