Skip to contentSkip to conversation

HID: wacom: leds: Don't try to control the EKR's read-only LEDs

PATCH Applied Aaron Armstrong Skomra 3 participants 3 messages Aug 28, 2017 – Sep 6, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: wacom: leds: Don't try to control the EKR's read-only LEDs

Commit a50aac7193f1 introduces 'led.groups' and adds EKR support for these groups. However, unlike the other devices with LEDs, the EKR's LEDs are read-only and we shouldn't attempt to control them in wacom_led_control().

See bug: https://sourceforge.net/p/linuxwacom/bugs/342/

Fixes a50aac7193f1 ("HID: wacom: leds: dynamically allocate LED groups")
Cc stable <[email protected]> # 4.9
---
 drivers/hid/wacom_sys.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/hid/wacom_sys.c +3 -0
index 838c1ebfffa9..db1f64dcb9ba 100644
@@ -766,6 +766,9 @@ static int wacom_led_control(struct wacom *wacom)
 	if (!wacom->led.groups)
 		return -ENOTSUPP;
 
+	if (wacom->wacom_wac.features.type == REMOTE)
+		return -ENOTSUPP;
+
 	if (wacom->wacom_wac.pid) { /* wireless connected */
 		report_id = WAC_CMD_WL_LED_CONTROL;
 		buf_size = 13;
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Aaron Armstrong Skomra

Commit a50aac7193f1 introduces 'led.groups' and adds EKR support for these groups. However, unlike the other devices with LEDs, the EKR's LEDs are read-only and we shouldn't attempt to control them in wacom_led_control().

See bug: https://sourceforge.net/p/linuxwacom/bugs/342/

Fixes a50aac7193f1 ("HID: wacom: leds: dynamically allocate LED groups")
Cc stable <[email protected]> # 4.9

Looks good to me:

Jason
---
Now instead of four in the eights place /
you’ve got three, ‘Cause you added one /
(That is to say, eight) to the two, /
But you can’t take seven from three, /
So you look at the sixty-fours....

Quoted 22 lines
---
 drivers/hid/wacom_sys.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/hid/wacom_sys.c +3 -1
index 838c1ebfffa9..db1f64dcb9ba 100644
@@ -766,6 +766,9 @@ static int wacom_led_control(struct wacom *wacom)
        if (!wacom->led.groups)
                return -ENOTSUPP;
 
+       if (wacom->wacom_wac.features.type == REMOTE)
+               return -ENOTSUPP;
+
        if (wacom->wacom_wac.pid) { /* wireless connected */
                report_id = WAC_CMD_WL_LED_CONTROL;
                buf_size = 13;
--

2.7.4

maintainer Applied
#2 lore raw
In reply to Aaron Armstrong Skomra
Quoted 10 lines · Aaron Armstrong Skomra

Commit a50aac7193f1 introduces 'led.groups' and adds EKR support for these groups. However, unlike the other devices with LEDs, the EKR's LEDs are read-only and we shouldn't attempt to control them in wacom_led_control().

See bug: https://sourceforge.net/p/linuxwacom/bugs/342/

Fixes a50aac7193f1 ("HID: wacom: leds: dynamically allocate LED groups")
Cc stable <[email protected]> # 4.9

Applied to for-4.14/upstream-fixes.

Signature · 2 lines
Jiri Kosina
SUSE Labs