]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
MLK-10102-6 usb: chipidea: otg: export ci_handle_id_switch API
authorLi Jun <jun.li@freescale.com>
Thu, 15 Jan 2015 13:05:12 +0000 (21:05 +0800)
committerLi Jun <jun.li@freescale.com>
Fri, 16 Jan 2015 07:02:29 +0000 (15:02 +0800)
Export ci_handle_id_switch interface for controller handle id
changes during system sleep with power lost.

Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Li Jun <b47624@freescale.com>
drivers/usb/chipidea/otg.c
drivers/usb/chipidea/otg.h

index 8479d017c75043c547868bdff771746d88242e1f..ca61373fe526569cf806f8119b4560f1053e3d3f 100644 (file)
@@ -82,7 +82,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);
 
index 1c9ad1af082b4eb487907447bc889196c3773808..b8b4bbd534742afc61f9ea9747f458479d430b4a 100644 (file)
@@ -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)
 {