net: mvpp2: fix phylink handling of invalid PHY modes
authorBaruch Siach <baruch@tkos.co.il>
Tue, 4 Dec 2018 14:03:53 +0000 (16:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Dec 2018 05:17:15 +0000 (21:17 -0800)
commit0fb628f0f250c74b1023edd0ca4a57c8b35b9b2c
treeecea9421512b082b4d88a24d4f3d04508b0c9a17
parent01b3fd5ac97caffb8e5d5bd85086da33db3b361f
net: mvpp2: fix phylink handling of invalid PHY modes

The .validate phylink callback should empty the supported bitmap when
the interface mode is invalid.

Cc: Maxime Chevallier <maxime.chevallier@bootlin.com>
Cc: Antoine Tenart <antoine.tenart@bootlin.com>
Reported-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c