HNP polling is a mechanism which allows the OTG device currently acting as host to determine when the other attached OTG device wishes to take the host role. When an OTG host, which supports HNP, is connected to an OTG peripheral which also supports HNP it shall poll the peripheral regularly to determine whether it requires a role-swap and grant this at the earliest opportunity. changes for v2: - Move HNP polling timer from chipidea controller driver to usb-otg-fsm.c to make it more generically, then HNP polling can be fully handled by otg fsm driver. - Add comments for host_request_flag in patch: usb: gadget: add host_requestf_flag in usb_gadget for OTG HNP Li Jun (5): usb: gadget: add host_requestf_flag in usb_gadget for OTG HNP usb: chipidea: udc: add OTG status request handling usb: chipidea: otg: set host_request_flag for gadget usb: common: otg-fsm: add HNP polling support Documentation: usb: chipidea: Update test procedure for HNP polling Documentation/usb/chipidea.txt | 9 ++-- drivers/usb/chipidea/otg_fsm.c | 13 +++++- drivers/usb/chipidea/udc.c | 28 ++++++++++-- drivers/usb/common/usb-otg-fsm.c | 93 ++++++++++++++++++++++++++++++++++++++ include/linux/usb/gadget.h | 3 ++ include/linux/usb/otg-fsm.h | 14 ++++++ 6 files changed, 149 insertions(+), 11 deletions(-) -- 1.7.9.5 -- 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