Re: AW: add usb option device

2016-12-05 Thread Johan Hovold
On Sat, Dec 03, 2016 at 07:47:11PM +0100, Giuseppe Lippolis wrote: > Dear All, > > > If possible you want to tell the option driver which interfaces to > > bind to (white-listing) rather than specifying which not to bind to > > (black-listing). The latter typically means probing all interfaces,

AW: AW: add usb option device

2016-12-03 Thread Giuseppe Lippolis
Dear All, > If possible you want to tell the option driver which interfaces to > bind to (white-listing) rather than specifying which not to bind to > (black-listing). The latter typically means probing all interfaces, > checking the black list, and then bailing out for unsupported >

Re: AW: add usb option device

2016-11-17 Thread Dan Williams
57 > > An: Dan Williams <d...@redhat.com> > > Cc: Giuseppe Lippolis <giu.lippo...@gmail.com>; linux-...@vger.kern > > el.org > > Betreff: Re: add usb option device > > > > On Wed, 2016-11-16 at 11:49 -0600, Dan Williams wrote: > > &g

Re: add usb option device

2016-11-17 Thread Dan Williams
On Thu, 2016-11-17 at 11:15 +0100, Johan Hovold wrote: > On Wed, Nov 16, 2016 at 10:03:52PM +0100, Giuseppe Lippolis wrote: > > > > Dear All, > > thanks for the very interesting discussion. > > > > > > > > > > > > > This will make option grab all the ports, as shown by your > > > > dmesg > > >

Re: add usb option device

2016-11-17 Thread Johan Hovold
On Wed, Nov 16, 2016 at 10:03:52PM +0100, Giuseppe Lippolis wrote: > Dear All, > thanks for the very interesting discussion. > > > > This will make option grab all the ports, as shown by your dmesg > > > output. But USB interfaces 0 and 1 are actually cdc-ether and should > > > *not* be grabbed

Re: add usb option device

2016-11-16 Thread Lars Melin
On 2016-11-17 03:57, Oliver Neukum wrote: On Wed, 2016-11-16 at 11:49 -0600, Dan Williams wrote: This will make option grab all the ports, as shown by your dmesg output. But USB interfaces 0 and 1 are actually cdc-ether and should *not* be grabbed by option. You want to limit option to

Re: add usb option device

2016-11-16 Thread Lars Melin
On 2016-11-17 01:35, Dan Williams wrote: Also, is it really a D-Link DWM-158? That appears to be a USB dongle- type device, while what's in the DWR-512 is a PCI-E minicard that looks like a ZTE MF210, from the FCC pictures. DWR-512A1 uses the ZTE MF210 module while DWR-512B1 uses the D-Link

AW: add usb option device

2016-11-16 Thread Giuseppe Lippolis
linux-usb@vger.kernel.org > Betreff: Re: add usb option device > > On Wed, 2016-11-16 at 11:49 -0600, Dan Williams wrote: > > This will make option grab all the ports, as shown by your dmesg > > output. But USB interfaces 0 and 1 are actually cdc-ether and should > >

Re: add usb option device

2016-11-16 Thread Oliver Neukum
On Wed, 2016-11-16 at 11:49 -0600, Dan Williams wrote: > This will make option grab all the ports, as shown by your dmesg > output. But USB interfaces 0 and 1 are actually cdc-ether and should > *not* be grabbed by option. > > You want to limit option to grabbing bInterfaceClass=255 to make sure

AW: add usb option device

2016-11-16 Thread Giuseppe Lippolis
Dear All, thanks for the very interesting discussion. > > This will make option grab all the ports, as shown by your dmesg > > output. But USB interfaces 0 and 1 are actually cdc-ether and should > > *not* be grabbed by option. > > > > You want to limit option to grabbing bInterfaceClass=255 to

Re: add usb option device

2016-11-16 Thread Dan Williams
On Wed, 2016-11-16 at 11:49 -0600, Dan Williams wrote: > On Tue, 2016-11-15 at 20:13 +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

Re: add usb option device

2016-11-16 Thread Dan Williams
On Tue, 2016-11-15 at 20:13 +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  > >

Re: add usb option device

2016-11-15 Thread Lars Melin
On 2016-11-16 02:13, 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

AW: add usb option device

2016-11-15 Thread Giuseppe Lippolis
> Your email client ate the tabs and spit out spaces and line-wrapped the > patch, making it impossible to apply. > > Also, you need to make it against the latest kernel tree, 4.4 is really old. > > And finally, there is no good subject: line, or description of the patch, or a > signed-off-by:

Re: add usb option device

2016-11-15 Thread 'Greg KH'
On Tue, Nov 15, 2016 at 08:46:31PM +0100, Giuseppe Lippolis wrote: > Here it is: > > --- a/linux-4.4.23/drivers/usb/serial/option.c2016-09-30 > 10:20:43.0 +0200 > +++ b/linux-4.4.30/drivers/usb/serial/option.c 2016-11-14 > 21:01:15.738450136 +0100 > @@ -306,6 +306,9 @@

AW: add usb option device

2016-11-15 Thread Giuseppe Lippolis
) }, bye > -Ursprüngliche Nachricht- > Von: Greg KH [mailto:gre...@linuxfoundation.org] > Gesendet: Dienstag, 15. November 2016 20:19 > An: Giuseppe Lippolis <giu.lippo...@gmail.com> > Cc: linux-usb@vger.kernel.org > Betreff: Re: add usb option device > >

Re: add usb option device

2016-11-15 Thread Greg KH
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 >

add usb option device

2016-11-15 Thread Giuseppe Lippolis
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