Skip to content

Commit a876a33

Browse files
hayesorzdavem330
authored andcommitted
r8152: fix writing USB_BP2_EN
The register of USB_BP2_EN is 16 bits, so we should use ocp_write_word(), not ocp_write_byte(). Fixes: 9370f2d ("support request_firmware for RTL8153") Signed-off-by: Hayes Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d98c821 commit a876a33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/usb/r8152.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3965,7 +3965,7 @@ static void rtl_clear_bp(struct r8152 *tp, u16 type)
39653965
case RTL_VER_15:
39663966
default:
39673967
if (type == MCU_TYPE_USB) {
3968-
ocp_write_byte(tp, MCU_TYPE_USB, USB_BP2_EN, 0);
3968+
ocp_write_word(tp, MCU_TYPE_USB, USB_BP2_EN, 0);
39693969

39703970
ocp_write_word(tp, MCU_TYPE_USB, USB_BP_8, 0);
39713971
ocp_write_word(tp, MCU_TYPE_USB, USB_BP_9, 0);

0 commit comments

Comments
 (0)