diff --git a/patches.suse/Input-xpad-add-constants-for-GIP-interface-numbers.patch b/patches.suse/Input-xpad-add-constants-for-GIP-interface-numbers.patch new file mode 100644 index 0000000..3e9f819 --- /dev/null +++ b/patches.suse/Input-xpad-add-constants-for-GIP-interface-numbers.patch @@ -0,0 +1,42 @@ +From f9b2e603c6216824e34dc9a67205d98ccc9a41ca Mon Sep 17 00:00:00 2001 +From: Vicki Pfau +Date: Thu, 13 Apr 2023 23:57:42 -0700 +Subject: [PATCH] Input: xpad - add constants for GIP interface numbers +Git-commit: f9b2e603c6216824e34dc9a67205d98ccc9a41ca +Patch-mainline: v6.4-rc1 +References: git-fixes + +Wired GIP devices present multiple interfaces with the same USB identification +other than the interface number. This adds constants for differentiating two of +them and uses them where appropriate + +Signed-off-by: Vicki Pfau +Link: https://lore.kernel.org/r/20230411031650.960322-2-vi@endrift.com +Signed-off-by: Dmitry Torokhov +Acked-by: Takashi Iwai + +--- + drivers/input/joystick/xpad.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +--- a/drivers/input/joystick/xpad.c ++++ b/drivers/input/joystick/xpad.c +@@ -493,6 +493,9 @@ struct xboxone_init_packet { + } + + ++#define GIP_WIRED_INTF_DATA 0 ++#define GIP_WIRED_INTF_AUDIO 1 ++ + /* + * This packet is required for all Xbox One pads with 2015 + * or later firmware installed (or present from the factory). +@@ -1821,7 +1824,7 @@ static int xpad_probe(struct usb_interfa + } + + if (xpad->xtype == XTYPE_XBOXONE && +- intf->cur_altsetting->desc.bInterfaceNumber != 0) { ++ intf->cur_altsetting->desc.bInterfaceNumber != GIP_WIRED_INTF_DATA) { + /* + * The Xbox One controller lists three interfaces all with the + * same interface class, subclass and protocol. Differentiate by diff --git a/series.conf b/series.conf index 658b46a..e655146 100644 --- a/series.conf +++ b/series.conf @@ -20036,6 +20036,7 @@ patches.suse/KVM-nVMX-Emulate-NOPs-in-L2-and-PAUSE-if-it-s-not-in.patch patches.suse/Input-hp_sdc_rtc-mark-an-unused-function-as-__maybe_.patch patches.suse/Input-raspberrypi-ts-fix-refcount-leak-in-rpi_ts_pro.patch + patches.suse/Input-xpad-add-constants-for-GIP-interface-numbers.patch patches.suse/leds-TI_LMU_COMMON-select-REGMAP-instead-of-dependin.patch patches.suse/leds-Fix-reference-to-led_set_brightness-in-doc.patch patches.suse/leds-tca6507-Fix-error-handling-of-using-fwnode_prop.patch