Re: [PATCH] HID: check for HID_QUIRK_IGNORE during probing

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

 



On Tue, 2010-05-25 at 22:53 +0200, Jindrich Makovicka wrote:
> Updated to current git:
> 
> --- hid-core.c.orig	2010-05-25 22:04:58.000000000 +0200
> +++ hid-core.c	2010-05-25 22:08:53.791241376 +0200
> @@ -1759,7 +1759,8 @@
>  
>  	/* we need to kill them here, otherwise they will stay
> allocated to
>  	 * wait for coming driver */
> -	if (!(hdev->quirks & HID_QUIRK_NO_IGNORE) && hid_ignore(hdev))
> +	if (!(hdev->quirks & HID_QUIRK_NO_IGNORE)
> +            && (hid_ignore(hdev) || (hdev->quirks & HID_QUIRK_IGNORE)))
>  		return -ENODEV;
>  
>  	/* XXX hack, any other cleaner solution after the driver core

Wouldn't that mean that a device with HID_QUIRK_IGNORE for which we pass
HID_QUIRK_NO_IGNORE, would still be ignored?

If so, that's not what we want to do...


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


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux