]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: add port_cleanup function
authorTristram Ha <Tristram.Ha@microchip.com>
Sat, 23 Feb 2019 00:36:51 +0000 (16:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 01:49:59 +0000 (17:49 -0800)
commit20962e7f2bef35cf19559d556b61994a07f9cc48
treec26ad7257c1ff015e2f2b9a6bdb55cb67874ea1a
parentdf6bf355427eefc838428eaf86cc49c34766c12d
net: dsa: microchip: add port_cleanup function

Add port_cleanup function to reset some device variables when the port is
disabled.  Add a mutex to make sure changing those variables is
thread-safe.

Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz9477.c
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_common.h
drivers/net/dsa/microchip/ksz_priv.h