diff options
author | Hayes Wang <hayeswang@realtek.com> | 2021-08-19 06:05:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-19 14:19:30 +0300 |
commit | a876a33d2a1102f99fc782fefb784f4dd4841d8c (patch) | |
tree | 6b43e8d28b2a91f7b84247fbdf3d95169c2ef287 /drivers/net | |
parent | d98c8210670ea2cde4df9eb68fad38357fbe0d8a (diff) | |
download | linux-a876a33d2a1102f99fc782fefb784f4dd4841d8c.tar.xz |
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: 9370f2d05a2a ("support request_firmware for RTL8153")
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/usb/r8152.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index e09b107b5c99..3fd17b6dc61d 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -3965,7 +3965,7 @@ static void rtl_clear_bp(struct r8152 *tp, u16 type) case RTL_VER_15: default: if (type == MCU_TYPE_USB) { - ocp_write_byte(tp, MCU_TYPE_USB, USB_BP2_EN, 0); + ocp_write_word(tp, MCU_TYPE_USB, USB_BP2_EN, 0); ocp_write_word(tp, MCU_TYPE_USB, USB_BP_8, 0); ocp_write_word(tp, MCU_TYPE_USB, USB_BP_9, 0); |