1. 24 12月, 2009 5 次提交
    • A
      USB: fix bugs in usb_(de)authorize_device · da307123
      Alan Stern 提交于
      This patch (as1315) fixes some bugs in the USB core authorization
      code:
      
      	usb_deauthorize_device() should deallocate the device strings
      	instead of leaking them, and it should invoke
      	usb_destroy_configuration() (which does proper reference
      	counting) instead of freeing the config information directly.
      
      	usb_authorize_device() shouldn't change the device strings
      	until it knows that the authorization will succeed, and it should
      	autosuspend the device at the end (having autoresumed the
      	device at the start).
      
      	Because the device strings can be changed, the sysfs routines
      	to display the strings must protect the string pointers by
      	locking the device.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      CC: Inaky Perez-Gonzalez <inaky@linux.intel.com>
      Acked-by: NDavid Vrabel <david.vrabel@csr.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      da307123
    • A
      USB: rename usb_configure_device · 8d8558d1
      Alan Stern 提交于
      This patch (as1314) renames usb_configure_device() and
      usb_configure_device_otg() in the hub driver.  Neither name is
      appropriate because these routines enumerate devices, they don't
      configure them.  That's handled by usb_choose_configuration() and
      usb_set_configuration().
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      8d8558d1
    • A
      USB: power management documentation update · baf67741
      Alan Stern 提交于
      This patch (as1313) updates the documentation concerning USB power
      management.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      baf67741
    • L
      Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 · f42ecb28
      Linus Torvalds 提交于
      * 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (35 commits)
        drm/radeon/kms: add definitions for v4 power tables
        drm/radeon/kms: never combine LVDS with another encoder
        drm/radeon/kms: Check module arguments to be valid V2
        drm/radeon/kms: Avoid crash when trying to cleanup uninitialized structure
        drm/radeon/kms: add cvt mode if we only have lvds w/h and no edid (v4)
        drm/radeon/kms: add 3DC compression support
        drm/radeon/kms: allow rendering while no colorbuffer is set on r300
        drm/radeon/kms: enable memory clock reading on legacy (V2)
        drm/radeon/kms: prevent parallel AtomBIOS calls
        drm/radeon/kms: set proper default tv standard
        drm/radeon/kms: fix legacy rmx
        drm/radeon/kms/atom: fill in proper defines for digital setup
        drm/kms: silencing a false positive warning.
        drm/mm: fix logic for selection of best fit block
        drm/vmwgfx: Use TTM handles instead of SIDs as user-space surface handles.
        drm/vmwgfx: Return -ERESTARTSYS when interrupted by a signal.
        drm/vmwgfx: Fix unlocked ioctl and add proper access control
        drm/radeon: fix build on 64-bit with some compilers.
        drivers/gpu: Use kzalloc for allocating only one thing
        DRM: Rename clamp variable
        ...
      f42ecb28
    • S
      Fix usb_serial_probe() problem introduced by the recent kfifo changes · 119eecc8
      Stefani Seibold 提交于
      The USB serial code was a new user of the kfifo API, and it was missed
      when porting things to the new kfifo API.
      
      Please make the write_fifo in place.  Here is my patch to fix the
      regression and full ported version.
      Signed-off-by: NStefani Seibold <stefani@seibold.net>
      Reported-and-tested-by: NRafael J. Wysocki <rjw@sisk.pl>
      Cc: Greg KH <greg@kroah.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      119eecc8
  2. 23 12月, 2009 35 次提交