lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <14f5bdc0.3675.17f1b94b947.Coremail.slark_xiao@163.com>
Date:   Mon, 21 Feb 2022 17:20:05 +0800 (CST)
From:   "Slark Xiao" <slark_xiao@....com>
To:     "Johan Hovold" <johan@...nel.org>
Cc:     gregkh@...uxfoundation.org, linux-usb@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re:Re: Re: [PATCH] USB: serial: option: add support for DW5829e

















At 2022-02-21 17:07:35, "Johan Hovold" <johan@...nel.org> wrote:
>On Thu, Feb 10, 2022 at 11:27:45AM +0800, Slark Xiao wrote:
>> At 2022-02-09 22:27:01, "Johan Hovold" <johan@...nel.org> wrote:
>> >On Wed, Feb 09, 2022 at 11:15:35AM +0800, Slark Xiao wrote:
>
>> >> DW5829e RMNET mode:
>> >> T:  Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  5 Spd=5000 MxCh= 0
>> >> D:  Ver= 3.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS= 9 #Cfgs=  1
>> >> P:  Vendor=413c ProdID=81e6 Rev=03.18
>> >> S:  Manufacturer=Dell Inc.
>> >> S:  Product=DW5829e Snapdragon X20 LTE
>> >> S:  SerialNumber=0123456789ABCDEF
>> >> C:  #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=896mA
>> >> I:  If#=0x0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
>> >> I:  If#=0x1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
>> >> I:  If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
>> >> I:  If#=0x3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
>> >> I:  If#=0x4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
>> >> I:  If#=0x5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
>
>> >> DW5829e-eSIM RMNET mode:
>> >> T:  Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  7 Spd=5000 MxCh= 0
>> >> D:  Ver= 3.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS= 9 #Cfgs=  1
>> >> P:  Vendor=413c ProdID=81e4 Rev=03.18
>> >> S:  Manufacturer=Dell Inc.
>> >> S:  Product=DW5829e-eSIM Snapdragon X20 LTE
>> >> S:  SerialNumber=0123456789ABCDEF
>> >> C:  #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=896mA
>> >> I:  If#=0x0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
>> >> I:  If#=0x1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
>> >> I:  If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
>> >> I:  If#=0x3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
>> >> I:  If#=0x4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
>> >> I:  If#=0x5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
>
>> >>  #define KYOCERA_VENDOR_ID			0x0c88
>> >>  #define KYOCERA_PRODUCT_KPC650			0x17da
>> >> @@ -1063,6 +1065,10 @@ static const struct usb_device_id option_ids[] = {
>> >>  	  .driver_info = RSVD(0) | RSVD(1) | RSVD(6) },
>> >>  	{ USB_DEVICE(DELL_VENDOR_ID, DELL_PRODUCT_5821E_ESIM),
>> >>  	  .driver_info = RSVD(0) | RSVD(1) | RSVD(6) },
>> >> +	{ USB_DEVICE_INTERFACE_CLASS(DELL_VENDOR_ID, DELL_PRODUCT_5829E, 0xff),
>> >> +	  .driver_info = RSVD(6) },
>> >> +	{ USB_DEVICE_INTERFACE_CLASS(DELL_VENDOR_ID, DELL_PRODUCT_5829E_ESIM, 0xff),
>> >> +	  .driver_info = RSVD(6) },
>> >
>> >It looks like these entries will cause the driver to bind also to the
>> >QMI port however.
>> >
>
>> Actually not,  currently RMNET port would load the qmi_wwan driver
>> successfully even the class of QMI is also 0xff.
>
>That's not guaranteed so RMNET mode could break depending on probe
>order with the above entries.
>
>> Do you mean I should add RSVD(0) to reduce confusion?
>
>You need to reserve it for correctness (or restructure the entries in
>some other way to achieve the same result).
> 
Yes, so I re-send a V2 version to reserve interface 0,1,6. Please help take a look on that.
Thanks.
>> >>  	{ USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_E100A) },	/* ADU-E100, ADU-310 */
>> >>  	{ USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_500A) },
>> >>  	{ USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ADU_620UW) },
>
>Johan

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ