1. 07 4月, 2017 1 次提交
  2. 24 2月, 2017 2 次提交
  3. 23 2月, 2017 1 次提交
  4. 28 10月, 2016 1 次提交
  5. 14 7月, 2016 1 次提交
  6. 16 4月, 2016 2 次提交
  7. 12 4月, 2016 1 次提交
  8. 05 4月, 2016 1 次提交
  9. 06 3月, 2016 1 次提交
  10. 24 2月, 2016 2 次提交
  11. 03 12月, 2015 2 次提交
  12. 01 12月, 2015 1 次提交
  13. 29 8月, 2015 3 次提交
  14. 26 8月, 2015 1 次提交
  15. 01 6月, 2015 1 次提交
  16. 05 2月, 2015 1 次提交
  17. 21 1月, 2015 1 次提交
  18. 09 1月, 2015 1 次提交
  19. 15 12月, 2014 1 次提交
  20. 24 11月, 2014 1 次提交
  21. 12 11月, 2014 6 次提交
  22. 16 9月, 2014 1 次提交
    • A
      scsi: don't store LUN bits in CDB[1] for USB mass-storage devices · 50c4e964
      Alan Stern 提交于
      The SCSI specification requires that the second Command Data Byte
      should contain the LUN value in its high-order bits if the recipient
      device reports SCSI level 2 or below.  Nevertheless, some USB
      mass-storage devices use those bits for other purposes in
      vendor-specific commands.  Currently Linux has no way to send such
      commands, because the SCSI stack always overwrites the LUN bits.
      
      Testing shows that Windows 7 and XP do not store the LUN bits in the
      CDB when sending commands to a USB device.  This doesn't matter if the
      device uses the Bulk-Only or UAS transports (which virtually all
      modern USB mass-storage devices do), as these have a separate
      mechanism for sending the LUN value.
      
      Therefore this patch introduces a flag in the Scsi_Host structure to
      inform the SCSI midlayer that a transport does not require the LUN
      bits to be stored in the CDB, and it makes usb-storage set this flag
      for all devices using the Bulk-Only transport.  (UAS is handled by a
      separate driver, but it doesn't really matter because no SCSI-2 or
      lower device is at all likely to use UAS.)
      
      The patch also cleans up the code responsible for storing the LUN
      value by adding a bitflag to the scsi_device structure.  The test for
      whether to stick the LUN value in the CDB can be made when the device
      is probed, and stored for future use rather than being made over and
      over in the fast path.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Reported-by: NTiziano Bacocco <tiziano.bacocco@gmail.com>
      Acked-by: NMartin K. Petersen <martin.petersen@oracle.com>
      Acked-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      50c4e964
  23. 26 7月, 2014 3 次提交
  24. 25 7月, 2014 2 次提交
  25. 18 7月, 2014 1 次提交
  26. 01 7月, 2014 1 次提交