1. 30 3月, 2009 9 次提交
  2. 08 1月, 2009 1 次提交
    • A
      USB: change interface to usb_lock_device_for_reset() · 011b15df
      Alan Stern 提交于
      This patch (as1161) changes the interface to
      usb_lock_device_for_reset().  The existing interface is apparently not
      very clear, judging from the fact that several of its callers don't
      use it correctly.  The new interface always returns 0 for success and
      it always requires the caller to unlock the device afterward.
      
      The new routine will not return immediately if it is called while the
      driver's probe method is running.  Instead it will wait until the
      probe is over and the device has been unlocked.  This shouldn't cause
      any problems; I don't know of any cases where drivers call
      usb_lock_device_for_reset() during probe.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Cc: Pete Zaitcev <zaitcev@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      011b15df
  3. 03 1月, 2009 1 次提交
  4. 30 12月, 2008 1 次提交
    • K
      V4L/DVB (9521): V4L: struct device - replace bus_id with dev_name(), dev_set_name() · af128a10
      Kay Sievers 提交于
      This patch is part of a larger patch series which will remove
      the "char bus_id[20]" name string from struct device. The device
      name is managed in the kobject anyway, and without any size
      limitation, and just needlessly copied into "struct device".
      
      To set and read the device name dev_name(dev) and dev_set_name(dev)
      must be used. If your code uses static kobjects, which it shouldn't
      do, "const char *init_name" can be used to statically provide the
      name the registered device should have. At registration time, the
      init_name field is cleared, to enforce the use of dev_name(dev) to
      access the device name at a later time.
      
      We need to get rid of all occurrences of bus_id in the entire tree
      to be able to enable the new interface. Please apply this patch,
      and possibly convert any remaining remaining occurrences of bus_id.
      
      We want to submit a patch to -next, which will remove bus_id from
      "struct device", to find the remaining pieces to convert, and finally
      switch over to the new api, which will remove the 20 bytes array
      and does no longer have a size limitation.
      
      Thanks,
      Kay
      Signed-off-by: NKay Sievers <kay.sievers@vrfy.org>
      Acked-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      af128a10
  5. 22 10月, 2008 1 次提交
    • M
      V4L/DVB (9300): pvrusb2: Fix deadlock problem · c82732a4
      Mike Isely 提交于
      Fix deadlock problem in 2.6.27 caused by new USB core behavior in
      response to a USB device reset request.  With older kernels, the USB
      device reset was "in line"; the reset simply took place and the driver
      retained its association with the hardware.  However now this reset
      triggers a disconnect, and worse still the disconnect callback happens
      in the context of the caller who asked for the device reset.  This
      results in an attempt by the pvrusb2 driver to recursively take a
      mutex it already has, which deadlocks the driver's worker thread.
      (Even if the disconnect callback were to happen on a different thread
      we'd still have problems however - because while the driver should
      survive and correctly disconnect / reconnect, it will then trigger
      another device reset during the repeated initialization, which will
      then cause another disconect, etc, forever.)  The fix here is simply
      to not attempt the device reset (it was of marginal value anyway).
      Signed-off-by: NMike Isely <isely@pobox.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      c82732a4
  6. 12 10月, 2008 7 次提交
  7. 26 7月, 2008 1 次提交
  8. 20 7月, 2008 8 次提交
  9. 25 4月, 2008 11 次提交