summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/otg.h
diff options
context:
space:
mode:
authorXu Yang <xu.yang_2@nxp.com>2022-10-13 23:14:35 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-10-23 14:34:53 +0200
commit74494b33211d067427db25824cd8b53fa0eab1ef (patch)
tree4877491bdba8a434d81ce30d05a0ab8a1d794145 /drivers/usb/chipidea/otg.h
parentcaa7b74493f9c903fb6cd4bdec295bcae0507cc6 (diff)
downloadlinux-74494b33211d067427db25824cd8b53fa0eab1ef.tar.gz
linux-74494b33211d067427db25824cd8b53fa0eab1ef.tar.bz2
linux-74494b33211d067427db25824cd8b53fa0eab1ef.zip
usb: chipidea: core: add controller resume support when controller is powered off
For some SoCs, the controler's power will be off during the system suspend, and it needs some recovery operation to let the system back to workable. We add this support in this patch. Signed-off-by: Xu Yang <xu.yang_2@nxp.com> Acked-by: Peter Chen <peter.chen@kernel.org> Link: https://lore.kernel.org/r/20221013151442.3262951-2-xu.yang_2@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/otg.h')
-rw-r--r--drivers/usb/chipidea/otg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/otg.h b/drivers/usb/chipidea/otg.h
index 5e7a6e571dd2..87629b81e03e 100644
--- a/drivers/usb/chipidea/otg.h
+++ b/drivers/usb/chipidea/otg.h
@@ -14,6 +14,7 @@ int ci_hdrc_otg_init(struct ci_hdrc *ci);
void ci_hdrc_otg_destroy(struct ci_hdrc *ci);
enum ci_role ci_otg_role(struct ci_hdrc *ci);
void ci_handle_vbus_change(struct ci_hdrc *ci);
+void ci_handle_id_switch(struct ci_hdrc *ci);
static inline void ci_otg_queue_work(struct ci_hdrc *ci)
{
disable_irq_nosync(ci->irq);