All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] HID: Add driver fixing Glorious PC Gaming Race mouse report descriptor
@ 2020-03-08 21:27 Samuel Čavoj
  2020-03-11  8:46 ` Silvan Jegen
  2020-03-13  2:12 ` [PATCH v2] " Samuel Čavoj
  0 siblings, 2 replies; 4+ messages in thread
From: Samuel Čavoj @ 2020-03-08 21:27 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Benjamin Tissoires, linux-input, Samuel Čavoj

The Glorious Model O mice (and also at least the Model O-, which is
driver-wise the same mouse) have a bug in the descriptor of HID
Report with ID 2. This report is used for Consumer Control buttons,
which can be mapped using the provided Windows only software.

Here is an excerpt from the original descriptor:

  INPUT(2)[INPUT]
    Field(0)
      Flags( Constant Variable Absolute )
    Field(1)
      Flags( Constant Variable Absolute )
    Field(2)
      Flags( Constant Variable Absolute )

The issue is the Constant flag specified on all 3 fields, which
causes the hid driver to ignore changes in these fields and
essentialy causes the buttons to not work at all. The submitted driver
patches the descriptor to end up with the following:

  INPUT(2)[INPUT]
    Field(0)
      Flags( Variable Relative )
    Field(1)
      Flags( Variable Relative )
    Field(2)
      Flags( Variable Relative )

The Constant bit is reset and the Relative bit has been set in
order to prevent repeat events when holding down the button.
Additionally, the device name is set to "Glorious Model O",
where the original was "SINOWEALTH Wired Gaming Mouse".

Signed-off-by: Samuel Čavoj <sammko@sammserver.com>
---
 drivers/hid/Kconfig        |  9 ++++-
 drivers/hid/Makefile       |  1 +
 drivers/hid/hid-glorious.c | 69 ++++++++++++++++++++++++++++++++++++++
 drivers/hid/hid-ids.h      |  3 ++
 4 files changed, 81 insertions(+), 1 deletion(-)
 create mode 100644 drivers/hid/hid-glorious.c

diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index 494a39e74939..1e1f1b16d44d 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -362,6 +362,13 @@ config HID_GFRM
 	---help---
 	Support for Google Fiber TV Box remote controls
 
+config HID_GLORIOUS
+	tristate "Glorious PC Gaming Race mice"
+	depends on HID
+	help
+	  Support for Glorious PC Gaming Race mice such as
+	  the Glorious Model O and O-.
+
 config HID_HOLTEK
 	tristate "Holtek HID devices"
 	depends on USB_HID
@@ -892,7 +899,7 @@ config HID_SONY
 	  * Logitech Harmony adapter for Sony Playstation 3 (Bluetooth)
 
 config SONY_FF
-	bool "Sony PS2/3/4 accessories force feedback support" 
+	bool "Sony PS2/3/4 accessories force feedback support"
 	depends on HID_SONY
 	select INPUT_FF_MEMLESS
 	---help---
diff --git a/drivers/hid/Makefile b/drivers/hid/Makefile
index bfefa365b1ce..be0f38dcf942 100644
--- a/drivers/hid/Makefile
+++ b/drivers/hid/Makefile
@@ -48,6 +48,7 @@ obj-$(CONFIG_HID_ELO)		+= hid-elo.o
 obj-$(CONFIG_HID_EZKEY)		+= hid-ezkey.o
 obj-$(CONFIG_HID_GEMBIRD)	+= hid-gembird.o
 obj-$(CONFIG_HID_GFRM)		+= hid-gfrm.o
+obj-$(CONFIG_HID_GLORIOUS)  += hid-glorious.o
 obj-$(CONFIG_HID_GOOGLE_HAMMER)	+= hid-google-hammer.o
 obj-$(CONFIG_HID_GT683R)	+= hid-gt683r.o
 obj-$(CONFIG_HID_GYRATION)	+= hid-gyration.o
diff --git a/drivers/hid/hid-glorious.c b/drivers/hid/hid-glorious.c
new file mode 100644
index 000000000000..c12bf36b8d4c
--- /dev/null
+++ b/drivers/hid/hid-glorious.c
@@ -0,0 +1,69 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ *  USB HID driver for Glorious PC Gaming Race
+ *  Glorious Model O and O- mice.
+ *
+ *  Copyright (c) 2020 Samuel Čavoj <sammko@sammserver.com>
+ */
+
+/*
+ */
+
+#include <linux/hid.h>
+#include <linux/module.h>
+
+#include "hid-ids.h"
+
+MODULE_AUTHOR("Samuel Čavoj <sammko@sammserver.com>");
+MODULE_DESCRIPTION("HID driver for Glorious PC Gaming Race mice");
+
+/*
+ * Glorious Model O and O- specify the const flag in the consumer input
+ * report descriptor, which leads to inputs being ignored. Fix this
+ * by patching the descriptor.
+ */
+static __u8 *glorious_report_fixup(struct hid_device *hdev, __u8 *rdesc,
+		unsigned int *rsize)
+{
+	if (*rsize == 213 &&
+		rdesc[84] == 129 && rdesc[112] == 129 && rdesc[140] == 129 &&
+		rdesc[85] == 3   && rdesc[113] == 3   && rdesc[141] == 3) {
+		hid_info(hdev, "patching Glorious Model O consumer control report descriptor\n");
+		rdesc[85] = rdesc[113] = rdesc[141] = 6;
+	}
+	return rdesc;
+}
+
+static int glorious_probe(struct hid_device *hdev,
+		const struct hid_device_id *id)
+{
+	int ret;
+
+	hdev->quirks |= HID_QUIRK_INPUT_PER_APP;
+
+	ret = hid_parse(hdev);
+	if (ret)
+		return ret;
+
+	snprintf(hdev->name, sizeof(hdev->name), "%s", "Glorious Model O");
+
+	return hid_hw_start(hdev, HID_CONNECT_DEFAULT);
+}
+
+static const struct hid_device_id glorious_devices[] = {
+	{ HID_USB_DEVICE(USB_VENDOR_ID_GLORIOUS,
+		USB_DEVICE_ID_GLORIOUS_MODEL_O) },
+	{ }
+};
+MODULE_DEVICE_TABLE(hid, glorious_devices);
+
+static struct hid_driver glorious_driver = {
+	.name = "glorious",
+	.id_table = glorious_devices,
+	.probe = glorious_probe,
+	.report_fixup = glorious_report_fixup
+};
+
+module_hid_driver(glorious_driver);
+
+MODULE_LICENSE("GPL");
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 3a400ce603c4..3256ac6953fc 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -464,6 +464,9 @@
 #define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_010A 0x010a
 #define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_E100 0xe100
 
+#define USB_VENDOR_ID_GLORIOUS  0x258a
+#define USB_DEVICE_ID_GLORIOUS_MODEL_O 0x0036
+
 #define I2C_VENDOR_ID_GOODIX		0x27c6
 #define I2C_DEVICE_ID_GOODIX_01F0	0x01f0
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] HID: Add driver fixing Glorious PC Gaming Race mouse report descriptor
  2020-03-08 21:27 [PATCH] HID: Add driver fixing Glorious PC Gaming Race mouse report descriptor Samuel Čavoj
@ 2020-03-11  8:46 ` Silvan Jegen
  2020-03-13  2:12 ` [PATCH v2] " Samuel Čavoj
  1 sibling, 0 replies; 4+ messages in thread
From: Silvan Jegen @ 2020-03-11  8:46 UTC (permalink / raw)
  To: Samuel Čavoj; +Cc: Jiri Kosina, Benjamin Tissoires, linux-input

Hi

Just one small comment below.

On Sun, Mar 8, 2020 at 10:38 PM Samuel Čavoj <sammko@sammserver.com> wrote:
>
> The Glorious Model O mice (and also at least the Model O-, which is
> driver-wise the same mouse) have a bug in the descriptor of HID
> Report with ID 2. This report is used for Consumer Control buttons,
> which can be mapped using the provided Windows only software.
>
> Here is an excerpt from the original descriptor:
>
>   INPUT(2)[INPUT]
>     Field(0)
>       Flags( Constant Variable Absolute )
>     Field(1)
>       Flags( Constant Variable Absolute )
>     Field(2)
>       Flags( Constant Variable Absolute )
>
> The issue is the Constant flag specified on all 3 fields, which
> causes the hid driver to ignore changes in these fields and
> essentialy causes the buttons to not work at all. The submitted driver
> patches the descriptor to end up with the following:
>
>   INPUT(2)[INPUT]
>     Field(0)
>       Flags( Variable Relative )
>     Field(1)
>       Flags( Variable Relative )
>     Field(2)
>       Flags( Variable Relative )
>
> The Constant bit is reset and the Relative bit has been set in
> order to prevent repeat events when holding down the button.
> Additionally, the device name is set to "Glorious Model O",
> where the original was "SINOWEALTH Wired Gaming Mouse".
>
> Signed-off-by: Samuel Čavoj <sammko@sammserver.com>
> ---
>  drivers/hid/Kconfig        |  9 ++++-
>  drivers/hid/Makefile       |  1 +
>  drivers/hid/hid-glorious.c | 69 ++++++++++++++++++++++++++++++++++++++
>  drivers/hid/hid-ids.h      |  3 ++
>  4 files changed, 81 insertions(+), 1 deletion(-)
>  create mode 100644 drivers/hid/hid-glorious.c
>
> diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
> index 494a39e74939..1e1f1b16d44d 100644
> --- a/drivers/hid/Kconfig
> +++ b/drivers/hid/Kconfig
> @@ -362,6 +362,13 @@ config HID_GFRM
>         ---help---
>         Support for Google Fiber TV Box remote controls
>
> +config HID_GLORIOUS
> +       tristate "Glorious PC Gaming Race mice"
> +       depends on HID
> +       help
> +         Support for Glorious PC Gaming Race mice such as
> +         the Glorious Model O and O-.
> +
>  config HID_HOLTEK
>         tristate "Holtek HID devices"
>         depends on USB_HID
> @@ -892,7 +899,7 @@ config HID_SONY
>           * Logitech Harmony adapter for Sony Playstation 3 (Bluetooth)
>
>  config SONY_FF
> -       bool "Sony PS2/3/4 accessories force feedback support"
> +       bool "Sony PS2/3/4 accessories force feedback support"

This change seems to be completely unrelated and should probably removed.


Cheers,

Silvan



>         depends on HID_SONY
>         select INPUT_FF_MEMLESS
>         ---help---
> diff --git a/drivers/hid/Makefile b/drivers/hid/Makefile
> index bfefa365b1ce..be0f38dcf942 100644
> --- a/drivers/hid/Makefile
> +++ b/drivers/hid/Makefile
> @@ -48,6 +48,7 @@ obj-$(CONFIG_HID_ELO)         += hid-elo.o
>  obj-$(CONFIG_HID_EZKEY)                += hid-ezkey.o
>  obj-$(CONFIG_HID_GEMBIRD)      += hid-gembird.o
>  obj-$(CONFIG_HID_GFRM)         += hid-gfrm.o
> +obj-$(CONFIG_HID_GLORIOUS)  += hid-glorious.o
>  obj-$(CONFIG_HID_GOOGLE_HAMMER)        += hid-google-hammer.o
>  obj-$(CONFIG_HID_GT683R)       += hid-gt683r.o
>  obj-$(CONFIG_HID_GYRATION)     += hid-gyration.o
> diff --git a/drivers/hid/hid-glorious.c b/drivers/hid/hid-glorious.c
> new file mode 100644
> index 000000000000..c12bf36b8d4c
> --- /dev/null
> +++ b/drivers/hid/hid-glorious.c
> @@ -0,0 +1,69 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> +/*
> + *  USB HID driver for Glorious PC Gaming Race
> + *  Glorious Model O and O- mice.
> + *
> + *  Copyright (c) 2020 Samuel Čavoj <sammko@sammserver.com>
> + */
> +
> +/*
> + */
> +
> +#include <linux/hid.h>
> +#include <linux/module.h>
> +
> +#include "hid-ids.h"
> +
> +MODULE_AUTHOR("Samuel Čavoj <sammko@sammserver.com>");
> +MODULE_DESCRIPTION("HID driver for Glorious PC Gaming Race mice");
> +
> +/*
> + * Glorious Model O and O- specify the const flag in the consumer input
> + * report descriptor, which leads to inputs being ignored. Fix this
> + * by patching the descriptor.
> + */
> +static __u8 *glorious_report_fixup(struct hid_device *hdev, __u8 *rdesc,
> +               unsigned int *rsize)
> +{
> +       if (*rsize == 213 &&
> +               rdesc[84] == 129 && rdesc[112] == 129 && rdesc[140] == 129 &&
> +               rdesc[85] == 3   && rdesc[113] == 3   && rdesc[141] == 3) {
> +               hid_info(hdev, "patching Glorious Model O consumer control report descriptor\n");
> +               rdesc[85] = rdesc[113] = rdesc[141] = 6;
> +       }
> +       return rdesc;
> +}
> +
> +static int glorious_probe(struct hid_device *hdev,
> +               const struct hid_device_id *id)
> +{
> +       int ret;
> +
> +       hdev->quirks |= HID_QUIRK_INPUT_PER_APP;
> +
> +       ret = hid_parse(hdev);
> +       if (ret)
> +               return ret;
> +
> +       snprintf(hdev->name, sizeof(hdev->name), "%s", "Glorious Model O");
> +
> +       return hid_hw_start(hdev, HID_CONNECT_DEFAULT);
> +}
> +
> +static const struct hid_device_id glorious_devices[] = {
> +       { HID_USB_DEVICE(USB_VENDOR_ID_GLORIOUS,
> +               USB_DEVICE_ID_GLORIOUS_MODEL_O) },
> +       { }
> +};
> +MODULE_DEVICE_TABLE(hid, glorious_devices);
> +
> +static struct hid_driver glorious_driver = {
> +       .name = "glorious",
> +       .id_table = glorious_devices,
> +       .probe = glorious_probe,
> +       .report_fixup = glorious_report_fixup
> +};
> +
> +module_hid_driver(glorious_driver);
> +
> +MODULE_LICENSE("GPL");
> diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
> index 3a400ce603c4..3256ac6953fc 100644
> --- a/drivers/hid/hid-ids.h
> +++ b/drivers/hid/hid-ids.h
> @@ -464,6 +464,9 @@
>  #define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_010A 0x010a
>  #define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_E100 0xe100
>
> +#define USB_VENDOR_ID_GLORIOUS  0x258a
> +#define USB_DEVICE_ID_GLORIOUS_MODEL_O 0x0036
> +
>  #define I2C_VENDOR_ID_GOODIX           0x27c6
>  #define I2C_DEVICE_ID_GOODIX_01F0      0x01f0
>
> --
> 2.25.1
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2] HID: Add driver fixing Glorious PC Gaming Race mouse report descriptor
  2020-03-08 21:27 [PATCH] HID: Add driver fixing Glorious PC Gaming Race mouse report descriptor Samuel Čavoj
  2020-03-11  8:46 ` Silvan Jegen
@ 2020-03-13  2:12 ` Samuel Čavoj
  2020-03-18 15:18   ` Jiri Kosina
  1 sibling, 1 reply; 4+ messages in thread
From: Samuel Čavoj @ 2020-03-13  2:12 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Samuel Čavoj, Benjamin Tissoires, linux-input, linux-kernel,
	Silvan Jegen

The Glorious Model O mice (and also at least the Model O-, which is
driver-wise the same mouse) have a bug in the descriptor of HID
Report with ID 2. This report is used for Consumer Control buttons,
which can be mapped using the provided Windows only software.

Here is an excerpt from the original descriptor:

  INPUT(2)[INPUT]
    Field(0)
      Flags( Constant Variable Absolute )
    Field(1)
      Flags( Constant Variable Absolute )
    Field(2)
      Flags( Constant Variable Absolute )

The issue is the Constant flag specified on all 3 fields, which
causes the hid driver to ignore changes in these fields and
essentialy causes the buttons to not work at all. The submitted driver
patches the descriptor to end up with the following:

  INPUT(2)[INPUT]
    Field(0)
      Flags( Variable Relative )
    Field(1)
      Flags( Variable Relative )
    Field(2)
      Flags( Variable Relative )

The Constant bit is reset and the Relative bit has been set in
order to prevent repeat events when holding down the button.

Additionally, the device name is changed from the hardware-reported
"SINOWEALTH Wired Gaming Mouse" to "Glorious Model O" or "Glorious
Model D".

Signed-off-by: Samuel Čavoj <sammko@sammserver.com>
---
Changes v1 -> v2:
* Revert accidental removal of unrelated whitespace.
* Use HID_MAIN_ITEM_* constants instead of a magic number.
* Add support for the Glorious Model D mouse.

---
 drivers/hid/Kconfig        |  7 ++++
 drivers/hid/Makefile       |  1 +
 drivers/hid/hid-glorious.c | 86 ++++++++++++++++++++++++++++++++++++++
 drivers/hid/hid-ids.h      |  4 ++
 4 files changed, 98 insertions(+)
 create mode 100644 drivers/hid/hid-glorious.c

diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index 494a39e74939..945533b36010 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -362,6 +362,13 @@ config HID_GFRM
 	---help---
 	Support for Google Fiber TV Box remote controls
 
+config HID_GLORIOUS
+	tristate "Glorious PC Gaming Race mice"
+	depends on HID
+	help
+	  Support for Glorious PC Gaming Race mice such as
+	  the Glorious Model O, O- and D.
+
 config HID_HOLTEK
 	tristate "Holtek HID devices"
 	depends on USB_HID
diff --git a/drivers/hid/Makefile b/drivers/hid/Makefile
index bfefa365b1ce..be0f38dcf942 100644
--- a/drivers/hid/Makefile
+++ b/drivers/hid/Makefile
@@ -48,6 +48,7 @@ obj-$(CONFIG_HID_ELO)		+= hid-elo.o
 obj-$(CONFIG_HID_EZKEY)		+= hid-ezkey.o
 obj-$(CONFIG_HID_GEMBIRD)	+= hid-gembird.o
 obj-$(CONFIG_HID_GFRM)		+= hid-gfrm.o
+obj-$(CONFIG_HID_GLORIOUS)  += hid-glorious.o
 obj-$(CONFIG_HID_GOOGLE_HAMMER)	+= hid-google-hammer.o
 obj-$(CONFIG_HID_GT683R)	+= hid-gt683r.o
 obj-$(CONFIG_HID_GYRATION)	+= hid-gyration.o
diff --git a/drivers/hid/hid-glorious.c b/drivers/hid/hid-glorious.c
new file mode 100644
index 000000000000..558eb08c19ef
--- /dev/null
+++ b/drivers/hid/hid-glorious.c
@@ -0,0 +1,86 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ *  USB HID driver for Glorious PC Gaming Race
+ *  Glorious Model O, O- and D mice.
+ *
+ *  Copyright (c) 2020 Samuel Čavoj <sammko@sammserver.com>
+ */
+
+/*
+ */
+
+#include <linux/hid.h>
+#include <linux/module.h>
+
+#include "hid-ids.h"
+
+MODULE_AUTHOR("Samuel Čavoj <sammko@sammserver.com>");
+MODULE_DESCRIPTION("HID driver for Glorious PC Gaming Race mice");
+
+/*
+ * Glorious Model O and O- specify the const flag in the consumer input
+ * report descriptor, which leads to inputs being ignored. Fix this
+ * by patching the descriptor.
+ */
+static __u8 *glorious_report_fixup(struct hid_device *hdev, __u8 *rdesc,
+		unsigned int *rsize)
+{
+	if (*rsize == 213 &&
+		rdesc[84] == 129 && rdesc[112] == 129 && rdesc[140] == 129 &&
+		rdesc[85] == 3   && rdesc[113] == 3   && rdesc[141] == 3) {
+		hid_info(hdev, "patching Glorious Model O consumer control report descriptor\n");
+		rdesc[85] = rdesc[113] = rdesc[141] = \
+			HID_MAIN_ITEM_VARIABLE | HID_MAIN_ITEM_RELATIVE;
+	}
+	return rdesc;
+}
+
+static void glorious_update_name(struct hid_device *hdev)
+{
+	const char *model = "Device";
+
+	switch (hdev->product) {
+	case USB_DEVICE_ID_GLORIOUS_MODEL_O:
+		model = "Model O"; break;
+	case USB_DEVICE_ID_GLORIOUS_MODEL_D:
+		model = "Model D"; break;
+	}
+
+	snprintf(hdev->name, sizeof(hdev->name), "%s %s", "Glorious", model);
+}
+
+static int glorious_probe(struct hid_device *hdev,
+		const struct hid_device_id *id)
+{
+	int ret;
+
+	hdev->quirks |= HID_QUIRK_INPUT_PER_APP;
+
+	ret = hid_parse(hdev);
+	if (ret)
+		return ret;
+
+	glorious_update_name(hdev);
+
+	return hid_hw_start(hdev, HID_CONNECT_DEFAULT);
+}
+
+static const struct hid_device_id glorious_devices[] = {
+	{ HID_USB_DEVICE(USB_VENDOR_ID_GLORIOUS,
+		USB_DEVICE_ID_GLORIOUS_MODEL_O) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_GLORIOUS,
+		USB_DEVICE_ID_GLORIOUS_MODEL_D) },
+	{ }
+};
+MODULE_DEVICE_TABLE(hid, glorious_devices);
+
+static struct hid_driver glorious_driver = {
+	.name = "glorious",
+	.id_table = glorious_devices,
+	.probe = glorious_probe,
+	.report_fixup = glorious_report_fixup
+};
+
+module_hid_driver(glorious_driver);
+
+MODULE_LICENSE("GPL");
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 3a400ce603c4..ba3fb2117257 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -464,6 +464,10 @@
 #define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_010A 0x010a
 #define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_E100 0xe100
 
+#define USB_VENDOR_ID_GLORIOUS  0x258a
+#define USB_DEVICE_ID_GLORIOUS_MODEL_D 0x0033
+#define USB_DEVICE_ID_GLORIOUS_MODEL_O 0x0036
+
 #define I2C_VENDOR_ID_GOODIX		0x27c6
 #define I2C_DEVICE_ID_GOODIX_01F0	0x01f0
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] HID: Add driver fixing Glorious PC Gaming Race mouse report descriptor
  2020-03-13  2:12 ` [PATCH v2] " Samuel Čavoj
@ 2020-03-18 15:18   ` Jiri Kosina
  0 siblings, 0 replies; 4+ messages in thread
From: Jiri Kosina @ 2020-03-18 15:18 UTC (permalink / raw)
  To: Samuel Čavoj
  Cc: Benjamin Tissoires, linux-input, linux-kernel, Silvan Jegen

On Fri, 13 Mar 2020, Samuel Čavoj wrote:

> The Glorious Model O mice (and also at least the Model O-, which is
> driver-wise the same mouse) have a bug in the descriptor of HID
> Report with ID 2. This report is used for Consumer Control buttons,
> which can be mapped using the provided Windows only software.
> 
> Here is an excerpt from the original descriptor:
> 
>   INPUT(2)[INPUT]
>     Field(0)
>       Flags( Constant Variable Absolute )
>     Field(1)
>       Flags( Constant Variable Absolute )
>     Field(2)
>       Flags( Constant Variable Absolute )

Applied, thanks.

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-18 15:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-08 21:27 [PATCH] HID: Add driver fixing Glorious PC Gaming Race mouse report descriptor Samuel Čavoj
2020-03-11  8:46 ` Silvan Jegen
2020-03-13  2:12 ` [PATCH v2] " Samuel Čavoj
2020-03-18 15:18   ` Jiri Kosina

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.