]> git.hungrycats.org Git - linux/commit
net: pcs: xpcs: fix the wrong register that was written back
authorJiawen Wu <jiawenwu@trustnetic.com>
Tue, 24 Sep 2024 02:28:57 +0000 (10:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:01:05 +0000 (12:01 +0200)
commit01feafd82a6878901e66494c6710635c4a0e81e0
tree610e82d2293b417897c8beddbbafe75892ee02a0
parent765f033f26a9c97ffb2c7ee00b7d846ea26042c1
net: pcs: xpcs: fix the wrong register that was written back

commit 93ef6ee5c20e9330477930ec6347672c9e0cf5a6 upstream.

The value is read from the register TXGBE_RX_GEN_CTL3, and it should be
written back to TXGBE_RX_GEN_CTL3 when it changes some fields.

Cc: stable@vger.kernel.org
Fixes: f629acc6f210 ("net: pcs: xpcs: support to switch mode for Wangxun NICs")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reported-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/20240924022857.865422-1-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/pcs/pcs-xpcs-wx.c