]> git.proxmox.com Git - mirror_ubuntu-focal-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)
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 <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