1. 05 3月, 2014 9 次提交
  2. 05 2月, 2014 3 次提交
  3. 09 1月, 2014 1 次提交
  4. 04 1月, 2014 1 次提交
  5. 10 12月, 2013 1 次提交
  6. 09 12月, 2013 1 次提交
  7. 17 10月, 2013 1 次提交
  8. 28 8月, 2013 1 次提交
  9. 23 7月, 2013 1 次提交
  10. 17 5月, 2013 3 次提交
  11. 01 5月, 2013 1 次提交
  12. 24 4月, 2013 1 次提交
  13. 20 4月, 2013 2 次提交
    • G
      USB: storage: convert to use module_usb_driver() · 4601de80
      Greg Kroah-Hartman 提交于
      Now that Joe cleaned up the init/exit functions, we can just get rid of
      them entirely and use the proper macro that almost all other USB drivers
      now use.
      
      Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
      Cc: Joe Perches <joe@perches.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4601de80
    • J
      usb: storage: Convert US_DEBUGP to usb_stor_dbg · 191648d0
      Joe Perches 提交于
      Use a more current logging style with dev_printk
      where possible.
      
      o Convert uses of US_DEBUGP to usb_stor_dbg
      o Add "struct us_data *" to usb_stor_dbg uses
      o usb_stor_dbg now uses struct device */dev_vprint_emit
      o Removed embedded function names
      o Coalesce formats
      o Remove trailing whitespace
      o Remove useless OOM messages
      o Remove useless function entry/exit logging
      o Convert some US_DEBUGP uses to dev_info and dev_dbg
      
      Object size is slightly reduced when debugging
      is enabled, slightly increased with no debugging
      because some initialization and removal messages
      are now always emitted.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      191648d0
  14. 19 4月, 2013 1 次提交
  15. 18 4月, 2013 1 次提交
    • J
      usb: storage: Add usb_stor_dbg, reduce object size · 75b9130e
      Joe Perches 提交于
      Reduce the size of the objects by consolidating
      the duplicated USB_STORAGE into a single function.
      
      Add function usb_stor_dbg to emit debugging messages.
      Always validate the format and arguments.
      Reduce the number of uses of CONFIG_USB_STORAGE_DEBUG.
      
      Reduces size of objects ~7KB when CONFIG_USB_STORAGE_DEBUG
      is set.
      
      $ size drivers/usb/storage/built-in.o*
         text	   data	    bss	    dec	    hex	filename
       140133	  55296	  70312	 265741	  40e0d	drivers/usb/storage/built-in.o.new
       147494	  55248	  70296	 273038	  42a8e	drivers/usb/storage/built-in.o.old
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      75b9130e
  16. 10 4月, 2013 2 次提交
  17. 18 3月, 2013 1 次提交
  18. 16 3月, 2013 3 次提交
  19. 07 3月, 2013 2 次提交
    • B
      USB: storage: fix Huawei mode switching regression · ab4b7164
      Bjørn Mork 提交于
      This reverts commit 200e0d99 ("USB: storage: optimize to match the
      Huawei USB storage devices and support new switch command" and the
      followup bugfix commit cd060956 ("USB: storage: properly handle
      the endian issues of idProduct").
      
      The commit effectively added a large number of Huawei devices to
      the deprecated usb-storage mode switching logic.  Many of these
      devices have been in use and supported by the userspace
      usb_modeswitch utility for years.  Forcing the switching inside
      the kernel causes a number of regressions as a result of ignoring
      existing onfigurations, and also completely takes away the ability
      to configure mode switching per device/system/user.
      
      Known regressions caused by this:
       - Some of the devices support multiple modes, using different
        switching commands.  There are existing configurations taking
        advantage of this.
      
       - There is a real use case for disabling mode switching and
        instead mounting the exposed storage device. This becomes
        impossible with switching logic inside the usb-storage driver.
      
       - At least on device fail as a result of the usb-storage switching
        command, becoming completely unswitchable. This is possibly a
        firmware bug, but still a regression because the device work as
        expected using usb_modeswitch defaults.
      
      In-kernel mode switching was deprecated years ago with the
      development of the more user friendly userspace alternatives. The
      existing list of devices in usb-storage was only kept to prevent
      breaking already working systems.  The long term plan is to remove
      the list, not to add to it. Ref:
      http://permalink.gmane.org/gmane.linux.usb.general/28543
      
      Cc: <fangxiaozhi@huawei.com>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ab4b7164
    • B
  20. 15 2月, 2013 1 次提交
  21. 09 2月, 2013 1 次提交
  22. 05 2月, 2013 2 次提交