Message ID | 20220614075623.2392607-1-c.lobrano@gmail.com |
---|---|
State | New |
Headers | show |
Series | [v4] USB:serial:option: Add Telit LE910Cx 0x1250 composition | expand |
On Tue, Jun 14, 2022 at 09:56:23AM +0200, Carlo Lobrano wrote: > Add support for the following Telit LE910Cx composition: > > 0x1250: rmnet, tty, tty, tty, tty > > Reviewed-by: Daniele Palmas <dnlplm@gmail.com> > Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com> > --- > > here is also the lsusb I forgot in v2 and v3 > --- > v4: use USB_DEVICE_AND_INTERFACE_INFO in place of USB_DEVICE_INTERFACE_CLASS > v3: - fix subject prefix and modem name (s/LN910Cx/LE910Cx) > - more descriptive e-mail content > v2: use RSVD in place of NCTRL for interface 0 (rmnet) Thanks for the update. Now applied with some minor style tweaks (e.g. missing space after colons in Subject and missing space before }). > drivers/usb/serial/option.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c > index ed1e50d83cca..a50bd91572cb 100644 > --- a/drivers/usb/serial/option.c > +++ b/drivers/usb/serial/option.c > @@ -1279,6 +1279,7 @@ static const struct usb_device_id option_ids[] = { > .driver_info = NCTRL(0) | RSVD(1) | RSVD(2) }, > { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x1231, 0xff), /* Telit LE910Cx (RNDIS) */ > .driver_info = NCTRL(2) | RSVD(3) }, > + { USB_DEVICE_AND_INTERFACE_INFO(TELIT_VENDOR_ID, 0x1250, 0xff, 0x0, 0x0)}, /* Telit LE910Cx (rmnet) */ > { USB_DEVICE(TELIT_VENDOR_ID, 0x1260), > .driver_info = NCTRL(0) | RSVD(1) | RSVD(2) }, > { USB_DEVICE(TELIT_VENDOR_ID, 0x1261), Johan
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index ed1e50d83cca..a50bd91572cb 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -1279,6 +1279,7 @@ static const struct usb_device_id option_ids[] = { .driver_info = NCTRL(0) | RSVD(1) | RSVD(2) }, { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x1231, 0xff), /* Telit LE910Cx (RNDIS) */ .driver_info = NCTRL(2) | RSVD(3) }, + { USB_DEVICE_AND_INTERFACE_INFO(TELIT_VENDOR_ID, 0x1250, 0xff, 0x0, 0x0)}, /* Telit LE910Cx (rmnet) */ { USB_DEVICE(TELIT_VENDOR_ID, 0x1260), .driver_info = NCTRL(0) | RSVD(1) | RSVD(2) }, { USB_DEVICE(TELIT_VENDOR_ID, 0x1261),