Re: [PATCH 1/2] hid2hci: iterate libusb devices twice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux