[Nut-upsdev] possible code change to drivers/libusb.c

Charles Lepple clepple at gmail.com
Tue May 11 22:59:13 UTC 2010


On Tue, May 11, 2010 at 10:10 AM, James <bjlockie at lockie.ca> wrote:
>  I doesn't fix any problems but I think it is nicer code. :-)
> I don't think we want to call usb_detach_kernel_driver_np unless we claimed
> the device.

Actually, we want to call usb_detach_kernel_driver_np() if we *can't*
claim the device, because that usually means that the kernel usbhid
driver has claimed it already (and it needs to be detached).

If we still can't claim it after that, then it is usually a permissions problem.

-- 
- Charles Lepple



More information about the Nut-upsdev mailing list