net: dsa: ksz: Add reset GPIO handling
authorMarek Vasut <[email protected]>
Mon, 10 Dec 2018 13:43:06 +0000 (14:43 +0100)
committerDavid S. Miller <[email protected]>
Mon, 10 Dec 2018 20:07:56 +0000 (12:07 -0800)
commit924352c3d6347d96528cebcef9461cebe928c117
treea89b500b359e10fed23a61c28c65b373d0aac7c9
parenta324d6e454aa986d64cb650caa8ed7150023b3f3
net: dsa: ksz: Add reset GPIO handling

Add code to handle optional reset GPIO in the KSZ switch driver. The switch
has a reset GPIO line which can be controlled by the CPU, so make sure it is
configured correctly in such setups.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Vivien Didelot <[email protected]>
Cc: Woojung Huh <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Tristram Ha <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_priv.h