usb: chipidea: add USB PHY event
authorXu Yang <xu.yang_2@nxp.com>
Tue, 27 Jun 2023 11:03:51 +0000 (19:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jul 2023 16:24:17 +0000 (18:24 +0200)
commitb7a62611fab72e585c729a7fcf666aa9c4144214
tree864f36813025245f0176a183acd885bd6f48c012
parent7713aaf464599091d7a43fdae69fd69f0dd942f9
usb: chipidea: add USB PHY event

Add USB PHY event for below situation:
- usb role changed
- vbus connect
- vbus disconnect
- gadget driver is enumerated

USB PHY driver can get the last event after above situation occurs
and deal with different situations.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Link: https://lore.kernel.org/r/20230627110353.1879477-1-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci.h
drivers/usb/chipidea/udc.c