Resend: Donated code: xHCI debug capability driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Resending with updated xhci.h and signed-off-by added.

Hi Sarah,

We (Synopsys) would like to donate the attached code for driving the debug
capability of the xHCI controller.

We used this code to test the debug capability of our USB3 IP core. As it
stands, this is test code rather than fully-fledged Linux driver code, but it
can be used as a starting point for a complete driver. So although it is
provided as a patch, it is not intended to be applied in its current form.

This code does not implement a gdb interface; rather it has a kernel thread
which can do two things - either source a continuous stream of packets on
the IN endpoint and sink whatever is sent to it on the OUT endpoint, or
receive whatever is sent to it on the OUT endpoint and echo it back on the
IN endpoint. The mode is selected by the DBC_SRC_SINK #define at the
top of the file. We used this, along with the usbtest module and testusb
program on the host side, to send/receive a constant stream of packets
over the two bulk endpoints.

Some other things that are missing:
	- Code to handle bulk endpoint STALL.
	- Code to handle endpoint error conditions.
	- Since I had some difficulty with the dbc_td_remainder/
	   dbc_v1_0_td_remainder functions, I just used 0 for the
	   remainder value. I saw you have made some fixes to
	   those functions since then, so maybe they would work now.

Patch is against 3.6-rc3 (sorry, that was current back when I did this work).

Signed-off-by: Paul Zimmerman <paulz@xxxxxxxxxxxx>
---
Paul

Attachment: xhci-dbgcap.patch
Description: xhci-dbgcap.patch


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux