1. 22 2月, 2008 2 次提交
  2. 02 2月, 2008 3 次提交
  3. 31 1月, 2008 1 次提交
    • B
      [SCSI] implement scsi_data_buffer · 30b0c37b
      Boaz Harrosh 提交于
      In preparation for bidi we abstract all IO members of scsi_cmnd,
      that will need to duplicate, into a substructure.
      
      - Group all IO members of scsi_cmnd into a scsi_data_buffer
        structure.
      - Adjust accessors to new members.
      - scsi_{alloc,free}_sgtable receive a scsi_data_buffer instead of
        scsi_cmnd. And work on it.
      - Adjust scsi_init_io() and  scsi_release_buffers() for above
        change.
      - Fix other parts of scsi_lib/scsi.c to members migration. Use
        accessors where appropriate.
      
      - fix Documentation about scsi_cmnd in scsi_host.h
      
      - scsi_error.c
        * Changed needed members of struct scsi_eh_save.
        * Careful considerations in scsi_eh_prep/restore_cmnd.
      
      - sd.c and sr.c
        * sd and sr would adjust IO size to align on device's block
          size so code needs to change once we move to scsi_data_buff
          implementation.
        * Convert code to use scsi_for_each_sg
        * Use data accessors where appropriate.
      
      - tgt: convert libsrp to use scsi_data_buffer
      
      - isd200: This driver still bangs on scsi_cmnd IO members,
        so need changing
      
      [jejb: rebased on top of sg_table patches fixed up conflicts
      and used the synergy to eliminate use_sg and sg_count]
      Signed-off-by: NBoaz Harrosh <bharrosh@panasas.com>
      Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      30b0c37b
  4. 26 1月, 2008 1 次提交
  5. 12 1月, 2008 6 次提交
  6. 18 12月, 2007 2 次提交
    • G
      USB: revert portions of "UNUSUAL_DEV: Sync up some reported devices from Ubuntu" · e70e7690
      Greg Kroah-Hartman 提交于
      This reverts one change from 67fa1062
      that prevented userspace from seing the "driver disk" lun in a san disk
      device.  The kernel shouldn't do this, it's up to userspace to handle
      this properly, if it somehow wants to filter this away.
      
      
      Cc: Ben Collins <bcollins@ubuntu.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Phil Dibowitz <phil@ipom.com>
      Cc: Kyle McMartin <kyle@mcmartin.ca>
      Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
      Cc: Hans de Goede <j.w.r.degoede@hhs.nl>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e70e7690
    • D
      usb-storage: Fix devices that cannot handle 32k transfers · 33abc04f
      Doug Maxey 提交于
      When a device cannot handle the smallest previously limited transfer
      size (64 blocks) without stalling, limit the device to the amount of
      packets that fit in a platform native page.
      
      The lowest possible limit is PAGE_CACHE_SIZE, so if the device is ever
      used on a platform that has larger than 8K pages, you lose unless you
      can convince the device firmware folks to fix the issue.
      
      Cc: Mathew Dharm <mdharm-scsi@one-eyed-alien.net>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Pete Zaitcev <zaitcev@redhat.com>
      Signed-off-by: NDoug Maxey <dwm@austin.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      33abc04f
  7. 29 11月, 2007 3 次提交
  8. 26 10月, 2007 1 次提交
    • A
      USB: isd200: sort out USB/IDE dependancy mess · 3794ade5
      Alan Cox 提交于
      The ISD200 driver imports a single trivial routine from the IDE layer and
      in doing so creates a mess of dependancies that drag in the entire old
      IDE layer. Even more sad - it does this for a routine which is usually
      (little endian) a null function!
      
      - Copy the function into ISD200
      - Rename it so it doesn't clash with the ide header prototype
      - Remove all the depend constraints
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      3794ade5
  9. 23 10月, 2007 1 次提交
  10. 20 10月, 2007 1 次提交
  11. 19 10月, 2007 1 次提交
  12. 17 10月, 2007 1 次提交
  13. 16 10月, 2007 1 次提交
    • J
      USB storage: sg chaining support · 1f6f31a0
      Jens Axboe 提交于
      [PATCH] USB storage: sg chaining support
      
      Modify usb_stor_access_xfer_buf() to take a pointer to an sg
      entry pointer, so we can keep track of that instead of passing
      around an integer index (which we can't use when dealing with
      multiple scatterlist arrays).
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      1f6f31a0
  14. 13 10月, 2007 8 次提交
  15. 13 9月, 2007 1 次提交
  16. 11 9月, 2007 3 次提交
  17. 23 8月, 2007 2 次提交
    • M
      USB: resubmission unusual_devs modification for Nikon D80 · 83fc8a15
      Mike Pagano 提交于
      Upgrade the unusual_devs.h file to support the new 1.01 firmware for the Nikon D80.
      Signed-off-by: NMike Pagano <mpagano-kernel@mpagano.com>
      Signed-off-by: NPhil Dibowitz <phil@ipom.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      83fc8a15
    • A
      usb-storage: fix bugs in the disconnect pathway · 2f67cd5b
      Alan Stern 提交于
      This patch (as961) fixes a couple of bugs in the disconnect pathway of
      usb-storage.
      
      The first problem, which apparently has been around for a while
      although nobody noticed it, shows up when an aborted command is still
      pending when a disconnect occurs.  The SCSI error-handler will
      continue to wait in command_abort() until the us->notify completion is
      signalled.  Thus quiesce_and_remove_host() needs to signal it.
      
      The second problem was introduced recently along with autosuspend
      support.  Since usb_stor_scan_thread() now calls
      usb_autopm_put_interface() before exiting, we can't simply leave the
      scanning thread running after a disconnect; we must wait until the
      thread exits.  This is solved by adding a new struct completion to the
      private data structure.  Fortuitously, it allows the removal of the
      rather clunky mechanism used in the past to insure that all threads
      have finished before the module is unloaded.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      CC: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      2f67cd5b
  18. 31 7月, 2007 2 次提交
    • M
      USB: NIKON D50 is an unusual device · 4f47bb56
      Milinevsky Dmitry 提交于
      This short patch allows NIKON D50 to be mounted as UMS[unusual device]
      on Linux niam 2.6.22-rc7-cfs-v18 #2 PREEMPT Tue Jul 3 22:35:53 EEST
      2007 i686 Intel(R) Celeron(R) M processor 1.50GHz GenuineIntel
      GNU/Linux,
      some previous kernels...
      
      lsusb -v
      Bus 001 Device 006: ID 04b0:0409 Nikon Corp.
      Device Descriptor:
        bLength                18
        bDescriptorType         1
        bcdUSB               2.00
        bDeviceClass            0 (Defined at Interface level)
        bDeviceSubClass         0
        bDeviceProtocol         0
        bMaxPacketSize0        64
        idVendor           0x04b0 Nikon Corp.
        idProduct          0x0409
        bcdDevice            1.00
        iManufacturer           1 NIKON
        iProduct                2 NIKON DSC D50
        iSerial                 0
        bNumConfigurations      1
        Configuration Descriptor:
          bLength                 9
          bDescriptorType         2
          wTotalLength           32
          bNumInterfaces          1
          bConfigurationValue     1
          iConfiguration          0
          bmAttributes         0xc0
            Self Powered
          MaxPower                2mA
          Interface Descriptor:
            bLength                 9
            bDescriptorType         4
            bInterfaceNumber        0
            bAlternateSetting       0
            bNumEndpoints           2
            bInterfaceClass         8 Mass Storage
            bInterfaceSubClass      6 SCSI
            bInterfaceProtocol     80 Bulk (Zip)
            iInterface              0
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x01  EP 1 OUT
              bmAttributes            2
                Transfer Type            Bulk
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0200  1x 512 bytes
              bInterval               0
            Endpoint Descriptor:
              bLength                 7
              bDescriptorType         5
              bEndpointAddress     0x82  EP 2 IN
              bmAttributes            2
                Transfer Type            Bulk
                Synch Type               None
                Usage Type               Data
              wMaxPacketSize     0x0200  1x 512 bytes
              bInterval               0
      Device Qualifier (for other device speed):
        bLength                10
        bDescriptorType         6
        bcdUSB               2.00
        bDeviceClass            0 (Defined at Interface level)
        bDeviceSubClass         0
        bDeviceProtocol         0
        bMaxPacketSize0        64
        bNumConfigurations      1
      Device Status:     0x0001
        Self Powered
      Signed-off-by: NMilinevsky Dmitry <niam.niam@gmail.com>
      Cc: Oliver Neukum <oliver@neukum.org>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: <caglar@pardus.org.tr>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      4f47bb56
    • J
      USB: Don't let usb-storage steal Blackberry Pearl · c17b49ec
      Jeremy Katz 提交于
      The Blackberry Pearl can run in two modes; a usb-storage only mode
      and a mode that allows access via mass storage and to its database.
      The berry_charge module will set the device to dual mode and thus we
      should ignore its native mode if that module is built
      Signed-off-by: NJeremy Katz <katzj@redhat.com>
      Signed-off-by: NPhil Dibowitz <phil@ipom.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      c17b49ec