This patch adds a timer in otg_fsm structure, with this timer, host
can query the peripheral if it wishes to become host periodically.

Signed-off-by: Li Jun <[email protected]>
---
 include/linux/usb/otg-fsm.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/usb/otg-fsm.h b/include/linux/usb/otg-fsm.h
index c38616e..df760b8 100644
--- a/include/linux/usb/otg-fsm.h
+++ b/include/linux/usb/otg-fsm.h
@@ -120,6 +120,7 @@ struct otg_fsm {
 
        struct otg_fsm_ops *ops;
        struct usb_otg *otg;
+       struct timer_list hnp_polling_timer;
 
        /* Current usb protocol used: 0:undefine; 1:host; 2:client */
        int protocol;
-- 
1.7.8


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to