usb: isp1760: otg control register access
authorRui Miguel Silva <rui.silva@linaro.org>
Fri, 27 Aug 2021 13:11:54 +0000 (14:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Aug 2021 14:11:39 +0000 (16:11 +0200)
commit9c1587d99f9305aa4f10b47fcf1981012aa5381f
tree09a9f2da38f7d389e0eef7354be91b586f43344e
parent955d0fb590f18ec5c3a4085c7d0e39b6abde0dd6
usb: isp1760: otg control register access

The set/clear of the otg control values is done writing to
two different 16bit registers, however we setup the regmap
width for isp1760/61 to 32bit value bits.

So, just access the clear register address (0x376)as the high
part of the otg control register set (0x374), and write the
values in one go to make sure they get clear/set.

Reported-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Tested-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Link: https://lore.kernel.org/r/20210827131154.4151862-6-rui.silva@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/isp1760/isp1760-core.c
drivers/usb/isp1760/isp1760-regs.h