<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/git/stable/linux.git/drivers/media/rc, branch linux-4.0.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<id>https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=linux-4.0.y</id>
<link rel='self' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=linux-4.0.y'/>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/'/>
<updated>2015-05-06T20:04:00+00:00</updated>
<entry>
<title>rc: img-ir: fix error in parameters passed to irq_free()</title>
<updated>2015-05-06T20:04:00+00:00</updated>
<author>
<name>Sifan Naeem</name>
<email>sifan.naeem@imgtec.com</email>
</author>
<published>2015-02-10T10:41:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=287189f739322ef2f2b7698e613c85e7be8c9b9c'/>
<id>urn:sha1:287189f739322ef2f2b7698e613c85e7be8c9b9c</id>
<content type='text'>
commit 80ccf4ad06dc9d2f06a8347b2d309cdc959f72b3 upstream.

img_ir_remove() passes a pointer to the ISR function as the 2nd
parameter to irq_free() instead of a pointer to the device data
structure.
This issue causes unloading img-ir module to fail with the below
warning after building and loading img-ir as a module.

WARNING: CPU: 2 PID: 155 at ../kernel/irq/manage.c:1278
__free_irq+0xb4/0x214() Trying to free already-free IRQ 58
Modules linked in: img_ir(-)
CPU: 2 PID: 155 Comm: rmmod Not tainted 3.14.0 #55 ...
Call Trace:
...
[&lt;8048d420&gt;] __free_irq+0xb4/0x214
[&lt;8048d6b4&gt;] free_irq+0xac/0xf4
[&lt;c009b130&gt;] img_ir_remove+0x54/0xd4 [img_ir] [&lt;8073ded0&gt;]
platform_drv_remove+0x30/0x54 ...

Fixes: 160a8f8aec4d ("[media] rc: img-ir: add base driver")

Signed-off-by: Sifan Naeem &lt;sifan.naeem@imgtec.com&gt;
Acked-by: James Hogan &lt;james.hogan@imgtec.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>[media] lirc_dev: avoid potential null-dereference</title>
<updated>2015-02-03T19:33:42+00:00</updated>
<author>
<name>Andy Shevchenko</name>
<email>andy.shevchenko@gmail.com</email>
</author>
<published>2015-01-07T01:53:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3656cddd50018d562d2df87c4698783898732914'/>
<id>urn:sha1:3656cddd50018d562d2df87c4698783898732914</id>
<content type='text'>
We have to check pointer for NULL and then dereference it.

Signed-off-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] rc: sunxi-cir: Add support for the larger fifo found on sun5i and sun6i</title>
<updated>2015-01-29T20:26:31+00:00</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2014-11-20T15:10:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a4bca4c7ad36a4cdafc87d1dce3758cdccef1ca7'/>
<id>urn:sha1:a4bca4c7ad36a4cdafc87d1dce3758cdccef1ca7</id>
<content type='text'>
Add support for the larger fifo found on sun5i and sun6i, having a separate
compatible for the ir found on sun5i &amp; sun6i also is useful if we ever want
to add ir transmit support, because the sun5i &amp; sun6i version do not have
transmit support.

Note this commits also adds checking for the end-of-packet interrupt flag
(which was already enabled), as the fifo-data-available interrupt flag only
gets set when the trigger-level is exceeded. So far we've been getting away
with not doing this because of the low trigger-level, but this is something
which we should have done since day one.

Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Acked-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Acked-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] rc: sunxi-cir: Add support for an optional reset controller</title>
<updated>2015-01-29T20:26:08+00:00</updated>
<author>
<name>Hans de Goede</name>
<email>hdegoede@redhat.com</email>
</author>
<published>2014-11-20T14:59:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=44f8af68469a9a7c8507fade3e4ca4bba58c2ff1'/>
<id>urn:sha1:44f8af68469a9a7c8507fade3e4ca4bba58c2ff1</id>
<content type='text'>
On sun6i the cir block is attached to the reset controller, add support
for de-asserting the reset if a reset controller is specified in dt.

Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Acked-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Acked-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] rc-main: Re-apply filter for no-op protocol change</title>
<updated>2014-12-23T18:21:45+00:00</updated>
<author>
<name>James Hogan</name>
<email>james.hogan@imgtec.com</email>
</author>
<published>2014-12-08T16:17:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=983c5bd26b86ba1c0d79b770e596bb8b77e42f32'/>
<id>urn:sha1:983c5bd26b86ba1c0d79b770e596bb8b77e42f32</id>
<content type='text'>
Since commit da6e162d6a46 ("[media] rc-core: simplify sysfs code"), when
the IR protocol is set using the sysfs interface to the same set of
protocols that are already set, store_protocols() does not refresh the
scancode filter with the new protocol, even if it has already called the
change_protocol() callback successfully. This results in the filter
being disabled in the hardware and not re-enabled until the filter is
set again using sysfs.

Fix in store_protocols() by still re-applying the filter whenever the
change_protocol() driver callback succeeded.

The problem can be reproduced with the img-ir driver by setting a
filter, and then setting the protocol to the same protocol that is
already set:
$ echo nec &gt; protocols
$ echo 0xffff &gt; filter_mask
$ echo nec &gt; protocols

After this, messages which don't match the filter were still being
received.

Fixes: da6e162d6a46 ("[media] rc-core: simplify sysfs code")

Reported-by: Sifan Naeem &lt;sifan.naeem@imgtec.com&gt;
Signed-off-by: James Hogan &lt;james.hogan@imgtec.com&gt;
Cc: David Härdeman &lt;david@hardeman.nu&gt;
Cc: &lt;stable@vger.kernel.org&gt; # v3.17+
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] rc: img-ir: add philips rc6 decoder module</title>
<updated>2014-12-23T17:17:31+00:00</updated>
<author>
<name>Sifan Naeem</name>
<email>sifan.naeem@imgtec.com</email>
</author>
<published>2014-12-11T20:06:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cb9564e133f4f790920d715714790512085bb2e3'/>
<id>urn:sha1:cb9564e133f4f790920d715714790512085bb2e3</id>
<content type='text'>
Add img-ir module for decoding Philips rc6 protocol.

Signed-off-by: Sifan Naeem &lt;sifan.naeem@imgtec.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] rc: img-ir: add philips rc5 decoder module</title>
<updated>2014-12-23T17:16:40+00:00</updated>
<author>
<name>Sifan Naeem</name>
<email>sifan.naeem@imgtec.com</email>
</author>
<published>2014-12-11T20:06:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=aa7383db35aec23906868a632a964b5783a5254d'/>
<id>urn:sha1:aa7383db35aec23906868a632a964b5783a5254d</id>
<content type='text'>
Add img-ir module for decoding Philips rc5 protocol.

Signed-off-by: Sifan Naeem &lt;sifan.naeem@imgtec.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] rc: img-ir: biphase enabled with workaround</title>
<updated>2014-12-23T17:15:26+00:00</updated>
<author>
<name>Sifan Naeem</name>
<email>sifan.naeem@imgtec.com</email>
</author>
<published>2014-12-11T20:06:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=02744c8c9a11a64bce740528077cf5223ab60e31'/>
<id>urn:sha1:02744c8c9a11a64bce740528077cf5223ab60e31</id>
<content type='text'>
Biphase decoding in the current img-ir has got a quirk, where multiple
Interrupts are generated when an incomplete IR code is received by the
decoder.

Patch adds a work around for the quirk and enables biphase decoding.

Signed-off-by: Sifan Naeem &lt;sifan.naeem@imgtec.com&gt;
Acked-by: James Hogan &lt;james.hogan@imgtec.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] rc: img-ir: pass toggle bit to the rc driver</title>
<updated>2014-12-23T17:12:57+00:00</updated>
<author>
<name>Sifan Naeem</name>
<email>sifan.naeem@imgtec.com</email>
</author>
<published>2014-12-11T20:06:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=33e01833268d2f006e599b863a21d4e219f96bd7'/>
<id>urn:sha1:33e01833268d2f006e599b863a21d4e219f96bd7</id>
<content type='text'>
Add toggle bit to struct img_ir_scancode_req so that protocols can
provide it to img_ir_handle_data(), and pass that toggle bit up to
rc_keydown instead of 0.

This is needed for the upcoming rc-5 and rc-6 patches.

Signed-off-by: Sifan Naeem &lt;sifan.naeem@imgtec.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] rc: img-ir: add scancode requests to a struct</title>
<updated>2014-12-23T17:11:50+00:00</updated>
<author>
<name>Sifan Naeem</name>
<email>sifan.naeem@imgtec.com</email>
</author>
<published>2014-12-11T20:06:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ab93ce06eef556cc85a016e12ff7c7a763f04c91'/>
<id>urn:sha1:ab93ce06eef556cc85a016e12ff7c7a763f04c91</id>
<content type='text'>
The information being requested of hardware decode callbacks through
the img-ir-hw scancode API is mounting up, so combine it into a struct
which can be passed in with a single pointer rather than multiple
pointer arguments. This allows it to be extended more easily without
touching all the hardware decode callbacks.

Signed-off-by: Sifan Naeem &lt;sifan.naeem@imgtec.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
</feed>
