AW: add usb option device

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

 



Here it is:

--- a/linux-4.4.23/drivers/usb/serial/option.c        2016-09-30
10:20:43.000000000 +0200
+++ b/linux-4.4.30/drivers/usb/serial/option.c       2016-11-14
21:01:15.738450136 +0100
@@ -306,6 +306,9 @@ static void option_instat_callback(struc
 #define DLINK_PRODUCT_DWM_652_U5               0xce16
 #define DLINK_PRODUCT_DWM_652_U5A              0xce1e

+#define DLINK_ATL_VENDOR_ID                    0x2001
+#define DLINK_PRODUCT_DWM_158                  0x7d04
+
 #define QISDA_VENDOR_ID                                0x1da5
 #define QISDA_PRODUCT_H21_4512                 0x4512
 #define QISDA_PRODUCT_H21_4523                 0x4523
@@ -1812,6 +1815,8 @@ static const struct usb_device_id option
        { USB_DEVICE(DLINK_VENDOR_ID, DLINK_PRODUCT_DWM_652) },
        { USB_DEVICE(ALINK_VENDOR_ID, DLINK_PRODUCT_DWM_652_U5) }, /* Yes,
ALINK_VENDOR_ID */
        { USB_DEVICE(ALINK_VENDOR_ID, DLINK_PRODUCT_DWM_652_U5A) },
+       { USB_DEVICE(DLINK_ATL_VENDOR_ID, DLINK_PRODUCT_DWM_158) },
+
        { USB_DEVICE(QISDA_VENDOR_ID, QISDA_PRODUCT_H21_4512) },
        { USB_DEVICE(QISDA_VENDOR_ID, QISDA_PRODUCT_H21_4523) },
        { USB_DEVICE(QISDA_VENDOR_ID, QISDA_PRODUCT_H20_4515) },


bye

> -----Ursprüngliche Nachricht-----
> Von: Greg KH [mailto:gregkh@xxxxxxxxxxxxxxxxxxx]
> Gesendet: Dienstag, 15. November 2016 20:19
> An: Giuseppe Lippolis <giu.lippolis@xxxxxxxxx>
> Cc: linux-usb@xxxxxxxxxxxxxxx
> Betreff: Re: add usb option device
> 
> On Tue, Nov 15, 2016 at 08:13:56PM +0100, Giuseppe Lippolis wrote:
> > Dear all,
> > I'm porting the Dlink DWR-512 device to LEDE (embedded linux).
> > This device embed a 3G modem connected through the usb bus .
> > The modem work properly with the option kernel module.
> >
> > I added these line in the
> >
> > 	#define DLINK_PRODUCT_DWM_652                  0x3e04
> > 	#define DLINK_PRODUCT_DWM_652_U5          0xce16
> > 	#define DLINK_PRODUCT_DWM_652_U5A       0xce1e
> >
> > +	#define DLINK_ATL_VENDOR_ID                     	0x2001
> > +	#define DLINK_PRODUCT_DWM_158                  0x7d04
> >
> > 	#define QISDA_VENDOR_ID                       	0x1da5
> > 	#define QISDA_PRODUCT_H21_4512                  	0x4512
> >
> > [...]
> >
> >         { USB_DEVICE(ALINK_VENDOR_ID, DLINK_PRODUCT_DWM_652_U5) },
> /*
> > Yes, ALINK_VENDOR_ID */
> >         { USB_DEVICE(ALINK_VENDOR_ID, DLINK_PRODUCT_DWM_652_U5A)
> },
> > +     { USB_DEVICE(DLINK_ATL_VENDOR_ID, DLINK_PRODUCT_DWM_158)
> },
> >         { USB_DEVICE(QISDA_VENDOR_ID, QISDA_PRODUCT_H21_4512) },
> >         { USB_DEVICE(QISDA_VENDOR_ID, QISDA_PRODUCT_H21_4523) },
> 
> Great, can you provide a patch for this in a format that we can apply it
in?
> The file, Documentation/SubmittingPatches will show you what you need to
> do.  If you have any questions after reading that, please let us know.
> 
> thanks,
> 
> greg k-h

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" 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]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux