]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
r8152: fix incorrect register write to USB_UPHY_XTAL
authorChih Kai Hsu <hsu.chih.kai@realtek.com>
Thu, 26 Mar 2026 07:39:23 +0000 (15:39 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 31 Mar 2026 08:28:26 +0000 (10:28 +0200)
commit48afd5124fd6129c46fd12cb06155384b1c4a0c4
tree7757e8eacb9b983cc1bbdefc1c6e30015770ee89
parent7fae6616704a17c64438ad4b73a6effa6c03ffda
r8152: fix incorrect register write to USB_UPHY_XTAL

The old code used ocp_write_byte() to clear the OOBS_POLLING bit
(BIT(8)) in the USB_UPHY_XTAL register, but this doesn't correctly
clear a bit in the upper byte of the 16-bit register.

Fix this by using ocp_write_word() instead.

Fixes: 195aae321c82 ("r8152: support new chips")
Signed-off-by: Chih Kai Hsu <hsu.chih.kai@realtek.com>
Reviewed-by: Hayes Wang <hayeswang@realtek.com>
Link: https://patch.msgid.link/20260326073925.32976-454-nic_swsd@realtek.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/usb/r8152.c