summaryrefslogtreecommitdiffstats
path: root/net/wireless/core.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2019-03-01 19:53:57 +0100
committerDavid S. Miller <davem@davemloft.net>2019-03-03 21:03:28 -0800
commitc6195a8bdfc62a7cecf7df685e64847a4b700275 (patch)
tree9c47fa22198cba80aec31ad558b6823861f79956 /net/wireless/core.h
parent9b1b4c00371bbbdac796d6915e0372d725c4e338 (diff)
downloadlinux-stable-c6195a8bdfc62a7cecf7df685e64847a4b700275.tar.gz
linux-stable-c6195a8bdfc62a7cecf7df685e64847a4b700275.tar.bz2
linux-stable-c6195a8bdfc62a7cecf7df685e64847a4b700275.zip
net: dsa: mv88e6xxx: handle unknown duplex modes gracefully in mv88e6xxx_port_set_duplex
When testing another issue I faced the problem that mv88e6xxx_port_setup_mac() failed due to DUPLEX_UNKNOWN being passed as argument to mv88e6xxx_port_set_duplex(). We should handle this case gracefully and return -EOPNOTSUPP, like e.g. mv88e6xxx_port_set_speed() is doing it. Fixes: 7f1ae07b51e8 ("net: dsa: mv88e6xxx: add port duplex setter") Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wireless/core.h')
0 files changed, 0 insertions, 0 deletions