]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
usb: xilinxps_udc: Added support for Test Mode feature
authorNaveen Mamindlapalli <naveen.mamindlapalli@xilinx.com>
Fri, 8 Mar 2013 14:45:29 +0000 (20:15 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 11 Mar 2013 13:28:22 +0000 (14:28 +0100)
commit1ab6ac150a1eebacfe21a7ed0a0ccbe4f33eb026
tree9eda01d2d8638b47b4dca02f700899f4f573a083
parenta773b47abe574f5e8c0a0037d02932bf4eab43ea
usb: xilinxps_udc: Added support for Test Mode feature

The test mode is used for compliance testing of USB devices.
All the devices must support this feature for compliance.

As part of this feature, the host sends SET_FEATURE command
with TEST_MODE feature and device needs to enable that test mode.
The exit from TEST_MODE is to power cycle the device.

There are 5 test modes as given below.
1. Test_SE0_NAK
2. Test_J
3. Test_K
4. Test_Packet
5. Test_Force_Enable

For more information, refer to "section 7.1.20 Test Mode Support" of USB 2.0 spec.

Signed-off-by: Naveen Mamindlapalli <naveenm@xilinx.com>
drivers/usb/gadget/xilinx_usbps_udc.c