Hi,
a question about the test mode hook of the USB 2.0 driver, with reference to the “musb driver debugfs” paragraph at the bottom part of this wiki:
http://processors.wiki.ti.com/index.php/Usbgeneralpage
No problems at all regarding the first three standard tests: TEST_SE0NAK, TEST_J, TEST_K
but when it comes to TEST_PACKET, we tried the following sequence, with no results:
#mount -t debugfs none /sys/kernel/debug/
#echo "test packet" > /sys/kernel/debug/testmode
however, the Netra TRM (sprugx8.pdf) reports that, for executing Test Packet correctly, the steps are:
1. Start a session (if the core is being used in Host mode).
2. Write the standard test packet (shown below) to the Endpoint 0 FIFO.
3. Write 8h to the TESTMODE register (TEST_PACKET = 1) to enter Test_Packet test mode.
4. Set the TxPktRdy bit in the HOST/PERI_CSR0 register (bit 1).
as far as we can understand, the debugfs interface allows to perform steps 2 and 3, what about the preliminary step 1 and the ending step 4?
can them be done from userland as well?
Thanks, best regards
Massimo