Skip to content

Commit 6658a62

Browse files
Xingxing Luogregkh
authored andcommitted
usb: musb: Modify the "HWVers" register address
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: c2365ce ("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>
1 parent 34f08eb commit 6658a62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/musb/musb_debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static const struct musb_register_map musb_regmap[] = {
3939
{ "IntrUsbE", MUSB_INTRUSBE, 8 },
4040
{ "DevCtl", MUSB_DEVCTL, 8 },
4141
{ "VControl", 0x68, 32 },
42-
{ "HWVers", 0x69, 16 },
42+
{ "HWVers", MUSB_HWVERS, 16 },
4343
{ "LinkInfo", MUSB_LINKINFO, 8 },
4444
{ "VPLen", MUSB_VPLEN, 8 },
4545
{ "HS_EOF1", MUSB_HS_EOF1, 8 },

0 commit comments

Comments
 (0)