Patch "[media] rc: raw decoder for keymap protocol is not loaded on register" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
[media] rc: raw decoder for keymap protocol is not loaded on register
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
rc-raw-decoder-for-keymap-protocol-is-not-loaded-on-register.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
413808685dd7c9b54bbc5af79da2eaddd0fc3cb2Mon Sep 17 00:00:00 2001
From: Sean Young <[email protected]>
Date: Wed, 22 Feb 2017 18:48:01 -0300
Subject: [media] rc: raw decoder for keymap protocol is not loaded on register
From: Sean Young <[email protected]>
commit 413808685dd7c9b54bbc5af79da2eaddd0fc3cb2 upstream.
When the protocol is set via the sysfs protocols attribute, the decoder is loaded. However, when it is not when a device is first plugged in or registered.
--- drivers/media/rc/rc-main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/media/rc/rc-main.c +6 -1
@@ -1411,6 +1411,7 @@ int rc_register_device(struct rc_dev *deint attr =0 ;int minor;int rc; +u64 rc_type;if (!dev || !dev->map_name)return -EINVAL ;
@@ -1496,14 +1497,18 @@ int rc_register_device(struct rc_dev *de goto out_input; } + rc_type =BIT_ULL (rc_map->rc_type); +if (dev->change_protocol) { -u64 rc_type = (1ll << rc_map->rc_type); rc = dev->change_protocol (dev, &rc_type);if (rc <0 ) goto out_raw; dev->enabled_protocols = rc_type; } +if (dev->driver_type ==RC_DRIVER_IR_RAW ) +ir_raw_load_modules (&rc_type); +/* Allow the RC sysfs nodes to be accessible */ atomic_set (&dev->initialized,1 );
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/rc-raw-decoder-for-keymap-protocol-is-not-loaded-on-register.patch