summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jun <b47624@freescale.com>2014-06-30 13:04:57 +0800
committerLi Jun <B47624@freescale.com>2014-06-30 16:37:30 +0800
commitdcd2b9f40cb3da529cf9cece27b8d902df57d7cb (patch)
tree0388a79eac734f86d099b36f4db380174e7e753e
parentb531c2ed37db29b41d96772418cf6e03b9b35c06 (diff)
ENGR00320439-6 usb: chipidea: export ci_handle_id_switch interface
Export ci_handle_id_switch interface for handling id change during system sleep with power off. Signed-off-by: Li Jun <b47624@freescale.com>
-rw-r--r--drivers/usb/chipidea/otg.c2
-rw-r--r--drivers/usb/chipidea/otg.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/otg.c b/drivers/usb/chipidea/otg.c
index 453f61080e5b..1e0389965b83 100644
--- a/drivers/usb/chipidea/otg.c
+++ b/drivers/usb/chipidea/otg.c
@@ -109,7 +109,7 @@ void ci_handle_vbus_change(struct ci_hdrc *ci)
}
#define CI_VBUS_STABLE_TIMEOUT_MS 5000
-static void ci_handle_id_switch(struct ci_hdrc *ci)
+void ci_handle_id_switch(struct ci_hdrc *ci)
{
enum ci_role role = ci_otg_role(ci);
diff --git a/drivers/usb/chipidea/otg.h b/drivers/usb/chipidea/otg.h
index 05ad33707b72..c42ac78d3035 100644
--- a/drivers/usb/chipidea/otg.h
+++ b/drivers/usb/chipidea/otg.h
@@ -17,6 +17,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);
void ci_handle_vbus_connected(struct ci_hdrc *ci);
static inline void ci_otg_queue_work(struct ci_hdrc *ci)
{