]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb-gadget: Initial merge of target module for UASP + BOT
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Sun, 15 Apr 2012 00:22:51 +0000 (17:22 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 15 Apr 2012 01:03:21 +0000 (18:03 -0700)
commit0037016a2491ea8ea486648f461243b5f02416da
tree51882a5a5557bb9322e46147aa8e4d80c3d04e66
parent3df279098d9e2f9e6da269cf8c01a20b49e798ef
usb-gadget: Initial merge of target module for UASP + BOT

This fabric uses the target framework to provide a usb gadget
device.  This gadget supports the USB Attached SCSI Protocol (UASP)
and Bulk Only Transfers (BOT or BBB). BOT is the primary interface,
UAS is the alternative interface.

It has been tested with dummy_hcd on HS and SS. On SS USB3 are
supported. I also took my omap device and tried it there against
WindowsXP.  UAS implements basic command passing (i.e. read/write
requests) and TASK MANAGEMENT functions are missing.

I had to add a little of error recovery to BOT because Windows was
issuing some strange commands and it does not complain after the
gadget responded with CSW.status=1.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/Kconfig
drivers/target/Makefile
drivers/target/usb-gadget/Kconfig [new file with mode: 0644]
drivers/target/usb-gadget/Makefile [new file with mode: 0644]
drivers/target/usb-gadget/usb_gadget.c [new file with mode: 0644]
drivers/target/usb-gadget/usb_gadget.h [new file with mode: 0644]