[PATCH v2 5/6] usb: otg-fsm: add a timer for polling host request flag from peripheral.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <b47624@xxxxxxxxxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux