1. 13 10月, 2007 9 次提交
    • M
      usb: remove redundant memset from amd5536udc · 60b69a96
      Mariusz Kozlowski 提交于
      Remove redundant memset() call from udc_pci_probe().  No functional change.
      Signed-off-by: NMariusz Kozlowski <m.kozlowski@tuxland.pl>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      60b69a96
    • A
      USB: cleanups for g_file_storage · 79a7d9ee
      Alan Stern 提交于
      This patch (as957) makes some minor cleanups to the g_file_storage
      driver:
      
      	Update the copyright date and version string;
      
      	Uniformize the logging macros for the gadget and the LUNs;
      
      	Remove "inline" markers -- nowadays we rely on the compiler
      	to decide which routines are best inlined;
      
      	Use the print_hex_dump() library routines;
      
      	Remove some unnecessary assignments within conditionals
      	and fix some close-brace indenting levels;
      
      	Fix some column-80 violations.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      79a7d9ee
    • A
      USB: make HCDs responsible for managing endpoint queues · e9df41c5
      Alan Stern 提交于
      This patch (as954) implements a suggestion of David Brownell's.  Now
      the host controller drivers are responsible for linking and unlinking
      URBs to/from their endpoint queues.  This eliminates the possiblity of
      strange situations where usbcore thinks an URB is linked but the HCD
      thinks it isn't.  It also means HCDs no longer have to check for URBs
      being dequeued before they were fully enqueued.
      
      In addition to the core changes, this requires changing every host
      controller driver and the root-hub URB handler.  For the most part the
      required changes are fairly small; drivers have to call
      usb_hcd_link_urb_to_ep() in their urb_enqueue method,
      usb_hcd_check_unlink_urb() in their urb_dequeue method, and
      usb_hcd_unlink_urb_from_ep() before giving URBs back.  A few HCDs make
      matters more complicated by the way they split up the flow of control.
      
      In addition some method interfaces get changed.  The endpoint argument
      for urb_enqueue is now redundant so it is removed.  The unlink status
      is required by usb_hcd_check_unlink_urb(), so it has been added to
      urb_dequeue.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      CC: David Brownell <david-b@pacbell.net>
      CC: Olav Kongas <ok@artecdesign.ee>
      CC: Tony Olech <tony.olech@elandigitalsystems.com>
      CC: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e9df41c5
    • D
      USB: gadget: gadget zero cleanups · ca2bdf4b
      David Brownell 提交于
      Clean up gadget zero, using newer APIs and conventions:
      
       - gadget_is_dualspeed() and gadget_is_otg() ... #ifdef removal
      
       - Remove many now-needless #includes
      
       - Use the VERBOSE_DEBUG convention
      
       - Some whitespace fixes.
      
       - A few comment updates
       
       - Plus a few other small cleanups:  don't pass gfp_t around when it's
         always going to be GFP_ATOMIC, and do static init of serial number.
      
      Also go to straight GPL; there's no real point in dual licensing this
      stuff any more.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ca2bdf4b
    • D
      USB: gadget: file storage gadget cleanups · 2e806f67
      David Brownell 提交于
      Clean up the file storage gadget, using newer APIs and conventions:
      
       - gadget_is_dualspeed() and gadget_is_otg() ... #ifdef removal
      
       - Remove many now-needless #includes
      
       - Use the DEBUG (from Kconfig+Makefile) and VERBOSE_DEBUG conventions.
      
       - Remove some "sparse" warnings (it still dislikes the __user annotations)
      
      This gave only a minor object code shrinkage.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      2e806f67
    • D
      USB: gadget: serial gadget cleanups · 51a0e85c
      David Brownell 提交于
      Clean up the serial gadget, using newer APIs and conventions:
      
       - gadget_is_dualspeed() and gadget_is_otg() ... #ifdef removal
      
       - Remove many now-needless #includes
      
       - Use the DEBUG and VERBOSE_DEBUG conventions; turned up a bug in
         the original debug messaging
      
       - Various whitespace fixes.
      
      This gave only a minor object code shrinkage, but the source looks
      much cleaner in various places.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Al Borchers <alborchers@steinerpoint.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      51a0e85c
    • D
      USB: gadget: gmidi cleanups · 8c070216
      David Brownell 提交于
      Clean up the midi gadget, using newer APIs and conventions:
      
       - Remove many now-needless #includes
      
       - Use the DEBUG (from Kconfig+Makefile) and VERBOSE_DEBUG conventions.
      
       - Whitespace fixes
      
      There should be no effect on object code size.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Ben Williamson <ben.williamson@greyinnovation.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      8c070216
    • D
      USB: gadget: ethernet gadget cleanups, shrinkage · 0cf4f2de
      David Brownell 提交于
      Clean up the ethernet gadget, using newer APIs and conventions:
      
       - gadget_is_dualspeed() and gadget_is_otg() ... #ifdef removal
      
       - Remove many now-needless #includes
      
       - Use the VERBOSE_DEBUG convention
      
       - Minor whitespace fixes.
      
       - Fix a warning from "sparse".
      
      Surprisingly, this saved about 2K of code (16%) on a fullspeed-only
      ARMv4 platform.  I'm bit puzzled by that (it's so much!), but approve
      of the result.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      0cf4f2de
    • D
      USB: gadget: gadget_is_{dualspeed,otg} predicates and cleanup · a4e3ef55
      David Brownell 提交于
      This adds two small inlines to the gadget stack, which will
      often evaluate to compile-time constants.  That can help
      shrink object code and remove #ifdeffery.
      
       - gadget_is_dualspeed(), currently always a compile-time
         constant (depending on which controller is selected).
      
       - gadget_is_otg(), usually a compile time "false", but this
         is a runtime test if the platform enables OTG (since it's
         reasonable to populate boards with different USB sockets).
      
      It also updates two peripheral controller drivers to use these:
      
       - fsl_usb2_udc, mostly OTG-related bugfixes:  non-OTG devices
         must follow the rules about drawing VBUS power, and OTG ones
         need to reject invalid SET_FEATURE requests.
      
       - omap_udc, just scrubbing a bit of #ifdeffery.
      
      And also gadgetfs, which lost some #ifdefs and moved to a more
      standard handling of DEBUG and VERBOSE_DEBUG.
      
      The main benefits come from patches which will follow.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a4e3ef55
  2. 11 10月, 2007 1 次提交
  3. 11 9月, 2007 1 次提交
  4. 23 8月, 2007 5 次提交
  5. 31 7月, 2007 2 次提交
  6. 20 7月, 2007 4 次提交
  7. 18 7月, 2007 1 次提交
    • R
      Freezer: make kernel threads nonfreezable by default · 83144186
      Rafael J. Wysocki 提交于
      Currently, the freezer treats all tasks as freezable, except for the kernel
      threads that explicitly set the PF_NOFREEZE flag for themselves.  This
      approach is problematic, since it requires every kernel thread to either
      set PF_NOFREEZE explicitly, or call try_to_freeze(), even if it doesn't
      care for the freezing of tasks at all.
      
      It seems better to only require the kernel threads that want to or need to
      be frozen to use some freezer-related code and to remove any
      freezer-related code from the other (nonfreezable) kernel threads, which is
      done in this patch.
      
      The patch causes all kernel threads to be nonfreezable by default (ie.  to
      have PF_NOFREEZE set by default) and introduces the set_freezable()
      function that should be called by the freezable kernel threads in order to
      unset PF_NOFREEZE.  It also makes all of the currently freezable kernel
      threads call set_freezable(), so it shouldn't cause any (intentional)
      change of behaviour to appear.  Additionally, it updates documentation to
      describe the freezing of tasks more accurately.
      
      [akpm@linux-foundation.org: build fixes]
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NNigel Cunningham <nigel@nigel.suspend2.net>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Oleg Nesterov <oleg@tv-sign.ru>
      Cc: Gautham R Shenoy <ego@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      83144186
  8. 16 7月, 2007 1 次提交
  9. 13 7月, 2007 16 次提交