1. 08 1月, 2009 1 次提交
    • D
      USB: unusual_devs.h additions for Pentax K10D · e3f47f89
      Daniel Drake 提交于
      Jaak Ristioja reported problems with his Pentax K10D camera:
      https://bugs.gentoo.org/show_bug.cgi?id=250406
      
      /proc/bus/usb/devices:
      T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
      D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
      P:  Vendor=0a17 ProdID=006e Rev= 1.00
      S:  Manufacturer=PENTAX Corporation
      S:  Product=K10D
      C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  2mA
      I:* If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
      E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=100ms
      The number of reported sectors is off-by-one.
      Signed-off-by: NDaniel Drake <dsd@gentoo.org>
      Cc: Kadianakis George <desnacked@gmail.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NPhil Dibowitz <phil@ipom.com>
      e3f47f89
  2. 18 12月, 2008 3 次提交
    • A
      usb-storage: update unusual_devs entry for Nokia 5310 · a4b18809
      Alan Stern 提交于
      This patch (as1179) updates the unusual_devs entry for Nokia's 5310
      phone to include a more recent firmware revision.
      
      This fixes Bugzilla #12099.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Tested-by: NRobson Roberto Souza Peixoto <robsonpeixoto@gmail.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a4b18809
    • O
      USB: Unusual devs patch for Nokia 3500c · 48e1a540
      Ozan Sener 提交于
      T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
      D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
      P:  Vendor=0421 ProdID=0060 Rev= 5.51
      S:  Manufacturer=Nokia
      S:  Product=Nokia 3500c
      S:  SerialNumber=357687010280751
      C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
      I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
      E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      
      From: Ozan Sener <themgzzy@gmail.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      48e1a540
    • C
      USB: storage: unusual_devs.h: Nokia 3109c addition · 1393fce7
      CSÉCSY László 提交于
      2.6.26(.x, cannot remember) could handle the microSD card in my Nokia
      3109c attached via USB as mass storage, 2.6.27(.x, up to and included
      2.6.27.8) cannot. Please find the attached patch which fixes this
      regression, and a copy of /proc/bus/usb/devices with my phone plugged in
      running with this patch on Frugalware.
      
      T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  4 Spd=12  MxCh= 0
      D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
      P:  Vendor=0421 ProdID=0063 Rev= 6.01
      S:  Manufacturer=Nokia
      S:  Product=Nokia 3109c
      S:  SerialNumber=359561013742570
      C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
      I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
      E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      
      From: CSÉCSY László <boobaa@frugalware.org>
      Cc: Phil Dibowitz <phil@ipom.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      1393fce7
  3. 01 12月, 2008 2 次提交
  4. 20 11月, 2008 2 次提交
  5. 14 11月, 2008 4 次提交
  6. 30 10月, 2008 1 次提交
  7. 23 10月, 2008 3 次提交
    • F
      USB: Unusual dev for Mio moov 330 gps · e8fab4ce
      Frédéric Marchal 提交于
      Here is an entry for the unusual_devs.h file to handle a Mio Moov 330 GPS that
      stops responding when it is requested to transfer more than 64KB. The patch is
      taken against kernel-2.6.27-git3.
      
      Signed-off-by: Frédéric Marchal <frederic.marchal@wowcompany.co
      Signed-off-by: NPhil Dibowitz <phil@ipom.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      e8fab4ce
    • F
      USB: support Huawei data card product IDs · 1460e5e4
      fangxiaozhi 提交于
      In this patch, we want to do one thing: add more Huawei product IDs into the
      USB driver. Then it can support  more Huawei data card devices. So to declare
      the unusual device for new Huawei data card devices in unusual_devs.h and to
      declare more new product IDs in option.c.
      
      To modify the data value and length in the function of
      usb_stor_huawei_e220_init in initializers.c That's because based on the USB
      standard, while sending SET_FETURE_D to the device, it requires the
      corresponding data to be zero, and its sending length also must be zero.  In
      our old solution, it can be compatible with our WCDMA data card devices, but
      can not support our CDMA data card devices.  But in this new solution, it can
      be compatible with all of our data card devices.
      Signed-off-by: Nfangxiaozhi <huananhu@huawei.com>
      Signed-off-by: NPhil Dibowitz <phil@ipom.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      1460e5e4
    • P
      USB: storage: Avoid I/O errors when issuing SCSI ioctls to JMicron USB/ATA bridge · 3030ca4c
      Phil Dibowitz 提交于
      Here's the patch that implements the fix you suggested to avoid the
      I/O errors that I was running into with my new USB enclosure with a
      JMicron USB/ATA bridge, while issuing scsi-io USN or other such
      queries used by Fedora's mkinitrd.
      http://bugzilla.kernel.org/show_bug.cgi?id=9638#c85
      
      
      /proc/bus/usb/devices:
      T:  Bus=01 Lev=01 Prnt=01 Port=07 Cnt=04 Dev#=  5 Spd=480 MxCh= 0
      D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
      P:  Vendor=152d ProdID=2329 Rev= 1.00
      S:  Manufacturer=JMicron
      S:  Product=USB to ATA/ATAPI Bridge
      S:  SerialNumber=DE5088854FFF
      C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  2mA
      I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
      E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
      E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
      
      (patch applied and retested on a modified 2.6.27.2-libre.24.rc1.fc10)
      Signed-off-by: NPhil Dibowitz <phil@ipom.com>
      Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      3030ca4c
  8. 18 10月, 2008 2 次提交
    • G
      USB: remove err() macro from more usb drivers · 802f389a
      Greg Kroah-Hartman 提交于
      USB should not be having it's own printk macros, so remove err() and
      use the system-wide standard of dev_err() wherever possible.  In the
      few places that will not work out, use a basic printk().
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      802f389a
    • A
      usb-storage: report underflow with no sense data · 8bfa2472
      Alan Stern 提交于
      This patch (as1118) addresses a problem with certain USB mass-storage
      devices.  These devices sometimes return less data than asked for and
      then provide no sense data to explain the problem.  Currently
      usb-storage leaves it up to the SCSI layer to decide how this should
      be handled, and the SCSI layer interprets the lack of sense data to
      mean that nothing went wrong.  But if we got less data than required
      then something definitely _did_ go wrong, and we should say so.
      
      The patch tells the SCSI layer to retry the command when this sort of
      thing happens.  Retrying may not solve the underlying problem, but
      it's better than believing that data was transferred when it wasn't.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      8bfa2472
  9. 24 9月, 2008 5 次提交
  10. 14 8月, 2008 6 次提交
    • A
      usb-storage: unusual_devs entry for Nokia 5300 · d28525f8
      Alan Stern 提交于
      This patch (as1120) adds an unusual_devs entry for the Nokia 5300.
      Maybe once Nokia releases the Symbian code we'll be able to fix all
      the problems it has with the USB mass-storage protocol.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Tested-by: NCedric Godin <cedric@belbone.be>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d28525f8
    • J
      USB: usb-storage Motorola Phone Razr v3xx US_FL_FIX_CAPACITY patch · 51cdc1c1
      Jost Diederichs 提交于
      add razr v3xx US_FL_FIX_CAPACITY flag to unusual_devs.h in usb-storage
      
      This is another Motorola phone that incorrectly reports the sector count
      (off by one).
      
      Problem Description: io errors when mounting phone's sd-card via the
      phones usb port
      
      Steps to reproduce: mount Motorola Razr v3xx phones sd-card on Linux Desktop
      via usb cable. Phones USB port must be in memory card mode.
      
      DEBUG output:
      Jul 9 19:32:41 micky kernel: Buffer I/O error on device sdd, logical block 3970048
      Jul 9 19:32:41 micky kernel: sd 11:0:0:0: [sdd] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK
      Jul 9 19:32:41 micky kernel: sd 11:0:0:0: [sdd] Sense Key : Medium Error [current]
      Jul 9 19:32:41 micky kernel: sd 11:0:0:0: [sdd] Add. Sense: No additional sense information
      Jul 9 19:32:41 micky kernel: end_request: I/O error, dev sdd, sector 3970048
      
      
      From: Jost Diederichs <jost@qdusa.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      51cdc1c1
    • K
      USB Storage Sierra: TRU-Install feature update · 32fe5e39
      Kevin Lloyd 提交于
      This patch upgrades the support for the Sierra Wireless TRU-Install
      feature (i.e. zeroCD) to allow for future support of Linux enabled
      TRU-Install devices.
      
      By default all devices that do not have a Linux enabled TRU-Install
      device (i.e. the device does not have a Linux package on the virtual CD
      partition) will be switched into "modem mode." Devices that do contain a
      Linux package in the TRU-Install virtual CD will be allowed to enumerate
      as a CD-Rom so that either (a) a user can install the packaged software
      or (b) a user-space application (e.g. udev) can switch it to modem mode.
      
      This patch does allow for manual override by adding a usb-storage module
      parameter 'swi_tru_install' which can force the modem into either mode
      regardless of what packages it contains.
      Signed-off-by: NKevin Lloyd <klloyd@sierrawireless.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      32fe5e39
    • A
      usb-storage: unusual_devs entries for iRiver T10 and Datafab CF+SM reader · 368ee646
      Alan Stern 提交于
      This patch (as1115) adds unusual_devs entries with the IGNORE_RESIDE
      flag for the iRiver T10 and the Simple Tech/Datafab CF+SM card
      reader.  Apparently these devices provide reasonable residue values
      for READ and WRITE operations, but not for others like INQUIRY or READ
      CAPACITY.
      
      This fixes the iRiver T10 problem reported in Bugzilla #11125.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      368ee646
    • A
      usb-storage: automatically recognize bad residues · 59f4ff2e
      Alan Stern 提交于
      This patch (as1119) will help to reduce the clutter of usb-storage's
      unusual_devs file by automatically detecting some devices that need
      the IGNORE_RESIDUE flag.  The idea is that devices should never return
      a non-zero residue for an INQUIRY or a READ CAPACITY command unless
      they failed to transfer all the requested data.  So if one of these
      commands transfers a standard amount of data but there is a positive
      residue, we know that the residue is bogus and we can set the flag.
      
      This fixes the problems reported in Bugzilla #11125.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      59f4ff2e
    • D
      USB: usb-storage: quirk around v1.11 firmware on Nikon D4 · b9a097f2
      Dave Jones 提交于
      usb-storage: quirk around v1.11 firmware on Nikon D40
      
      https://bugzilla.redhat.com/show_bug.cgi?id=454028
      Just as in earlier firmware versions, we need to perform this
      quirk for the latest version too.
      
      Speculatively do the entry for the D80 too, as they seem to
      have the same firmware problems historically.
      Signed-off-by: NDave Jones <davej@redhat.com>
      Cc: Johannes Berg <johannes@sipsolutions.net>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b9a097f2
  11. 06 8月, 2008 1 次提交
  12. 22 7月, 2008 8 次提交
    • A
      usb-storage: revert DMA-alignment change for Wireless USB · f756cbd4
      Alan Stern 提交于
      This patch (as1110) reverts an earlier patch meant to help with
      Wireless USB host controllers.  These controllers can have bulk
      maxpacket values larger than 512, which puts unusual constraints on
      the sizes of scatter-gather list elements.  However it turns out that
      the block layer does not provide the support we need to enforce these
      constraints; merely changing the DMA alignment mask doesn't help.
      Hence there's no reason to keep the original patch.  The Wireless USB
      problem will have to be solved a different way.
      
      In addition, there is a reason to get rid of the earlier patch.  By
      dereferencing a pointer stored in the ep_in array of struct
      usb_device, the current code risks an invalid memory access when it
      runs concurrently with device removal.  The members of that array are
      cleared before the driver's disconnect method is called, so it should
      not try to use them.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      f756cbd4
    • M
      USB: fix usb_reset_device and usb_reset_composite_device(take 3) · 742120c6
      Ming Lei 提交于
      This patch renames the existing usb_reset_device in hub.c to
      usb_reset_and_verify_device and renames the existing
      usb_reset_composite_device to usb_reset_device. Also the new
      usb_reset_and_verify_device does't need to be EXPORTED .
      
      The idea of the patch is that external interface driver
      should warn the other interfaces' driver of the same
      device before and after reseting the usb device. One interface
      driver shoud call _old_ usb_reset_composite_device instead of
      _old_ usb_reset_device since it can't assume the device contains
      only one interface. The _old_ usb_reset_composite_device
      is safe for single interface device also. we rename the two
      functions to make the change easily.
      
      This patch is under guideline from Alan Stern.
      Signed-off-by: NMing Lei <tom.leiming@gmail.com>
      742120c6
    • M
      USB: remove interface parameter of usb_reset_composite_device · 625f6949
      Ming Lei 提交于
      From the current implementation of usb_reset_composite_device
      function, the iface parameter is no longer useful. This function
      doesn't do something special for the iface usb_interface,compared
      with other interfaces in the usb_device. So remove the parameter
      and fix the related caller.
      Signed-off-by: NMing Lei <tom.leiming@gmail.com>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      625f6949
    • A
      USB: remove CVS keywords · ea05af61
      Adrian Bunk 提交于
      This patch removes CVS keywords that weren't updated for a long time
      from comments.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ea05af61
    • A
      usb-storage: implement "soft" unbinding · 543f7810
      Alan Stern 提交于
      This patch (as1092) implements "soft" unbinding for usb-storage.  When
      the disconnect routine is called, all commands and reset delays are
      allowed to complete normally until after scsi_remove_host() returns.
      This means that the commands needed for an orderly shutdown will be
      sent through to the device.
      
      Unlike before, the driver will now execute every command that it
      accepts.  Hence there's no need for special code to catch unexecuted
      commands and fail them.
      
      The new sequence of events when disconnect runs goes as follows:
      
      	If the device is truly unplugged, set the DISCONNECTING
      	flag so we won't try to access it any more.
      
      	If the SCSI-scanning thread hasn't started up yet, prevent
      	it from doing anything by setting the new DONT_SCAN flag.
      	Then wake it up and wait for it to terminate.
      
      	Remove the SCSI host.  This unbinds the upper-level drivers,
      	doing an orderly shutdown.  Commands sent to quiesce the
      	device will be transmitted normally, unless the device is
      	unplugged.
      
      	Set the DISCONNECTING flag so that we won't accept any new
      	commands that might get submitted (there aren't supposed to be
      	any) and we won't try to access the device for resets.
      
      	Tell the control thread to exit by waking it up with no
      	pending command, and wait for it to terminate.
      
      	Go on to do all the other normal stuff: releasing resources,
      	freeing memory, and so on.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      543f7810
    • A
      usb-storage: change remaining semaphore to completion · 7119e3c3
      Alan Stern 提交于
      This patch (as1090) converts the one remaining semaphore in
      usb-storage into a completion.
      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>
      7119e3c3
    • A
      usb-storage: separate dynamic flags from fixed flags · 7e4d6c38
      Alan Stern 提交于
      This patch (as1089) separates out the dynamic atomic bitflags and the
      static bitfields in usb-storage.  Until now the two sorts of flags
      have been sharing the same word; this has always been awkward.
      
      To help prevent possible confusion, the two new fields each have a
      different name from the original.  us->fflags contains the fixed
      bitfields (mostly taken from the USB ID table in unusual_devs.h), and
      us->dflags contains the dynamic atomic bitflags (used with set_bit,
      test_bit, and so on).
      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>
      7e4d6c38
    • A
  13. 04 7月, 2008 1 次提交
  14. 30 5月, 2008 1 次提交