linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* HID, driver interaction with device during probe defeated by 4ea5454203d991ec85264f64f89ca8855fce69b0
@ 2012-04-08 22:03 Bruno Prémont
  2012-04-09 10:36 ` David Herrmann
  0 siblings, 1 reply; 5+ messages in thread
From: Bruno Prémont @ 2012-04-08 22:03 UTC (permalink / raw)
  To: David Herrmann; +Cc: Jiri Kosina, linux-input

Hi,

picolcd driver stopped working (probe fails) recently, probably in
relation with commit 4ea5454203d991ec85264f64f89ca8855fce69b0
(HID: Fix race condition between driver core and ll-driver).

The probe code does send a report to the HID device to query version
information but times-out getting the response.

What would be the proper approach to fix this chicken-egg problem?
Semaphore introduced by above patch is only being released after
driver probe function has returned but prevents and incoming reports
from being delivered.

Touching the semaphore inside driver looks like a bad idea to me...

Thanks,
Bruno

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

end of thread, other threads:[~2012-05-05 12:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-08 22:03 HID, driver interaction with device during probe defeated by 4ea5454203d991ec85264f64f89ca8855fce69b0 Bruno Prémont
2012-04-09 10:36 ` David Herrmann
2012-05-05 10:58   ` Bruno Prémont
2012-05-05 11:56     ` David Herrmann
2012-05-05 12:19       ` Bruno Prémont

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).