From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcel Holtmann Date: Mon, 27 Jul 2009 21:32:34 +0000 Subject: Re: [PATCH 1/2] hid2hci: iterate libusb devices twice Message-Id: <1248730354.28545.214.camel@violet> List-Id: References: <4A6E19FD.7040908@dell.com> In-Reply-To: <4A6E19FD.7040908@dell.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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