Thread (5 messages) flat view 5 messages, 2 authors, 2012-05-05

HID, driver interaction with device during probe defeated by 4ea5454203d991ec85264f64f89ca8855fce69b0

From: Bruno Prémont <bonbons@linux-vserver.org>
Date: 2012-04-08 22:13:09

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help