summaryrefslogtreecommitdiff
path: root/drivers/usb/chipidea/otg.c
diff options
context:
space:
mode:
authorLi Jun <b47624@freescale.com>2014-04-23 07:56:51 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-24 19:56:35 (GMT)
commit15f75defacd3da412d4c9823d4a9c9f410923766 (patch)
tree297e0ef987b934927671eeba88eb67339dba471b /drivers/usb/chipidea/otg.c
parent4dcf720c5d40b27c916e7115ad75b335c9c1e264 (diff)
downloadlinux-15f75defacd3da412d4c9823d4a9c9f410923766.tar.xz
usb: chipidea: add sys inputs for OTG fsm input
This patch adds sys input to control and show OTG fsm inputs by application, user can do host and preipheral role switch by change these inputs. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/otg.c')
-rw-r--r--drivers/usb/chipidea/otg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/otg.c b/drivers/usb/chipidea/otg.c
index 38e340c..a048b08 100644
--- a/drivers/usb/chipidea/otg.c
+++ b/drivers/usb/chipidea/otg.c
@@ -141,4 +141,6 @@ void ci_hdrc_otg_destroy(struct ci_hdrc *ci)
/* Disable all OTG irq and clear status */
hw_write_otgsc(ci, OTGSC_INT_EN_BITS | OTGSC_INT_STATUS_BITS,
OTGSC_INT_STATUS_BITS);
+ if (ci_otg_is_fsm_mode(ci))
+ ci_hdrc_otg_fsm_remove(ci);
}