1. 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
  2. 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
  3. 12 10月, 2008 7 次提交
  4. 26 7月, 2008 1 次提交
  5. 20 7月, 2008 8 次提交
  6. 25 4月, 2008 22 次提交