Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: usb: chipidea: Update test procedure for HNP polling

Update HNP test procedure as HNP polling is supported.

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>

authored by

Li Jun and committed by
Felipe Balbi
dfbae330 75d2f754

+5 -4
+5 -4
Documentation/usb/chipidea.txt
··· 26 26 On B-device: 27 27 echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req 28 28 29 - if HNP polling is not supported, also need: 30 - On A-device: 31 - echo 0 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req 32 - 33 29 B-device should take host role and enumrate A-device. 34 30 35 31 4) A-device switch back to host. 36 32 On B-device: 37 33 echo 0 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req 34 + 35 + or, by introducing HNP polling, B-Host can know when A-peripheral wish 36 + to be host role, so this role switch also can be trigged in A-peripheral 37 + side by answering the polling from B-Host, this can be done on A-device: 38 + echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/a_bus_req 38 39 39 40 A-device should switch back to host and enumrate B-device. 40 41