On Mon, Jan 28, 2013 at 09:18:54PM +0000, Paul Zimmerman wrote: > 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). Could you send this with a proper "Signed-off-by:" so everyone knows that this work is ok to use in future Linux kernel code? thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html