]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MLK-10101-4 usb: add otg_fsm pointer in usb_bus
authorLi Jun <jun.li@freescale.com>
Tue, 27 Jan 2015 09:11:14 +0000 (17:11 +0800)
committerLi Jun <jun.li@freescale.com>
Wed, 28 Jan 2015 03:08:37 +0000 (11:08 +0800)
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>
include/linux/usb.h

index 7f6eb859873e4a24bcb5ebf30bf8b4485e61a622..a7bdc6182400ed60025386d2ce6dd53bc0f43c3f 100644 (file)
@@ -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? */