[argyllcms] Re: [PATCH] usb/hid: Blacklist the Gretag-Macbeth Huey display colorimeter

  • From: Martin Ling <martin-argyll@xxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Fri, 14 Dec 2007 14:45:16 +0000

On Sat, Dec 15, 2007 at 12:01:20AM +1100, Graeme Gill wrote:
> 
> Nicolas Mailhot wrote:
> 
> >Then the person doing the HID code fix should remove the blacklist entry
> >at the same time.
> 
> Yes, but that won't work since it's the application that the exception has
> to track, not the driver.

The usual reason for drivers having a compiled-in list of devices is
that these are the ones which that version of the driver supports and
should attempt to use.

The current HID driver is unable to correctly drive a Huey, so it is
quite right for it to identify one and leave it alone.

If someone later modifies the HID driver to provide the direct access
needed, they can then undo that as Nicolas says.

What I think the application should do is to check whether a driver is
bound, and if not go through libusb. If there is a driver bound and it
provides the access it needs, it can use it.

As a last resort it can try unbinding the current driver but really,
this should never be necessary let alone considered routine. If a driver
cannot drive a device it should never be bound to it in the first
place.


Martin

Other related posts: