1. 26 9月, 2012 1 次提交
  2. 14 9月, 2012 2 次提交
    • H
    • H
      [media] gspca: Don't set gspca_dev->dev to NULL before stop0 · 345321dc
      Hans de Goede 提交于
      In commit a3d6e8cc gspca_dev->dev is set
      to NULL on disconnect, before calling stop0. The plan was to get rid of
      gspca_dev->present and instead simply check for gspca_dev->dev everywhere
      where we were checking for present. This should be race free since all users
      of gspca_dev->dev hold the usb_lock, or so I thought.
      
      But I was wrong, drivers which use a work-queue + synchronous bulk transfers
      to get the video data don't hold the usb_lock while doing so, their stop0
      callbacks stop the workqueue, so they won't be using gspca_dev->dev anymore
      after the stop0 call, but they might be dereferincing it before, so we should
      not set gspca_dev->dev to NULL on disconnect before calling stop0.
      
      This also means that the workqueue functions in these drivers cannot
      use gspca_dev->dev to check if they need to stop because of disconnection,
      so we will need to keep gspca_dev->present around, and set that to 0 on
      disconnect, before calling stop0. Unfortunately as part of the plan to remove
      gspca_dev->present, these workqueues where already moved over to checking
      for gspca_dev->dev instead of gspca_dev->present as part of commit
      254902b0, so this patch also reverts those
      parts of that commit.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      345321dc
  3. 16 8月, 2012 1 次提交
  4. 20 5月, 2012 1 次提交
  5. 14 5月, 2012 7 次提交
  6. 20 3月, 2012 2 次提交
  7. 08 3月, 2012 6 次提交
  8. 11 12月, 2011 2 次提交
  9. 19 11月, 2011 1 次提交
    • G
      USB: convert drivers/media/* to use module_usb_driver() · ecb3b2b3
      Greg Kroah-Hartman 提交于
      This converts the drivers in drivers/media/* to use the
      module_usb_driver() macro which makes the code smaller and a bit
      simpler.
      
      Added bonus is that it removes some unneeded kernel log messages about
      drivers loading and/or unloading.
      
      Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      Cc: Luca Risolia <luca.risolia@studio.unibo.it>
      Cc: Jean-Francois Moine <moinejf@free.fr>
      Cc: Frank Zago <frank@zago.net>
      Cc: Olivier Lorin <o.lorin@laposte.net>
      Cc: Erik Andren <erik.andren@gmail.com>
      Cc: Hans de Goede <hdegoede@redhat.com>
      Cc: Brian Johnson <brijohn@gmail.com>
      Cc: Leandro Costantino <lcostantino@gmail.com>
      Cc: Antoine Jacquet <royale@zerezo.com>
      Cc: Jarod Wilson <jarod@redhat.com>
      Cc: Florian Mickler <florian@mickler.org>
      Cc: Antti Palosaari <crope@iki.fi>
      Cc: Michael Krufky <mkrufky@kernellabs.com>
      Cc: "David Härdeman" <david@hardeman.nu>
      Cc: Florent Audebert <florent.audebert@anevia.com>
      Cc: Sam Doshi <sam@metal-fish.co.uk>
      Cc: Manu Abraham <manu@linuxtv.org>
      Cc: Olivier Grenie <olivier.grenie@dibcom.fr>
      Cc: Patrick Boettcher <patrick.boettcher@dibcom.fr>
      Cc: "Igor M. Liplianin" <liplianin@me.by>
      Cc: Derek Kelly <user.vdr@gmail.com>
      Cc: Malcolm Priestley <tvboxspy@gmail.com>
      Cc: Steven Toth <stoth@kernellabs.com>
      Cc: "André Weidemann" <Andre.Weidemann@web.de>
      Cc: Martin Wilks <m.wilks@technisat.com>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Jose Alberto Reguero <jareguero@telefonica.net>
      Cc: David Henningsson <david.henningsson@canonical.com>
      Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
      Cc: Joe Perches <joe@perches.com>
      Cc: Jesper Juhl <jj@chaosbits.net>
      Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
      Cc: Hans Verkuil <hans.verkuil@cisco.com>
      Cc: Alexey Khoroshilov <khoroshilov@ispras.ru>
      Cc: Anssi Hannula <anssi.hannula@iki.fi>
      Cc: Rafi Rubin <rafi@seas.upenn.edu>
      Cc: Dan Carpenter <error27@gmail.com>
      Cc: Paul Bender <pebender@gmail.com>
      Cc: Devin Heitmueller <dheitmueller@kernellabs.com>
      Cc: "Márcio A Alves" <froooozen@gmail.com>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Chris Rankin <rankincj@yahoo.com>
      Cc: Lee Jones <lee.jones@canonical.com>
      Cc: Andy Walls <awalls@md.metrocast.net>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Mike Frysinger <vapier@gentoo.org>
      Cc: Dean Anderson <linux-dev@sensoray.com>
      Cc: Pete Eberlein <pete@sensoray.com>
      Cc: Arvydas Sidorenko <asido4@gmail.com>
      Cc: Andrea Anacleto <andreaanacleto@libero.it>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ecb3b2b3
  10. 24 9月, 2011 1 次提交
  11. 04 9月, 2011 1 次提交
  12. 21 5月, 2011 1 次提交
  13. 20 5月, 2011 1 次提交
  14. 23 3月, 2011 1 次提交
  15. 22 3月, 2011 2 次提交
  16. 31 1月, 2011 3 次提交
  17. 19 1月, 2011 1 次提交
  18. 29 12月, 2010 4 次提交
  19. 22 10月, 2010 1 次提交
  20. 21 10月, 2010 1 次提交