usb: fotg210: Acquire memory resource in core
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Jan 2023 07:09:17 +0000 (08:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 13:10:43 +0000 (14:10 +0100)
commitbaef5330d35b477056c0304ce1283f0aed4d5d20
tree212877fcedfca65750f571378cfc15f7a25aecd9
parent170da81aab077c9e85fc2b786413ca07942774a0
usb: fotg210: Acquire memory resource in core

The subdrivers are obtaining and mapping the memory resource
separately. Create a common state container for the shared
resources and start populating this by acquiring the IO
memory resource and remap it and pass this to the subdrivers
for host and peripheral.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230103-gemini-fotg210-usb-v2-3-100388af9810@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/fotg210/fotg210-core.c
drivers/usb/fotg210/fotg210-hcd.c
drivers/usb/fotg210/fotg210-hcd.h
drivers/usb/fotg210/fotg210-udc.c
drivers/usb/fotg210/fotg210-udc.h
drivers/usb/fotg210/fotg210.h