diff options
author | Baruch Siach <baruch@tkos.co.il> | 2019-12-19 12:48:22 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-12 14:21:50 +0300 |
commit | a51aa28f46763f79cfa1fd8ffc5e45c1967e3550 (patch) | |
tree | 2c7136b768321f9e5431bfadfb3185865c0af337 /drivers/hid/hid-sjoy.c | |
parent | 0ce3f9f1fdea65ada400c2c45f76a719c5b9f4a4 (diff) | |
download | linux-a51aa28f46763f79cfa1fd8ffc5e45c1967e3550.tar.xz |
net: dsa: mv88e6xxx: force cmode write on 6141/6341
[ Upstream commit f7a48b68abd9b20ce1ac6298aaaa3c4d158271dd ]
mv88e6xxx_port_set_cmode() relies on cmode stored in struct
mv88e6xxx_port to skip cmode update when the requested value matches the
cached value. It turns out that mv88e6xxx_port_hidden_write() might
change the port cmode setting as a side effect, so we can't rely on the
cached value to determine that cmode update in not necessary.
Force cmode update in mv88e6341_port_set_cmode(), to make
serdes configuration work again. Other mv88e6xxx_port_set_cmode()
callers keep the current behaviour.
This fixes serdes configuration of the 6141 switch on SolidRun Clearfog
GT-8K.
Fixes: 7a3007d22e8 ("net: dsa: mv88e6xxx: fully support SERDES on Topaz family")
Reported-by: Denis Odintsov <d.odintsov@traviangames.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hid/hid-sjoy.c')
0 files changed, 0 insertions, 0 deletions