All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3 v2] usb/hid-core: drain URB queue when going to suspend
@ 2011-11-17 11:23 Daniel Kurtz
  2011-11-17 11:23 ` [PATCH 1/3] HID: usbhid: remove LED_ON Daniel Kurtz
                   ` (3 more replies)
  0 siblings, 4 replies; 31+ messages in thread
From: Daniel Kurtz @ 2011-11-17 11:23 UTC (permalink / raw)
  To: jkosina, oneukum, bleung
  Cc: stern, olofj, linux-input, linux-kernel, linux-usb, Daniel Kurtz

In some situations, trying to suspend a laptop with an attached USB keyboard
would fail if both NumLock and CapsLock LEDs were lit.
This was due to a race condition between asynchronously submitted
LED-manipulating CTRL URBs and the suspend process.

This is a different solution to the same problem highlighted here:
https://lkml.org/lkml/2011/9/2/391

These patches are against Jiri's hid/for-next branch.

Daniel Kurtz (3):
  HID: usbhid: remove LED_ON
  HID: usbhid: hid-core: submit queued urbs before suspend
  HID: usbhid: defer LED setting to a workqueue

Differences since v1:
  * Rebase on hid/for-next
  * Solve race with usbhid_stop() [reported by Oliver Neukum]

 drivers/hid/hid-input.c       |   42 +++++++
 drivers/hid/usbhid/hid-core.c |  241 ++++++++++++++++++++++++-----------------
 drivers/hid/usbhid/usbhid.h   |    3 +-
 include/linux/hid.h           |    2 +
 4 files changed, 187 insertions(+), 101 deletions(-)

-- 
1.7.3.1

^ permalink raw reply	[flat|nested] 31+ messages in thread
* [PATCH 0/3] usb/hid-core: drain URB queue when going to suspend
@ 2011-11-01  9:25 Daniel Kurtz
  2011-11-01  9:25 ` [PATCH 2/3] HID: usbhid: hid-core: submit queued urbs before suspend Daniel Kurtz
  0 siblings, 1 reply; 31+ messages in thread
From: Daniel Kurtz @ 2011-11-01  9:25 UTC (permalink / raw)
  To: jkosina, oneukum, bleung
  Cc: stern, olofj, linux-input, linux-kernel, linux-usb, Daniel Kurtz

In some situations, trying to suspend a laptop with an attached USB keyboard
would fail if both NumLock and CapsLock LEDs were lit.
This was due to a race condition between asynchronously submitted
LED-manipulating CTRL URBs and the suspend process.

This is a different solution to the same problem highlighted here:
https://lkml.org/lkml/2011/9/2/391

These patches are against Jiri's hid/master branch.

Daniel Kurtz (3):
  HID: usbhid: remove LED_ON
  HID: usbhid: hid-core: submit queued urbs before suspend
  HID: usbhid: defer LED setting to a workqueue

 drivers/hid/hid-input.c       |   42 +++++++
 drivers/hid/usbhid/hid-core.c |  237 ++++++++++++++++++++++++-----------------
 drivers/hid/usbhid/usbhid.h   |    3 +-
 include/linux/hid.h           |    2 +
 4 files changed, 184 insertions(+), 100 deletions(-)

-- 
1.7.3.1

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

end of thread, other threads:[~2011-12-21 10:19 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-17 11:23 [PATCH 0/3 v2] usb/hid-core: drain URB queue when going to suspend Daniel Kurtz
2011-11-17 11:23 ` [PATCH 1/3] HID: usbhid: remove LED_ON Daniel Kurtz
2011-11-17 11:23 ` [PATCH 2/3] HID: usbhid: hid-core: submit queued urbs before suspend Daniel Kurtz
2011-12-14  7:55   ` Oliver Neukum
2011-12-14  8:00     ` Daniel Kurtz
2011-12-14  8:00       ` Daniel Kurtz
     [not found]       ` <CAGS+omDMipRTVOGV9fG0ciWpuwMRBL-eTY8uDwaiSOW==CkQ-w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-14  9:14         ` Oliver Neukum
2011-12-14  9:14           ` Oliver Neukum
2011-12-14  9:41           ` Daniel Kurtz
2011-12-14  9:41             ` Daniel Kurtz
2011-12-14 11:36             ` Oliver Neukum
2011-11-17 11:23 ` [PATCH 3/3] HID: usbhid: defer LED setting to a workqueue Daniel Kurtz
2011-12-14  8:01   ` Oliver Neukum
2011-12-14  8:19     ` Daniel Kurtz
2011-12-14  8:19       ` Daniel Kurtz
2011-12-14  9:25       ` Oliver Neukum
     [not found]     ` <201112140901.35203.oneukum-l3A5Bk7waGM@public.gmane.org>
2011-12-14 10:33       ` Daniel Kurtz
2011-12-14 10:33         ` Daniel Kurtz
2011-12-14 11:22         ` Oliver Neukum
2011-12-15  6:43           ` Daniel Kurtz
2011-12-15  6:43             ` Daniel Kurtz
2011-12-15  9:01             ` Oliver Neukum
     [not found]               ` <201112151001.52761.oneukum-l3A5Bk7waGM@public.gmane.org>
2011-12-20 10:12                 ` Daniel Kurtz
2011-12-20 10:12                   ` Daniel Kurtz
2011-12-20 10:18                   ` Oliver Neukum
2011-12-20 10:18                     ` Oliver Neukum
2011-12-21 10:19                     ` Jiri Kosina
     [not found] ` <1321529030-7845-1-git-send-email-djkurtz-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2011-12-07  2:42   ` [PATCH 0/3 v2] usb/hid-core: drain URB queue when going to suspend Daniel Kurtz
2011-12-07  2:42     ` Daniel Kurtz
2011-12-07  9:27     ` Jiri Kosina
  -- strict thread matches above, loose matches on Subject: below --
2011-11-01  9:25 [PATCH 0/3] " Daniel Kurtz
2011-11-01  9:25 ` [PATCH 2/3] HID: usbhid: hid-core: submit queued urbs before suspend Daniel Kurtz

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.