summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorXingxing Luo <xingxing.luo@unisoc.com>2023-09-22 15:59:29 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-25 11:13:30 +0200
commit9d350bd2543a9e9f6861b3ed81642d21e42de158 (patch)
tree0bd39abf057fafca4c12531d3a0e15c0a00ce2a2 /drivers
parent9480fa536592dbe3173440ade43d5bc955cb08ed (diff)
downloadlinux-9d350bd2543a9e9f6861b3ed81642d21e42de158.tar.gz
linux-9d350bd2543a9e9f6861b3ed81642d21e42de158.tar.bz2
linux-9d350bd2543a9e9f6861b3ed81642d21e42de158.zip
usb: musb: Modify the "HWVers" register address
commit 6658a62e1ddf726483cb2d8bf45ea3f9bd533074 upstream. musb HWVers rgister address is not 0x69, if we operate the wrong address 0x69, it will cause a kernel crash, because there is no register corresponding to this address in the additional control register of musb. In fact, HWVers has been defined in musb_register.h, and the name is "MUSB_HWVERS", so We need to use this macro instead of 0x69. Fixes: c2365ce5d5a0 ("usb: musb: replace hard coded registers with defines") Cc: stable@vger.kernel.org Signed-off-by: Xingxing Luo <xingxing.luo@unisoc.com> Link: https://lore.kernel.org/r/20230922075929.31074-1-xingxing.luo@unisoc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/musb/musb_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_debugfs.c b/drivers/usb/musb/musb_debugfs.c
index 480b2119f1e7..20bc4d1f85b1 100644
--- a/drivers/usb/musb/musb_debugfs.c
+++ b/drivers/usb/musb/musb_debugfs.c
@@ -64,7 +64,7 @@ static const struct musb_register_map musb_regmap[] = {
{ "IntrUsbE", MUSB_INTRUSBE, 8 },
{ "DevCtl", MUSB_DEVCTL, 8 },
{ "VControl", 0x68, 32 },
- { "HWVers", 0x69, 16 },
+ { "HWVers", MUSB_HWVERS, 16 },
{ "LinkInfo", MUSB_LINKINFO, 8 },
{ "VPLen", MUSB_VPLEN, 8 },
{ "HS_EOF1", MUSB_HS_EOF1, 8 },