]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: ksz: Add reset GPIO handling
authorMarek Vasut <marex@denx.de>
Mon, 10 Dec 2018 13:43:06 +0000 (14:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Dec 2018 20:07:56 +0000 (12:07 -0800)
commit815173d054892f309e3b474284f4bbc46fc34e66
treea89b500b359e10fed23a61c28c65b373d0aac7c9
parenta01de17c480d4802e326b4e3b12e06efbc978ab0
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 <marex@denx.de>
Cc: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Cc: Woojung Huh <woojung.huh@microchip.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Tristram Ha <Tristram.Ha@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_priv.h