<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/drivers/media/video/gspca/sq905c.c, branch v4.8-rc3</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v4.8-rc3</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v4.8-rc3'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2012-08-15T19:25:07+00:00</updated>
<entry>
<title>[media] rename most media/video usb drivers to media/usb</title>
<updated>2012-08-15T19:25:07+00:00</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab@redhat.com</email>
</author>
<published>2012-08-14T03:13:22+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=0c0d06cac63ee327ceaab4b5ffe2206574ab86bd'/>
<id>urn:sha1:0c0d06cac63ee327ceaab4b5ffe2206574ab86bd</id>
<content type='text'>
Rename all USB drivers with their own directory under
drivers/media/video into drivers/media/usb and update the
building system.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] gspca: use %*ph to print small buffers</title>
<updated>2012-08-13T19:39:05+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>andriy.shevchenko@linux.intel.com</email>
</author>
<published>2012-08-07T15:43:07+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=70aa34569a7d99d5ea505421af07f335dcaabb73'/>
<id>urn:sha1:70aa34569a7d99d5ea505421af07f335dcaabb73</id>
<content type='text'>
Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Cc: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] gspca: Add reset_resume callback to all sub-drivers</title>
<updated>2012-07-30T21:39:22+00:00</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2012-06-30T09:44:47+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=8bb58964bc139d5ff5285f84aa302977d221754d'/>
<id>urn:sha1:8bb58964bc139d5ff5285f84aa302977d221754d</id>
<content type='text'>
1) The gspca-core's suspend/resume code is such that resume being called after
a reset is safe / ok.

2) All devices tested sofar seem to need the reset_resume callback to work
properly over a suspend

3) The USB-core won't call the reset_resume callback for devices which don't
need it

Thus it seems the simplest and the best to just add the callback to all
sub-drivers, rather then adding the callbacks one-by-one as each driver gets
tested with suspend/resume.

Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] gspca: the field 'frozen' is under CONFIG_PM</title>
<updated>2012-05-20T12:35:42+00:00</updated>
<author>
<name>Hans Verkuil</name>
<email>hans.verkuil@cisco.com</email>
</author>
<published>2012-05-18T11:40:42+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=4ad34da0300d7196be25ef79ef3f054756cdc739'/>
<id>urn:sha1:4ad34da0300d7196be25ef79ef3f054756cdc739</id>
<content type='text'>
The gspca_dev field 'frozen' is added only if CONFIG_PM is set. So add the
relevant #ifdef's to various subdrivers that use it.

The m32r daily build caught this mistake.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] gspca: Fix locking issues related to suspend/resume</title>
<updated>2012-05-14T12:28:39+00:00</updated>
<author>
<name>Hans Verkuil</name>
<email>hans.verkuil@cisco.com</email>
</author>
<published>2012-05-06T12:28:22+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=254902b01d2acc6aced99ec17caa4c6cd890cdea'/>
<id>urn:sha1:254902b01d2acc6aced99ec17caa4c6cd890cdea</id>
<content type='text'>
There are two bugs here: first the calls to stop0 (in gspca_suspend) and
gspca_init_transfer (in gspca_resume) need to be called with the usb_lock held.
That's true for the other places they are called and it is what subdrivers
expect. Quite a few will unlock the usb_lock in stop0 while waiting for a
worker thread to finish, and if usb_lock isn't held then that can cause a
kernel oops.

The other problem is that a worker thread needs to detect that it has to
halt due to a suspend. Otherwise it will just go on looping. So add tests
against gspca_dev-&gt;frozen in the worker threads that need it.

Hdg, 2 minor changes:
1) The finepix device is ok with stopping reading a frame halfway through,
   so add frozen checks in all places where we also check if we're still
   streaming
2) Use gspca_dev-&gt;dev instead of gspca_dev-&gt;present to check for disconnect
   in all touched drivers. I plan to do this everywhere in the future, and
   most relevant lines in the touched drivers are already modified by this
   patch.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>USB: convert drivers/media/* to use module_usb_driver()</title>
<updated>2011-11-18T17:46:12+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2011-11-18T17:46:12+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=ecb3b2b35db49778b6d89e3ffd0c400776c20735'/>
<id>urn:sha1:ecb3b2b35db49778b6d89e3ffd0c400776c20735</id>
<content type='text'>
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 &lt;mchehab@infradead.org&gt;
Cc: Luca Risolia &lt;luca.risolia@studio.unibo.it&gt;
Cc: Jean-Francois Moine &lt;moinejf@free.fr&gt;
Cc: Frank Zago &lt;frank@zago.net&gt;
Cc: Olivier Lorin &lt;o.lorin@laposte.net&gt;
Cc: Erik Andren &lt;erik.andren@gmail.com&gt;
Cc: Hans de Goede &lt;hdegoede@redhat.com&gt;
Cc: Brian Johnson &lt;brijohn@gmail.com&gt;
Cc: Leandro Costantino &lt;lcostantino@gmail.com&gt;
Cc: Antoine Jacquet &lt;royale@zerezo.com&gt;
Cc: Jarod Wilson &lt;jarod@redhat.com&gt;
Cc: Florian Mickler &lt;florian@mickler.org&gt;
Cc: Antti Palosaari &lt;crope@iki.fi&gt;
Cc: Michael Krufky &lt;mkrufky@kernellabs.com&gt;
Cc: "David Härdeman" &lt;david@hardeman.nu&gt;
Cc: Florent Audebert &lt;florent.audebert@anevia.com&gt;
Cc: Sam Doshi &lt;sam@metal-fish.co.uk&gt;
Cc: Manu Abraham &lt;manu@linuxtv.org&gt;
Cc: Olivier Grenie &lt;olivier.grenie@dibcom.fr&gt;
Cc: Patrick Boettcher &lt;patrick.boettcher@dibcom.fr&gt;
Cc: "Igor M. Liplianin" &lt;liplianin@me.by&gt;
Cc: Derek Kelly &lt;user.vdr@gmail.com&gt;
Cc: Malcolm Priestley &lt;tvboxspy@gmail.com&gt;
Cc: Steven Toth &lt;stoth@kernellabs.com&gt;
Cc: "André Weidemann" &lt;Andre.Weidemann@web.de&gt;
Cc: Martin Wilks &lt;m.wilks@technisat.com&gt;
Cc: Tejun Heo &lt;tj@kernel.org&gt;
Cc: Jose Alberto Reguero &lt;jareguero@telefonica.net&gt;
Cc: David Henningsson &lt;david.henningsson@canonical.com&gt;
Cc: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Cc: Joe Perches &lt;joe@perches.com&gt;
Cc: Jesper Juhl &lt;jj@chaosbits.net&gt;
Cc: Lucas De Marchi &lt;lucas.demarchi@profusion.mobi&gt;
Cc: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Cc: Alexey Khoroshilov &lt;khoroshilov@ispras.ru&gt;
Cc: Anssi Hannula &lt;anssi.hannula@iki.fi&gt;
Cc: Rafi Rubin &lt;rafi@seas.upenn.edu&gt;
Cc: Dan Carpenter &lt;error27@gmail.com&gt;
Cc: Paul Bender &lt;pebender@gmail.com&gt;
Cc: Devin Heitmueller &lt;dheitmueller@kernellabs.com&gt;
Cc: "Márcio A Alves" &lt;froooozen@gmail.com&gt;
Cc: Julia Lawall &lt;julia@diku.dk&gt;
Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Cc: Chris Rankin &lt;rankincj@yahoo.com&gt;
Cc: Lee Jones &lt;lee.jones@canonical.com&gt;
Cc: Andy Walls &lt;awalls@md.metrocast.net&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Mike Frysinger &lt;vapier@gentoo.org&gt;
Cc: Dean Anderson &lt;linux-dev@sensoray.com&gt;
Cc: Pete Eberlein &lt;pete@sensoray.com&gt;
Cc: Arvydas Sidorenko &lt;asido4@gmail.com&gt;
Cc: Andrea Anacleto &lt;andreaanacleto@libero.it&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>[media] gspca: Use current logging styles</title>
<updated>2011-09-04T14:06:05+00:00</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2011-08-21T22:56:57+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=133a9fe949862d9ed8411fb423739f4cee08232d'/>
<id>urn:sha1:133a9fe949862d9ed8411fb423739f4cee08232d</id>
<content type='text'>
Add pr_fmt.
Convert usb style logging macros to pr_&lt;level&gt;.
Remove now unused old usb style logging macros.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Jean-Francois Moine &lt;moinejf@free.fr&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] gspca: Remove __devinit, __devinitconst and __devinitdata</title>
<updated>2011-01-19T13:45:35+00:00</updated>
<author>
<name>Jean-François Moine</name>
<email>moinejf@free.fr</email>
</author>
<published>2011-01-13T08:20:29+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=95c967c167785eb991cf6b22fb854dd8d61d0ff8'/>
<id>urn:sha1:95c967c167785eb991cf6b22fb854dd8d61d0ff8</id>
<content type='text'>
__devinit* must not be used in USB drivers.

Signed-off-by: Jean-François Moine &lt;moinejf@free.fr&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] gspca - sq905c: Adds the Lego Bionicle</title>
<updated>2010-12-29T10:17:05+00:00</updated>
<author>
<name>Theodore Kilgore</name>
<email>kilgota@banach.math.auburn.edu</email>
</author>
<published>2010-12-24T20:06:04+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=634b4770539de63581ccdb554426547ced6ded01'/>
<id>urn:sha1:634b4770539de63581ccdb554426547ced6ded01</id>
<content type='text'>
This patch adds the Vendor:Product number of the Lego Bionicle camera to
the existing gspca/sq905c.c and also a line for the camera in gspca.txt.
The camera works "out of the box" with these small changes. So this is
just in time for Christmas. Think of the children.

Signed-off-by: Theodore Kilgore &lt;kilgota@auburn.edu&gt;
Signed-off-by: Jean-François Moine &lt;moinejf@free.fr&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>V4L/DVB: gspca - all modules: Display error messages when gspca debug disabled</title>
<updated>2010-10-21T03:05:53+00:00</updated>
<author>
<name>Jean-François Moine</name>
<email>moinejf@free.fr</email>
</author>
<published>2010-09-13T08:19:58+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=0b656321f338a2e5e3d9a9bdce959a2d76857967'/>
<id>urn:sha1:0b656321f338a2e5e3d9a9bdce959a2d76857967</id>
<content type='text'>
Signed-off-by: Jean-François Moine &lt;moinejf@free.fr&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
</feed>
