usb: fotg210: Check role register in core
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Jan 2023 07:09:19 +0000 (08:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 13:10:44 +0000 (14:10 +0100)
commitbb5fe85609c6e21e96fc5669ae200c68a1e05a9b
treeea39b02745ff772b65a57edf92a1845c61e1e8b6
parentfaaca436699603355c5c9711942c6441eec38b0e
usb: fotg210: Check role register in core

Read the role register and check that we are in host/peripheral
mode and issue warnings if we're not in the right role when
probing respective driver.

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