media: USB: cdc-acm: blacklist IR Droid / IR Toy device
authorSean Young <sean@mess.org>
Wed, 27 May 2020 09:22:16 +0000 (11:22 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 23 Jun 2020 13:07:40 +0000 (15:07 +0200)
The IR Droid / IR Toy device used custom protocol over serial
line, so it is presenting itself as CDC ACM device.

Now that we have proper in-kernel driver for it we need to black-list the
device in cdc-acm driver.

http://dangerousprototypes.com/docs/USB_Infrared_Toy
https://www.irdroid.com/irdroid-usb-ir-transceiver/

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/usb/class/cdc-acm.c

index f67088b..450824a 100644 (file)
@@ -1890,6 +1890,12 @@ static const struct usb_device_id acm_ids[] = {
        },
 #endif
 
+#if IS_ENABLED(CONFIG_IR_TOY)
+       { USB_DEVICE(0x04d8, 0xfd08),
+       .driver_info = IGNORE_DEVICE,
+       },
+#endif
+
        /*Samsung phone in firmware update mode */
        { USB_DEVICE(0x04e8, 0x685d),
        .driver_info = IGNORE_DEVICE,