Message ID | 20200527094107.11936-3-sean@mess.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | IR Toy / IR Droid USB driver | expand |
On Wed, May 27, 2020 at 10:41:06AM +0100, Sean Young wrote: > 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/ > > Signed-off-by: Sean Young <sean@mess.org> > --- > drivers/usb/class/cdc-acm.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c > index 84d6f7df09a4..1369e3be5019 100644 > --- a/drivers/usb/class/cdc-acm.c > +++ b/drivers/usb/class/cdc-acm.c > @@ -1864,6 +1864,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, > -- > 2.26.2 > Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 84d6f7df09a4..1369e3be5019 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1864,6 +1864,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,
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/ Signed-off-by: Sean Young <sean@mess.org> --- drivers/usb/class/cdc-acm.c | 6 ++++++ 1 file changed, 6 insertions(+)