<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/rc/lirc_dev.c, branch linux-4.15.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.15.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.15.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-10-11T16:37:36Z</updated>
<entry>
<title>media: lirc_dev: remove min_timeout and max_timeout</title>
<updated>2017-10-11T16:37:36Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2017-06-25T12:31:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2265425fd9c512cc9977516b5fe78d03ad9311a7'/>
<id>urn:sha1:2265425fd9c512cc9977516b5fe78d03ad9311a7</id>
<content type='text'>
There are no users of this functionality (ir-lirc-codec.c has its own
implementation and lirc_zilog.c doesn't use it) so remove it.

This only affects users of the lirc kapi, not rc-core drivers.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>[media] media: lirc_dev: merge struct irctl into struct lirc_dev</title>
<updated>2017-10-04T17:53:07Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2017-06-25T12:32:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b15e39379fe8700fe0ec849a5c5ee2b44cd16381'/>
<id>urn:sha1:b15e39379fe8700fe0ec849a5c5ee2b44cd16381</id>
<content type='text'>
The use of two separate structs (lirc_dev aka lirc_driver and irctl) makes
it much harder to follow the proper lifetime of the various structs and
necessitates hacks such as keeping a copy of struct lirc_dev inside
struct irctl.

Merging the two structs means that lirc_dev can properly manage the
lifetime of the resulting struct and simplifies the code at the same time.

[mchehab@s-opensource.com: fix merge conflict]
Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] media: lirc_dev: introduce lirc_allocate_device and lirc_free_device</title>
<updated>2017-10-04T17:19:17Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2017-06-25T12:32:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6ecccc379b7334c02f90a401dafea6fce5c91310'/>
<id>urn:sha1:6ecccc379b7334c02f90a401dafea6fce5c91310</id>
<content type='text'>
Introduce two new functions so that the API for lirc_dev matches that
of the rc-core and input subsystems.

This means that lirc_dev structs are managed using the usual four
functions:

lirc_allocate_device
lirc_free_device
lirc_register_device
lirc_unregister_device

The functions are pretty simplistic at this point, later patches will put
more flesh on the bones of both.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
</content>
</entry>
<entry>
<title>[media] media: rename struct lirc_driver to struct lirc_dev</title>
<updated>2017-10-04T17:13:08Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2017-09-21T19:13:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5ddc9c098dc3f91243840cec12a2170e9ab9f33a'/>
<id>urn:sha1:5ddc9c098dc3f91243840cec12a2170e9ab9f33a</id>
<content type='text'>
This is in preparation for the later patches which do away with
struct irctl entirely.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] media: lirc_dev: use an IDA instead of an array to keep track of registered devices</title>
<updated>2017-10-04T17:03:21Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2017-06-25T12:32:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=46c8f4771154eb0dc21f5f2bc2640a33e8fe1d02'/>
<id>urn:sha1:46c8f4771154eb0dc21f5f2bc2640a33e8fe1d02</id>
<content type='text'>
Using the kernel-provided IDA simplifies the code and makes it possible
to remove the lirc_dev_lock mutex.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] media: lirc_dev: sanitize locking</title>
<updated>2017-10-04T17:02:27Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2017-06-30T08:41:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3381b779a736f4908a64b603ce339ab067e01de7'/>
<id>urn:sha1:3381b779a736f4908a64b603ce339ab067e01de7</id>
<content type='text'>
Use the irctl mutex for all device operations and only use lirc_dev_lock
to protect the irctls array. Also, make sure that the device is alive
early in each fops function before doing anything else.

Since this patch touches nearly every line where the irctl mutex is
taken/released, it also renames the mutex at the same time (the name
irctl_lock will be misleading once struct irctl goes away in later
patches).

[mchehab@s-opensource.com: fix a merge conflict]
Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] media: lirc_dev: change irctl-&gt;attached to be a boolean</title>
<updated>2017-10-04T16:57:45Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2017-06-25T12:31:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3bce5572364899970cbe908d98c51d1bc743b2f8'/>
<id>urn:sha1:3bce5572364899970cbe908d98c51d1bc743b2f8</id>
<content type='text'>
The "attached" member of struct irctl is a boolean value, so let the code
reflect that.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] media: lirc_dev: make chunk_size and buffer_size mandatory</title>
<updated>2017-10-04T16:53:32Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2017-06-25T12:31:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b145ef94f63e02c2615ffde61a376b53f3367bc6'/>
<id>urn:sha1:b145ef94f63e02c2615ffde61a376b53f3367bc6</id>
<content type='text'>
Make setting chunk_size and buffer_size mandatory for drivers which
expect lirc_dev to allocate the lirc_buffer (i.e. ir-lirc-codec) and
don't set them in lirc-zilog (which creates its own buffer).

Also remove an unnecessary copy of chunk_size in struct irctl (the
same information is already available from struct lirc_buffer).

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] media: lirc_dev: make better use of file-&gt;private_data</title>
<updated>2017-10-04T16:52:12Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2017-06-25T12:31:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=615cd3fe6cccb950b46728120009a1805cce908e'/>
<id>urn:sha1:615cd3fe6cccb950b46728120009a1805cce908e</id>
<content type='text'>
By making better use of file-&gt;private_data in lirc_dev we can avoid
digging around in the irctls[] array, thereby simplifying the code.

External drivers need to use lirc_get_pdata() instead of mucking around
in file-&gt;private_data.

The newly introduced lirc_init_pdata() function isn't very elegant, but
it's a stopgap measure which can be removed once lirc_zilog is converted
to rc-core.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] media: lirc_dev: use cdev_device_add() helper function</title>
<updated>2017-10-04T16:51:31Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2017-06-25T12:31:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0510d81081498eae2a8bf9d116cc03492fab5894'/>
<id>urn:sha1:0510d81081498eae2a8bf9d116cc03492fab5894</id>
<content type='text'>
Replace calls to cdev_add() and device_add() with the cdev_device_add()
helper function.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Signed-off-by: Sean Young &lt;sean@mess.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
</content>
</entry>
</feed>
