summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLi Jun <jun.li@freescale.com>2015-01-27 17:11:14 +0800
committerLi Jun <jun.li@freescale.com>2015-01-28 11:08:37 +0800
commit5717fde10dcd99605882c06aecb1db31615e30d2 (patch)
treef6beb759c55e78041d7d79f9e4a84e8fa3c14d16 /include/linux
parent134822a344dad59a86bdfbb3b1177cf26096f664 (diff)
MLK-10101-4 usb: add otg_fsm pointer in usb_bus
Add otg_fsm pointer in struct of usb_bus for access otg_fsm via bus. Original way was to put it in usb_otg, then usb host can access otg_fsm via hcd->usb_phy->otg->fsm, since usb_phy will not be the future direction, instead phy is prefered, so this way may not work. It's more direct and simple to put it in usb_bus. Signed-off-by: Li Jun <jun.li@freescale.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index 7f6eb859873e..a7bdc6182400 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -329,6 +329,7 @@ struct usb_bus {
* Does the host controller use PIO
* for control transfers?
*/
+ struct otg_fsm *otg_fsm; /* usb otg finite state machine */
u8 otg_port; /* 0, or number of OTG/HNP port */
unsigned is_b_host:1; /* true during some HNP roleswitches */
unsigned b_hnp_enable:1; /* OTG: did A-Host enable HNP? */