diff options
author | Li Jun <jun.li@nxp.com> | 2016-02-18 21:04:47 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2016-03-04 08:14:37 -0500 |
commit | dfbae3309568f296e5dccfe1ec10db0f6804b756 (patch) | |
tree | 313cc86f04723b547d3bb456e2f194041b55f6e0 /Documentation/usb | |
parent | 75d2f754e2d8937890336803ae27e3503f192705 (diff) |
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>
Diffstat (limited to 'Documentation/usb')
-rw-r--r-- | Documentation/usb/chipidea.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Documentation/usb/chipidea.txt b/Documentation/usb/chipidea.txt index 05f735a1b5a5..678741b0f213 100644 --- a/Documentation/usb/chipidea.txt +++ b/Documentation/usb/chipidea.txt | |||
@@ -26,16 +26,17 @@ cat /sys/kernel/debug/ci_hdrc.0/registers | |||
26 | On B-device: | 26 | On B-device: |
27 | echo 1 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req | 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 | B-device should take host role and enumrate A-device. | 29 | B-device should take host role and enumrate A-device. |
34 | 30 | ||
35 | 4) A-device switch back to host. | 31 | 4) A-device switch back to host. |
36 | On B-device: | 32 | On B-device: |
37 | echo 0 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req | 33 | echo 0 > /sys/bus/platform/devices/ci_hdrc.0/inputs/b_bus_req |
38 | 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 | ||
39 | |||
39 | A-device should switch back to host and enumrate B-device. | 40 | A-device should switch back to host and enumrate B-device. |
40 | 41 | ||
41 | 5) Remove B-device(unplug micro B plug) and insert again in 10 seconds, | 42 | 5) Remove B-device(unplug micro B plug) and insert again in 10 seconds, |