usb: musb: Add musb_clearb/w() interface
authorMin Guo <min.guo@mediatek.com>
Wed, 15 Jan 2020 13:25:44 +0000 (07:25 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2020 13:46:59 +0000 (14:46 +0100)
commit9c93d7fd464e7aad59c2afc261f80e6e0fbe2ca9
tree72421805a32bfa70562b0aa395881a8cb916fa33
parentedce61776c7e212d8b3d61e69afe7672efbacb04
usb: musb: Add musb_clearb/w() interface

Delete the const attribute of addr parameter in readb/w/l hooks, these
changes are for implementing clearing W1C registers.
Replace musb_readb/w with musb_clearb/w to clear the interrupt status.

While at here, change some unsigned type to u32 to fix checkpatch.pl
warnings.

Signed-off-by: Min Guo <min.guo@mediatek.com>
[b-liu@ti.com: fix checkpatch.pl warnings.]
Signed-off-by: Bin Liu <b-liu@ti.com>
Link: https://lore.kernel.org/r/20200115132547.364-23-b-liu@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h
drivers/usb/musb/musb_io.h
drivers/usb/musb/musbhsdma.c
drivers/usb/musb/sunxi.c
drivers/usb/musb/tusb6010.c