usb: musb: Modify the "HWVers" register address
authorXingxing Luo <xingxing.luo@unisoc.com>
Fri, 22 Sep 2023 07:59:29 +0000 (15:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Oct 2023 11:37:08 +0000 (13:37 +0200)
commit6658a62e1ddf726483cb2d8bf45ea3f9bd533074
tree7ad22e14849789ff9b23f553954a06e31580d722
parent34f08eb0ba6e4869bbfb682bf3d7d0494ffd2f87
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: 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>
drivers/usb/musb/musb_debugfs.c