From: John S Gruber <hidden> Date: 2018-07-28 19:53:55
The Redragon keyboard uses the second device being presented, but other
devices with the same vendor_id/device_id pair (0x0c45:760b) use the first.
Don't cause its deletion. Problem introduced in commit 85455dd906d5
("HID: redragon: Fix modifier keys for Redragon Asura Keyboard")
Fixes: 85455dd906d5
Signed-off-by: John S Gruber <redacted>
---
drivers/hid/hid-redragon.c | 4 ----
1 file changed, 4 deletions(-)
From: Robert Munteanu <hidden> Date: 2018-07-30 14:11:56
Hi John,
On Sat, 2018-07-28 at 15:53 -0400, John S Gruber wrote:
quoted hunk
The Redragon keyboard uses the second device being presented, but
other
devices with the same vendor_id/device_id pair (0x0c45:760b) use the
first.
Don't cause its deletion. Problem introduced in commit 85455dd906d5
("HID: redragon: Fix modifier keys for Redragon Asura Keyboard")
Fixes: 85455dd906d5
Signed-off-by: John S Gruber <redacted>
---
drivers/hid/hid-redragon.c | 4 ----
1 file changed, 4 deletions(-)
@@ -55,10 +55,6 @@ static int redragon_probe(struct hid_device *dev,returnret;}-/* do not register unused input device */-if(dev->maxapplication==1)-return0;-ret=hid_hw_start(dev,HID_CONNECT_DEFAULT);if(ret){hid_err(dev,"hw start failed\n");
As I mentioned, this is already fixed by
dc9b8e85ed95cbe7e3ad0eabb5b48d617bbc365e, scheduled for 4.19, and I
suggest that we instead add that one to 4.18.
The explanation is that the block you deleted was the whole reason for
adding the redragon_probe function, so the changes are largely
equivalent.
Thanks,
Robert
From: John S Gruber <hidden> Date: 2018-08-01 20:46:24
Right, Robert.
I tested it and it works to solve the problem I reported.
On Mon, Jul 30, 2018 at 10:05 AM Robert Munteanu [off-list ref] wrote:
Hi John,
On Sat, 2018-07-28 at 15:53 -0400, John S Gruber wrote:
quoted
The Redragon keyboard uses the second device being presented, but
other
devices with the same vendor_id/device_id pair (0x0c45:760b) use the
first.
Don't cause its deletion. Problem introduced in commit 85455dd906d5
("HID: redragon: Fix modifier keys for Redragon Asura Keyboard")
Fixes: 85455dd906d5
Signed-off-by: John S Gruber <redacted>
---
drivers/hid/hid-redragon.c | 4 ----
1 file changed, 4 deletions(-)
@@ -55,10 +55,6 @@ static int redragon_probe(struct hid_device *dev,returnret;}-/* do not register unused input device */-if(dev->maxapplication==1)-return0;-ret=hid_hw_start(dev,HID_CONNECT_DEFAULT);if(ret){hid_err(dev,"hw start failed\n");
As I mentioned, this is already fixed by
dc9b8e85ed95cbe7e3ad0eabb5b48d617bbc365e, scheduled for 4.19, and I
suggest that we instead add that one to 4.18.
The explanation is that the block you deleted was the whole reason for
adding the redragon_probe function, so the changes are largely
equivalent.
Thanks,
Robert