1. 21 12月, 2015 1 次提交
  2. 02 6月, 2015 1 次提交
    • B
      target: Minimize SCSI header #include directives · ba929992
      Bart Van Assche 提交于
      Only include SCSI initiator header files in target code that needs
      these header files, namely the SCSI pass-through code and the tcm_loop
      driver. Change SCSI_SENSE_BUFFERSIZE into TRANSPORT_SENSE_BUFFER in
      target code because the former is intended for initiator code and the
      latter for target code. With this patch the only initiator include
      directives in target code that remain are as follows:
      
      $ git grep -nHE 'include .scsi/(scsi.h|scsi_host.h|scsi_device.h|scsi_cmnd.h)' drivers/target drivers/infiniband/ulp/{isert,srpt} drivers/usb/gadget/legacy/tcm_*.[ch] drivers/{vhost,xen} include/{target,trace/events/target.h}
      drivers/target/loopback/tcm_loop.c:29:#include <scsi/scsi.h>
      drivers/target/loopback/tcm_loop.c:31:#include <scsi/scsi_host.h>
      drivers/target/loopback/tcm_loop.c:32:#include <scsi/scsi_device.h>
      drivers/target/loopback/tcm_loop.c:33:#include <scsi/scsi_cmnd.h>
      drivers/target/target_core_pscsi.c:39:#include <scsi/scsi_device.h>
      drivers/target/target_core_pscsi.c:40:#include <scsi/scsi_host.h>
      drivers/xen/xen-scsiback.c:52:#include <scsi/scsi_host.h> /* SG_ALL */
      Signed-off-by: NBart Van Assche <bart.vanassche@sandisk.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NJames Bottomley <JBottomley@Odin.com>
      ba929992
  3. 31 5月, 2015 2 次提交
  4. 17 7月, 2014 1 次提交
  5. 10 9月, 2012 2 次提交
  6. 10 5月, 2012 1 次提交
    • S
      usb-gadget: Initial merge of target module for UASP + BOT · c52661d6
      Sebastian Andrzej Siewior 提交于
      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.
      
      (nab: Move to drivers/usb/gadget as per Sebastian to address legacy
            limitations for built-in gadget code)
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Acked-by: NFelipe Balbi <balbi@ti.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Greg KH <gregkh@linuxfoundation.org>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      c52661d6