usb: chipidea: add CI_HDRC_FORCE_VBUS_ACTIVE_ALWAYS flag
authorTomer Maimon <tmaimon77@gmail.com>
Tue, 17 Oct 2023 19:59:01 +0000 (22:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Oct 2023 10:45:45 +0000 (12:45 +0200)
commit2978cc1f285390c1bd4d9bfc665747adc6e4b19c
treedb1f366a3bdfb467a5248b08b789776f7d29f5ac
parent4936eb7567c3e44065979e1036ba3c018dd6b9a1
usb: chipidea: add CI_HDRC_FORCE_VBUS_ACTIVE_ALWAYS flag

Adding CI_HDRC_FORCE_VBUS_ACTIVE_ALWAYS flag to modify the vbus_active
parameter to active in case the ChipIdea USB IP role is device-only and
there is no otgsc register.

Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Link: https://lore.kernel.org/r/20231017195903.1665260-2-tmaimon77@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/otg.c
include/linux/usb/chipidea.h