[Nut-upsdev] possible code change to drivers/libusb.c
James
bjlockie at lockie.ca
Wed May 12 00:27:12 UTC 2010
On 05/11/10 18:59, Charles Lepple wrote:
> 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.
>
Ah.
More information about the Nut-upsdev
mailing list