Skip to contentSkip to conversation

HID: uclogic: Add HID_QUIRK_HIDINPUT_FORCE quirk

PATCH In review José Expósito 3 participants 8 messages Nov 10, 2022 – Dec 7, 2022 HID

lore
Share & tools
lore
#0 lore raw

cover HID: uclogic: Add HID_QUIRK_HIDINPUT_FORCE quirk

Hi everyone,

About 3 months ago, Torge Matthies sent a patch fixing an issue with his XP-Pen Star G640 [1].

His patch changes the IS_INPUT_APPLICATION() macro to accept HID_DG_DIGITIZER. However, it looks like it is not being merged because of the possible side effects that changing that macro could generate.

This patch aims to fix the same issue but using a more conservative approach hoping that the bug can be fixed.

Torge, Alexander, could you test it and confirm that it fixes your issues, please?

Thanks a lot in advance,
José Expósito

[1] https://lore.kernel.org/linux-input/[email protected]/

José Expósito (1):
HID: uclogic: Add HID_QUIRK_HIDINPUT_FORCE quirk

 drivers/hid/hid-uclogic-core.c | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 HID: uclogic: Add HID_QUIRK_HIDINPUT_FORCE quirk

Commit f7d8e387d9ae ("HID: uclogic: Switch to Digitizer usage for styluses") changed the usage used in UCLogic from "Pen" to "Digitizer".

However, the IS_INPUT_APPLICATION() macro evaluates to false for HID_DG_DIGITIZER causing issues with the XP-Pen Star G640 tablet.

Add the HID_QUIRK_HIDINPUT_FORCE quirk to bypass the IS_INPUT_APPLICATION() check.

---
 drivers/hid/hid-uclogic-core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hid/hid-uclogic-core.c +1 -0
index 0fbc408c2607..7fa6fe04f1b2 100644
@@ -192,6 +192,7 @@ static int uclogic_probe(struct hid_device *hdev,
 	 * than the pen, so use QUIRK_MULTI_INPUT for all tablets.
 	 */
 	hdev->quirks |= HID_QUIRK_MULTI_INPUT;
+	hdev->quirks |= HID_QUIRK_HIDINPUT_FORCE;
 
 	/* Allocate and assign driver data */
 	drvdata = devm_kzalloc(&hdev->dev, sizeof(*drvdata), GFP_KERNEL);
Signature · 1 line
2.25.1
#2 lore raw
In reply to José Expósito

Hi José,

Quoted 9 lines · José Expósito

Hi everyone,

About 3 months ago, Torge Matthies sent a patch fixing an issue with his XP-Pen Star G640 [1].

His patch changes the IS_INPUT_APPLICATION() macro to accept HID_DG_DIGITIZER. However, it looks like it is not being merged because of the possible side effects that changing that macro could generate.

Quoted 5 lines

This patch aims to fix the same issue but using a more conservative approach hoping that the bug can be fixed.

Torge, Alexander, could you test it and confirm that it fixes your issues, please?

I tested the patch on commit 4bbf3422df78 and it fixes the issue.

Thank you,
Alexander Zhang

Quoted 11 lines

Thanks a lot in advance,
José Expósito

[1] https://lore.kernel.org/linux-input/[email protected]/

José Expósito (1):
HID: uclogic: Add HID_QUIRK_HIDINPUT_FORCE quirk

  drivers/hid/hid-uclogic-core.c | 1 +
  1 file changed, 1 insertion(+)
maintainer Tested-by Alexander Zhang
#3 lore raw
Quoted 12 lines · Alexander Zhang

Hi José,

Quoted 9 lines · José Expósito

Hi everyone,

About 3 months ago, Torge Matthies sent a patch fixing an issue with his XP-Pen Star G640 [1].

His patch changes the IS_INPUT_APPLICATION() macro to accept HID_DG_DIGITIZER. However, it looks like it is not being merged because of the possible side effects that changing that macro could generate.

Quoted 7 lines
Quoted 5 lines

This patch aims to fix the same issue but using a more conservative approach hoping that the bug can be fixed.

Torge, Alexander, could you test it and confirm that it fixes your issues, please?

I tested the patch on commit 4bbf3422df78 and it fixes the issue.

I will add

to the commit; please speak up if you disagree.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#4 lore raw
Quoted 20 lines · Jiri Kosina
Quoted 18 lines · Alexander Zhang

Hi José,

Quoted 14 lines · José Expósito

Hi everyone,

About 3 months ago, Torge Matthies sent a patch fixing an issue with his XP-Pen Star G640 [1].

His patch changes the IS_INPUT_APPLICATION() macro to accept HID_DG_DIGITIZER. However, it looks like it is not being merged because of the possible side effects that changing that macro could generate.

This patch aims to fix the same issue but using a more conservative approach hoping that the bug can be fixed.

Torge, Alexander, could you test it and confirm that it fixes your issues, please?

Quoted 7 lines
Quoted 1 line

I tested the patch on commit 4bbf3422df78 and it fixes the issue.

I will add

to the commit; please speak up if you disagree.

I'm not sure if you're still waiting for a response from me but I'm fine with that.

Thanks,
Alexander Zhang

#5 lore raw

Hello,

Quoted 23 lines · Alexander Zhang
Quoted 22 lines · Jiri Kosina
Quoted 19 lines · Alexander Zhang

Hi José,

Quoted 9 lines · José Expósito

Hi everyone,

About 3 months ago, Torge Matthies sent a patch fixing an issue with his XP-Pen Star G640 [1].

His patch changes the IS_INPUT_APPLICATION() macro to accept HID_DG_DIGITIZER. However, it looks like it is not being merged because of the possible side effects that changing that macro could generate.

Quoted 5 lines

This patch aims to fix the same issue but using a more conservative approach hoping that the bug can be fixed.

Torge, Alexander, could you test it and confirm that it fixes your issues, please?

I tested the patch on commit 4bbf3422df78 and it fixes the issue.

Quoted 7 lines
Quoted 5 lines

I will add

to the commit; please speak up if you disagree.

I'm not sure if you're still waiting for a response from me but I'm fine with that.

Is there something preventing this patch from being merged? I'm not very familiar with the kernel development process.

Best,
Alexander Zhang

#6 lore raw

Hi Alexander,

Quoted 30 lines · Alexander Zhang

Hello,

Quoted 27 lines · Alexander Zhang
Quoted 26 lines · Jiri Kosina
Quoted 12 lines · Alexander Zhang

Hi José,

Quoted 9 lines · José Expósito

Hi everyone,

About 3 months ago, Torge Matthies sent a patch fixing an issue with his XP-Pen Star G640 [1].

His patch changes the IS_INPUT_APPLICATION() macro to accept HID_DG_DIGITIZER. However, it looks like it is not being merged because of the possible side effects that changing that macro could generate.

Quoted 7 lines
Quoted 5 lines

This patch aims to fix the same issue but using a more conservative approach hoping that the bug can be fixed.

Torge, Alexander, could you test it and confirm that it fixes your issues, please?

I tested the patch on commit 4bbf3422df78 and it fixes the issue.

I will add

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

to the commit; please speak up if you disagree.

I'm not sure if you're still waiting for a response from me but I'm fine with that.

Is there something preventing this patch from being merged? I'm not very familiar with the kernel development process.

The patch is already applied in the for-next branch, you can find it here:
https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?h=for-next&id=3405a4beaaa8

Jose

Quoted 2 lines

Best,
Alexander Zhang

#7 lore raw
Quoted 35 lines · José Expósito

Hi Alexander,

Quoted 32 lines · Alexander Zhang

Hello,

Quoted 29 lines · Alexander Zhang
Quoted 27 lines · Jiri Kosina
Quoted 12 lines · Alexander Zhang

Hi José,

Quoted 9 lines · José Expósito

Hi everyone,

About 3 months ago, Torge Matthies sent a patch fixing an issue with his XP-Pen Star G640 [1].

His patch changes the IS_INPUT_APPLICATION() macro to accept HID_DG_DIGITIZER. However, it looks like it is not being merged because of the possible side effects that changing that macro could generate.

Quoted 7 lines
Quoted 5 lines

This patch aims to fix the same issue but using a more conservative approach hoping that the bug can be fixed.

Torge, Alexander, could you test it and confirm that it fixes your issues, please?

I tested the patch on commit 4bbf3422df78 and it fixes the issue.

I will add

to the commit; please speak up if you disagree.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

I'm not sure if you're still waiting for a response from me but I'm fine with that.

Is there something preventing this patch from being merged? I'm not very familiar with the kernel development process.

The patch is already applied in the for-next branch, you can find it here:
https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?h=for-next&id=3405a4beaaa8

I see, thank you very much!

Best,
Alexander Zhang