diff options
| -rw-r--r-- | drivers/hid/hid-logitech-dj.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c index a7947d8251a8..f45279c3b11a 100644 --- a/drivers/hid/hid-logitech-dj.c +++ b/drivers/hid/hid-logitech-dj.c | |||
| @@ -516,6 +516,14 @@ static int logi_dj_recv_switch_to_dj_mode(struct dj_receiver_dev *djrcv_dev, | |||
| 516 | dj_report->report_params[CMD_SWITCH_PARAM_TIMEOUT_SECONDS] = (u8)timeout; | 516 | dj_report->report_params[CMD_SWITCH_PARAM_TIMEOUT_SECONDS] = (u8)timeout; |
| 517 | retval = logi_dj_recv_send_report(djrcv_dev, dj_report); | 517 | retval = logi_dj_recv_send_report(djrcv_dev, dj_report); |
| 518 | kfree(dj_report); | 518 | kfree(dj_report); |
| 519 | |||
| 520 | /* | ||
| 521 | * Ugly sleep to work around a USB 3.0 bug when the receiver is still | ||
| 522 | * processing the "switch-to-dj" command while we send an other command. | ||
| 523 | * 50 msec should gives enough time to the receiver to be ready. | ||
| 524 | */ | ||
| 525 | msleep(50); | ||
| 526 | |||
| 519 | return retval; | 527 | return retval; |
| 520 | } | 528 | } |
| 521 | 529 | ||
