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)
commit7049f9b5d0529a8fefaae681e57baeb31bd2d40a
treec26ad7257c1ff015e2f2b9a6bdb55cb67874ea1a
parent6ca5081526228571a70ef0160fd44da3fe661ccb
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