mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 20:07:09 +00:00
Input: xpad - fix clash of presence handling with LED setting
Do not call xpad_identify_controller at init with wireless devices: it conflicts with the already sent presence packet and will be called by xpad360w_process_packet as needed anyway. Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
9378c0251c
commit
fbe6a31144
@ -1001,8 +1001,15 @@ static int xpad_led_probe(struct usb_xpad *xpad)
|
|||||||
if (error)
|
if (error)
|
||||||
goto err_free_id;
|
goto err_free_id;
|
||||||
|
|
||||||
/* Light up the segment corresponding to controller number */
|
if (xpad->xtype == XTYPE_XBOX360) {
|
||||||
|
/*
|
||||||
|
* Light up the segment corresponding to controller
|
||||||
|
* number on wired devices. On wireless we'll do that
|
||||||
|
* when they respond to "presence" packet.
|
||||||
|
*/
|
||||||
xpad_identify_controller(xpad);
|
xpad_identify_controller(xpad);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err_free_id:
|
err_free_id:
|
||||||
|
Loading…
Reference in New Issue
Block a user