2022-09-14 03:02:24

by Chris Packham

[permalink] [raw]
Subject: [PATCH 0/2] USB: serial: option: add NetIndex UX302NC and docomo L-03F

This is a couple of patches we've been carrying around in our tree for a while.
I'm not sure why they weren't submitted upstreamed (probably because I didn't
nag loud enough at the time) so I'm doing it now.

Chris Packham (2):
USB: serial: option: add support for NetIndex UX302NC
USB: serial: option: add support for docomo L-03F

drivers/usb/serial/option.c | 6 ++++++
1 file changed, 6 insertions(+)

--
2.37.3


2022-09-14 03:04:28

by Chris Packham

[permalink] [raw]
Subject: [PATCH 2/2] USB: serial: option: add support for docomo L-03F

Add support for the docomo L-03F modem.

Signed-off-by: Chris Packham <[email protected]>
---
drivers/usb/serial/option.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
index 2065f0fb2fa0..14eaff50820b 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -527,6 +527,7 @@ static void option_instat_callback(struct urb *urb);
/* LG products */
#define LG_VENDOR_ID 0x1004
#define LG_PRODUCT_L02C 0x618f
+#define LG_PRODUCT_L03F 0x6366

/* MediaTek products */
#define MEDIATEK_VENDOR_ID 0x0e8d
@@ -2079,6 +2080,7 @@ static const struct usb_device_id option_ids[] = {
{ USB_DEVICE_AND_INTERFACE_INFO(VIETTEL_VENDOR_ID, VIETTEL_PRODUCT_VT1000, 0xff, 0xff, 0xff) },
{ USB_DEVICE_AND_INTERFACE_INFO(ZD_VENDOR_ID, ZD_PRODUCT_7000, 0xff, 0xff, 0xff) },
{ USB_DEVICE(LG_VENDOR_ID, LG_PRODUCT_L02C) }, /* docomo L-02C modem */
+ { USB_DEVICE(LG_VENDOR_ID, LG_PRODUCT_L03F) }, /* docomo L-03F modem */
{ USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a1, 0xff, 0x00, 0x00) },
{ USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a1, 0xff, 0x02, 0x01) },
{ USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a2, 0xff, 0x00, 0x00) },
--
2.37.3

2022-09-14 04:19:31

by Lars Melin

[permalink] [raw]
Subject: Re: [PATCH 2/2] USB: serial: option: add support for docomo L-03F

On 9/14/2022 09:55, Chris Packham wrote:
> Add support for the docomo L-03F modem.
>
> Signed-off-by: Chris Packham <[email protected]>
> ---
> drivers/usb/serial/option.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
> index 2065f0fb2fa0..14eaff50820b 100644
> --- a/drivers/usb/serial/option.c
> +++ b/drivers/usb/serial/option.c
> @@ -527,6 +527,7 @@ static void option_instat_callback(struct urb *urb);
> /* LG products */
> #define LG_VENDOR_ID 0x1004
> #define LG_PRODUCT_L02C 0x618f
> +#define LG_PRODUCT_L03F 0x6366
>
> /* MediaTek products */
> #define MEDIATEK_VENDOR_ID 0x0e8d
> @@ -2079,6 +2080,7 @@ static const struct usb_device_id option_ids[] = {
> { USB_DEVICE_AND_INTERFACE_INFO(VIETTEL_VENDOR_ID, VIETTEL_PRODUCT_VT1000, 0xff, 0xff, 0xff) },
> { USB_DEVICE_AND_INTERFACE_INFO(ZD_VENDOR_ID, ZD_PRODUCT_7000, 0xff, 0xff, 0xff) },
> { USB_DEVICE(LG_VENDOR_ID, LG_PRODUCT_L02C) }, /* docomo L-02C modem */
> + { USB_DEVICE(LG_VENDOR_ID, LG_PRODUCT_L03F) }, /* docomo L-03F modem */
> { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a1, 0xff, 0x00, 0x00) },
> { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a1, 0xff, 0x02, 0x01) },
> { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a2, 0xff, 0x00, 0x00) },


Hi,
this doesn't seem to be correct. Since this is a LTE CAT3 highspeed
device and the modem manual mentions MS Win NDIS driver then one
interface is likely to be a QMI interface which you must blacklist in
the option driver.
Please provide a usb-devices or verbose lsusb output for the modem.

thanks
Lars

2022-09-14 05:02:06

by Chris Packham

[permalink] [raw]
Subject: Re: [PATCH 2/2] USB: serial: option: add support for docomo L-03F


On 14/09/22 16:10, Lars Melin wrote:
> On 9/14/2022 09:55, Chris Packham wrote:
>> Add support for the docomo L-03F modem.
>>
>> Signed-off-by: Chris Packham <[email protected]>
>> ---
>>   drivers/usb/serial/option.c | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
>> index 2065f0fb2fa0..14eaff50820b 100644
>> --- a/drivers/usb/serial/option.c
>> +++ b/drivers/usb/serial/option.c
>> @@ -527,6 +527,7 @@ static void option_instat_callback(struct urb *urb);
>>   /* LG products */
>>   #define LG_VENDOR_ID                0x1004
>>   #define LG_PRODUCT_L02C                0x618f
>> +#define LG_PRODUCT_L03F                0x6366
>>     /* MediaTek products */
>>   #define MEDIATEK_VENDOR_ID            0x0e8d
>> @@ -2079,6 +2080,7 @@ static const struct usb_device_id option_ids[] = {
>>       { USB_DEVICE_AND_INTERFACE_INFO(VIETTEL_VENDOR_ID,
>> VIETTEL_PRODUCT_VT1000, 0xff, 0xff, 0xff) },
>>       { USB_DEVICE_AND_INTERFACE_INFO(ZD_VENDOR_ID, ZD_PRODUCT_7000,
>> 0xff, 0xff, 0xff) },
>>       { USB_DEVICE(LG_VENDOR_ID, LG_PRODUCT_L02C) }, /* docomo L-02C
>> modem */
>> +    { USB_DEVICE(LG_VENDOR_ID, LG_PRODUCT_L03F) }, /* docomo L-03F
>> modem */
>>       { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a1,
>> 0xff, 0x00, 0x00) },
>>       { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a1,
>> 0xff, 0x02, 0x01) },
>>       { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a2,
>> 0xff, 0x00, 0x00) },
>
>
> Hi,
> this doesn't seem to be correct. Since this is a LTE CAT3 highspeed
> device and the modem manual mentions MS Win NDIS driver then one
> interface is likely to be a QMI interface which you must blacklist in
> the option driver.
> Please provide a usb-devices or verbose lsusb output for the modem.

Yamamoto-san, are you able to provide the lsusb -v output for this
device? (Our internal issue for the code change is CR-56120).

>
> thanks
> Lars

2022-10-06 20:21:01

by Chris Packham

[permalink] [raw]
Subject: Re: [PATCH 2/2] USB: serial: option: add support for docomo L-03F

Hi Lars,

On 14/09/22 16:18, Chris Packham wrote:
>
> On 14/09/22 16:10, Lars Melin wrote:
>> On 9/14/2022 09:55, Chris Packham wrote:
>>> Add support for the docomo L-03F modem.
>>>
>>> Signed-off-by: Chris Packham <[email protected]>
>>> ---
>>>   drivers/usb/serial/option.c | 2 ++
>>>   1 file changed, 2 insertions(+)
>>>
>>> diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
>>> index 2065f0fb2fa0..14eaff50820b 100644
>>> --- a/drivers/usb/serial/option.c
>>> +++ b/drivers/usb/serial/option.c
>>> @@ -527,6 +527,7 @@ static void option_instat_callback(struct urb
>>> *urb);
>>>   /* LG products */
>>>   #define LG_VENDOR_ID                0x1004
>>>   #define LG_PRODUCT_L02C                0x618f
>>> +#define LG_PRODUCT_L03F                0x6366
>>>     /* MediaTek products */
>>>   #define MEDIATEK_VENDOR_ID            0x0e8d
>>> @@ -2079,6 +2080,7 @@ static const struct usb_device_id option_ids[]
>>> = {
>>>       { USB_DEVICE_AND_INTERFACE_INFO(VIETTEL_VENDOR_ID,
>>> VIETTEL_PRODUCT_VT1000, 0xff, 0xff, 0xff) },
>>>       { USB_DEVICE_AND_INTERFACE_INFO(ZD_VENDOR_ID, ZD_PRODUCT_7000,
>>> 0xff, 0xff, 0xff) },
>>>       { USB_DEVICE(LG_VENDOR_ID, LG_PRODUCT_L02C) }, /* docomo L-02C
>>> modem */
>>> +    { USB_DEVICE(LG_VENDOR_ID, LG_PRODUCT_L03F) }, /* docomo L-03F
>>> modem */
>>>       { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a1,
>>> 0xff, 0x00, 0x00) },
>>>       { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a1,
>>> 0xff, 0x02, 0x01) },
>>>       { USB_DEVICE_AND_INTERFACE_INFO(MEDIATEK_VENDOR_ID, 0x00a2,
>>> 0xff, 0x00, 0x00) },
>>
>>
>> Hi,
>> this doesn't seem to be correct. Since this is a LTE CAT3 highspeed
>> device and the modem manual mentions MS Win NDIS driver then one
>> interface is likely to be a QMI interface which you must blacklist in
>> the option driver.
>> Please provide a usb-devices or verbose lsusb output for the modem.
>
> Yamamoto-san, are you able to provide the lsusb -v output for this
> device? (Our internal issue for the code change is CR-56120).
>
Just following up on this. I've not been able to track down one of the
actual modems and have had radio silence from my colleagues who did the
original work.

Is the 1/2 patch of this series acceptable on it's own? (should I rebase
and resubmit it).

>>
>> thanks
>> Lars

2022-10-07 00:33:51

by Lars Melin

[permalink] [raw]
Subject: Re: [PATCH 2/2] USB: serial: option: add support for docomo L-03F

On 10/7/2022 02:44, Chris Packham wrote:
> Hi Lars,


> Just following up on this. I've not been able to track down one of the
> actual modems and have had radio silence from my colleagues who did the
> original work.
>
> Is the 1/2 patch of this series acceptable on it's own? (should I rebase
> and resubmit it).
>


Patch 1/2 for NetIndex UX302NC USB modem has the same error as patch 2/2
for the Docomo USB modem, both are LTE CAT3 devices and there is no mfgr
providing only a serial ppp dial-up modem interface for high-speed
devices like these, they always have a direct net interface.

I have dug up the driver installer from NetIndex web site, the interface
usage is:

MI_00 NCXX UX302NC HS-USB Diagnostics
MI_01 NCXX UX302NC HS-USB Modem
MI_02 NCXX UX302NC HS-USB Application
MI_03 NCXX UX302NC Ethernet Adapter


and info in the driver files tells us that the chip mfgr is Qualcomm and
the net interface is QMI so it must be blacklisted in the option driver.


thanks
Lars