linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Bruno Prémont" <bonbons@linux-vserver.org>
To: David Herrmann <dh.herrmann@googlemail.com>
Cc: Jiri Kosina <jkosina@suse.cz>, linux-input@vger.kernel.org
Subject: HID, driver interaction with device during probe defeated by 4ea5454203d991ec85264f64f89ca8855fce69b0
Date: Mon, 9 Apr 2012 00:03:06 +0200	[thread overview]
Message-ID: <20120409000306.101c3427@neptune> (raw)

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

             reply	other threads:[~2012-04-08 22:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-08 22:03 Bruno Prémont [this message]
2012-04-09 10:36 ` HID, driver interaction with device during probe defeated by 4ea5454203d991ec85264f64f89ca8855fce69b0 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120409000306.101c3427@neptune \
    --to=bonbons@linux-vserver.org \
    --cc=dh.herrmann@googlemail.com \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).