]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited4902187a5b80bf72ef389a59c7f3ddb9001388
tree09a9f2da38f7d389e0eef7354be91b586f43344e
parentd1ef2dbff989718e6244b1dda7512d4dce00be3d
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