Re: Remove Phidget Blacklist if kernel driver is not selected

From: Greg KH
Date: Sun Sep 05 2004 - 22:01:28 EST


On Sun, Aug 29, 2004 at 03:21:06PM -0700, James Lamanna wrote:
> This patch (compile-tested not runtime tested yet)
> is to remove the blacklisting of Phidgets
> if the PhidgetServo kernel driver is not included
> in the kernel.
> (Right now it gets rid of all Phidget Blacklists, as more
> drivers are added I would expect they would be per-driver
> segmented).
>
> It gets quite annoying to have to patch recent kernels
> everytime to use userspace tools (libhid + libphidgets)
> as opposed to using the kernel driver, which cannot be
> used because of the HID blacklist.
>
> I don't understand why a kernel driver for the
> PhidgetServo was included in the kernel. Wasn't the
> point of the HID layer to be able to present HID devices
> to userspace so that kernel drivers don't have to be
> written for each and every device?
> It seems to be that the way to control a fairly simple
> device like the PhidgetServo is through userspace and
> the kernel shouldn't be bothered with the device control
> details.

Yes, you are correct. I'm going to rip out the in-kernel version (Oh
no! Not again...) because this can all be done better and safer from
userspace.

But the hid blacklist is still correct, even when using the userspace
library, as the hid driver should never bind to these devices.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/