<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/media/dvb, branch v3.0.62</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/media/dvb?h=v3.0.62</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/media/dvb?h=v3.0.62'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2012-09-14T17:00:40Z</updated>
<entry>
<title>USB: smsusb: remove __devinit* from the struct usb_device_id table</title>
<updated>2012-09-14T17:00:40Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2012-08-18T00:48:26Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9f48c235c9f8e7c13544f4a2d4b9a728cf257f45'/>
<id>urn:sha1:9f48c235c9f8e7c13544f4a2d4b9a728cf257f45</id>
<content type='text'>
commit d04dbd1c0ec17a13326c8f2279399c225836a79f upstream.

This structure needs to always stick around, even if CONFIG_HOTPLUG
is disabled, otherwise we can oops when trying to probe a device that
was added after the structure is thrown away.

Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.

Reported-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Reported-by: Bjørn Mork &lt;bjorn@mork.no&gt;
CC: Mauro Carvalho Chehab &lt;mchehab@infradead.org&gt;
CC: Michael Krufky &lt;mkrufky@linuxtv.org&gt;
CC: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
CC: Doron Cohen &lt;doronc@siano-ms.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>media: dvb-core: Release semaphore on error path dvb_register_device()</title>
<updated>2012-07-19T15:58:20Z</updated>
<author>
<name>Santosh Nayak</name>
<email>santoshprasadnayak@gmail.com</email>
</author>
<published>2012-06-23T10:59:54Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e49068478916ea599765112c3cf3e31c520bce5c'/>
<id>urn:sha1:e49068478916ea599765112c3cf3e31c520bce5c</id>
<content type='text'>
commit 82163edcdfa4eb3d74516cc8e9f38dd3d039b67d upstream.

There is a missing "up_write()" here. Semaphore should be released
before returning error value.

Signed-off-by: Santosh Nayak &lt;santoshprasadnayak@gmail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>media: smsusb: add autodetection support for USB ID 2040:f5a0</title>
<updated>2012-07-16T15:47:36Z</updated>
<author>
<name>Michael Krufky</name>
<email>mkrufky@linuxtv.org</email>
</author>
<published>2012-05-25T12:29:12Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a6218ee909f993a8bd5138a5eb1bde620c12a2a9'/>
<id>urn:sha1:a6218ee909f993a8bd5138a5eb1bde620c12a2a9</id>
<content type='text'>
commit 3e1141e2ce5667301a74ca2ef396d9bd5e995f7f upstream.

Signed-off-by: Michael Krufky &lt;mkrufky@linuxtv.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>smsusb: add autodetection support for USB ID 2040:c0a0</title>
<updated>2012-06-01T07:12:59Z</updated>
<author>
<name>Michael Krufky</name>
<email>mkrufky@linuxtv.org</email>
</author>
<published>2012-03-22T16:55:05Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=0ee936021bbea1a9d060cad85eb4796f261489c6'/>
<id>urn:sha1:0ee936021bbea1a9d060cad85eb4796f261489c6</id>
<content type='text'>
commit 4d1b58b84472d1d300a66e1c5fd765b21e74ba15 upstream.

Signed-off-by: Michael Krufky &lt;mkrufky@linuxtv.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>lgdt330x: fix signedness error in i2c_read_demod_bytes()</title>
<updated>2012-04-02T16:27:18Z</updated>
<author>
<name>Xi Wang</name>
<email>xi.wang@gmail.com</email>
</author>
<published>2012-02-14T17:32:41Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=88a782d295e29051e1da10a097ff72b3918dbaa9'/>
<id>urn:sha1:88a782d295e29051e1da10a097ff72b3918dbaa9</id>
<content type='text'>
commit 34817174fca0c5512c2d5b6ea0fc37a0337ce1d8 upstream.

The error handling in lgdt3303_read_status() and lgdt330x_read_ucblocks()
doesn't work, because i2c_read_demod_bytes() returns a u8 and (err &lt; 0)
is always false.

        err = i2c_read_demod_bytes(state, 0x58, buf, 1);
        if (err &lt; 0)
                return err;

Change the return type of i2c_read_demod_bytes() to int.  Also change
the return value on error to -EIO to make (err &lt; 0) work.

Signed-off-by: Xi Wang &lt;xi.wang@gmail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>dib0700: protect the dib0700 buffer access</title>
<updated>2011-11-11T17:36:14Z</updated>
<author>
<name>Olivier Grenie</name>
<email>olivier.grenie@dibcom.fr</email>
</author>
<published>2011-08-01T15:45:58Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=10d65fc3a3348315c2d30e19419e8db6ed486b8a'/>
<id>urn:sha1:10d65fc3a3348315c2d30e19419e8db6ed486b8a</id>
<content type='text'>
commit bff469f4167fdabfe15294f375577d7eadbaa1bb upstream.

This patch protects the common buffer access inside the dib0700 in order
to manage concurrent access. This protection is done using mutex.

Cc: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Cc: Florian Mickler &lt;florian@mickler.org&gt;
Signed-off-by: Javier Marcet &lt;javier@marcet.info&gt;
Signed-off-by: Olivier Grenie &lt;olivier.grenie@dibcom.fr&gt;
Signed-off-by: Patrick Boettcher &lt;patrick.boettcher@dibcom.fr&gt;
[mchehab@redhat.com: dprint requires 3 arguments. Replaced by dib_info]
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>DiBcom: protect the I2C bufer access</title>
<updated>2011-11-11T17:36:14Z</updated>
<author>
<name>Patrick Boettcher</name>
<email>Patrick.Boettcher@dibcom.fr</email>
</author>
<published>2011-08-03T15:08:21Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4d2ae8d3b315fbf36d760fd8dd755fb1d55a0f87'/>
<id>urn:sha1:4d2ae8d3b315fbf36d760fd8dd755fb1d55a0f87</id>
<content type='text'>
commit 79fcce3230b140f7675f8529ee53fe2f9644f902 upstream.

This patch protects the I2C buffer access in order to manage concurrent
access. This protection is done using mutex.
Furthermore, for the dib9000, if a pid filtering command is
received during the tuning, this pid filtering command is delayed to
avoid any concurrent access issue.

Cc: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Cc: Florian Mickler &lt;florian@mickler.org&gt;
Signed-off-by: Olivier Grenie &lt;olivier.grenie@dibcom.fr&gt;
Signed-off-by: Patrick Boettcher &lt;Patrick.Boettcher@dibcom.fr&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>vp7045: fix buffer setup</title>
<updated>2011-10-03T18:40:16Z</updated>
<author>
<name>Florian Mickler</name>
<email>florian@mickler.org</email>
</author>
<published>2011-08-10T10:05:20Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f2685ef0fbc5fff0a8f1cdc204bf37ab0c9a04a7'/>
<id>urn:sha1:f2685ef0fbc5fff0a8f1cdc204bf37ab0c9a04a7</id>
<content type='text'>
commit fc61ccd35fd59d5362d37c8bf9c0526c85086c84 upstream.

dvb_usb_device_init calls the frontend_attach method of this driver which
uses vp7045_usb_ob. In order to have a buffer ready in vp7045_usb_op, it has to
be allocated before that happens.

Luckily we can use the whole private data as the buffer as it gets separately
allocated on the heap via kzalloc in dvb_usb_device_init and is thus apt for
use via usb_control_msg.

This fixes a
	BUG: unable to handle kernel paging request at 0000000000001e78

reported by Tino Keitel and diagnosed by Dan Carpenter.

Tested-by: Tino Keitel &lt;tino.keitel@tikei.de&gt;
Signed-off-by: Florian Mickler &lt;florian@mickler.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>[media] dvb_frontend: fix race condition in stopping/starting frontend</title>
<updated>2011-07-13T22:50:12Z</updated>
<author>
<name>Devin Heitmueller</name>
<email>dheitmueller@kernellabs.com</email>
</author>
<published>2011-07-05T00:55:01Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=2d1969312d6319d28ae9609a84f969b6933bd51c'/>
<id>urn:sha1:2d1969312d6319d28ae9609a84f969b6933bd51c</id>
<content type='text'>
Attached is a patch which addresses a race condition in the DVB core
related to closing/reopening the DVB frontend device in quick
succession.  This is the reason that devices such as the HVR-1300,
HVR-3000, and HVR-4000 have been failing to scan properly under MythTV
and w_scan.

The gory details of the race are described in the patch.

Devin

There is a race condition exhibited when channel scanners such as w_scan and
MythTV quickly close and then reopen the frontend device node.

Under normal conditions, the behavior is as follows:

1.  Application closes the device node
2.  DVB frontend ioctl calls dvb_frontend_release which sets
    fepriv-&gt;release_jiffies
3.  DVB frontend thread *eventually* calls dvb_frontend_is_exiting() which
    compares fepriv-&gt;release_jiffies, and shuts down the thread if timeout has
    expired
4.  Thread goes away
5.  Application opens frontend device
6.  DVB frontend ioctl() calls ts_bus_ctrl(1)
7.  DVB frontend ioctl() creates new frontend thread, which calls
    dvb_frontend_init(), which has demod driver init() routine setup initial
    register state for demod chip.
8.  Tuning request is issued.

The race occurs when the application in step 5 performs the new open() call
before the frontend thread is shutdown.  In this case the ts_bus_ctrl() call
is made, which strobes the RESET pin on the demodulator, but the
dvb_frontend_init() function never gets called because the frontend thread
hasn't gone away yet.  As a result, the initial register config for the demod
is *never* setup, causing subsequent tuning requests to fail.

If there is time between the close and open (enough for the dvb frontend
thread to be torn down), then in that case the new frontend thread is created
and thus the dvb_frontend_init() function does get called.

The fix is to set the flag which forces reinitialization if we did in fact
call ts_bus_ctrl().

This problem has been seen on the HVR-1300, HVR-3000, and HVR-4000, and is
likely occuring on other designs as well where ts_bus_ctrl() actually strobes
the reset pin on the demodulator.

Note that this patch should supercede any patches submitted for the
1300/3000/4000 which remove the code that removes GPIO code in
cx8802_dvb_advise_acquire(), which have been circulating by users for some
time now...

Canonical tracking this issue in Launchpad 439163:

Thanks to Jon Sayers from Hauppauge and Florent Audebert from Anevia S.A. for
providing hardware to test/debug with.

Signed-off-by: Devin Heitmueller &lt;dheitmueller@kernellabs.com&gt;
Cc: Jon Sayers &lt;j.sayers@hauppauge.co.uk&gt;
Cc: Florent Audebert &lt;florent.audebert@anevia.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] anysee: return EOPNOTSUPP for unsupported I2C messages</title>
<updated>2011-06-01T11:34:45Z</updated>
<author>
<name>Antti Palosaari</name>
<email>crope@iki.fi</email>
</author>
<published>2011-05-24T09:04:08Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=21d2e938d34d201276de3470587a3aa2047c77a1'/>
<id>urn:sha1:21d2e938d34d201276de3470587a3aa2047c77a1</id>
<content type='text'>
Check I2C messages and return error properly.

Signed-off-by: Antti Palosaari &lt;crope@iki.fi&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
</feed>
