]> git.baikalelectronics.ru Git - kernel.git/commit
usb: common: otg-fsm: add HNP polling support
authorLi Jun <jun.li@nxp.com>
Fri, 19 Feb 2016 02:04:42 +0000 (10:04 +0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:36 +0000 (15:14 +0200)
commit0bb915d9c8fd183fb7194d1ef7243749404e0f06
tree3d6f2248f4edb3e5d1e5d3ea19b9c8ea97862ac3
parent2798542f0616f8e46cb1b4f3a7260e39cc734ca8
usb: common: otg-fsm: add HNP polling support

Adds HNP polling timer when transits to host state, the OTG status
request will be sent to peripheral after timeout, if host request flag
is set, it will switch to peripheral state, otherwise it will repeat HNP
polling every 1.5s and maintain the current session.

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/common/usb-otg-fsm.c
include/linux/usb/otg-fsm.h