[PATCH] Input: Fix led setting on wireless xbox 360 controller

From: clement . calmels
Date: Sun Apr 26 2015 - 08:33:49 EST


From: Clement Calmels <clement.calmels@xxxxxxx>

When a wireless xbox 360 controller connects, its leds keep blinking
instead of indicating the contoller number.

This patch fix this issue. Tested with two wireless xbox360
controllers and the USB wireless gaming receiver:
Bus 002 Device 004: ID 045e:0719 Microsoft Corp. Xbox 360 Wireless Adapter

Signed-off-by: Clement Calmels <clement.calmels@xxxxxxx>
---
drivers/input/joystick/xpad.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index 61c7611..6e211b0 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -1209,7 +1209,8 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id
usb_sndintpipe(udev,
ep_irq_in->bEndpointAddress),
xpad->bdata, XPAD_PKT_LEN,
- xpad_bulk_out, xpad, 0);
+ xpad_bulk_out, xpad,
+ ep_irq_in->bInterval);
}

/*
--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/