linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH 1/2] hid2hci: iterate libusb devices twice
Date: Mon, 27 Jul 2009 21:32:34 +0000	[thread overview]
Message-ID: <1248730354.28545.214.camel@violet> (raw)
In-Reply-To: <4A6E19FD.7040908@dell.com>

Hi Mario,

> After the previous cleanup submitted to hid2hci, a race condition has
> been exposed with regard to libusb.  Even though we know the bus and
> devnum are existing, the call to usb_find_devices isn't necessarily
> finding it on the first time after the device is introduced to the bus
> by the BT killswitch.  I'm not too keen upon iterating something twice
> as a solution, it does solve the problem until a method is introduced in
> usb_device_open_from_udev that doesn't require libusb's iteration of the
> bus in the first place.

then the usage of libusb needs to be removed. Read Kay's statement about
libusb being utterly stupid.

Regards

Marcel



  reply	other threads:[~2009-07-27 21:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-27 21:19 [PATCH 1/2] hid2hci: iterate libusb devices twice Mario Limonciello
2009-07-27 21:32 ` Marcel Holtmann [this message]
2009-07-28  0:12 ` Kay Sievers
2009-07-28 18:12 ` Mario Limonciello
2009-07-29 16:30 ` Mario Limonciello
2009-07-29 18:34 ` Mario_Limonciello
2009-07-29 22:14 ` Kay Sievers
2009-07-30 14:37 ` Alan Stern
2009-07-30 15:27 ` Kay Sievers
2009-07-30 15:37 ` Kay Sievers
2009-07-30 16:00 ` Alan Stern
2009-07-30 17:03 ` Mario Limonciello

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=1248730354.28545.214.camel@violet \
    --to=marcel@holtmann.org \
    --cc=linux-hotplug@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).