linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [V2,1/1]USB: serial: option: add Foxconn T77W175 composition 0x901d
@ 2021-08-16  3:54 Slark Xiao
  2021-08-16  9:04 ` Reinhard Speyerer
  0 siblings, 1 reply; 10+ messages in thread
From: Slark Xiao @ 2021-08-16  3:54 UTC (permalink / raw)
  To: johan, gregkh; +Cc: linux-usb, linux-kernel, Slark Xiao

Foxconn SDX55 T77W175 device is working in PCIe mode normally.
You can find the PCIe support in drivers/bus/mhi/pci_generic.c file.
But in some scenario, we need to capture the memory dump once it crashed.
So a diag port under USB driver is needed.

Only interface 0 is used:
jbd@jbd-ThinkPad-P1-Gen-4:~$ lsusb | grep 05c6
Bus 003 Device 010: ID 05c6:901d Qualcomm, Inc. Generic Mobile Broadband Adapter
jbd@jbd-ThinkPad-P1-Gen-4:~$ lsusb -t | grep "Dev 10"
    |__ Port 7: Dev 10, If 0, Class=Vendor Specific Class, Driver=option, 480M

Signed-off-by: Slark Xiao <slark_xiao@163.com>
---
 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 039450069ca4..c275f489c1cc 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -2068,6 +2068,7 @@ static const struct usb_device_id option_ids[] = {
 	  .driver_info = RSVD(0) | RSVD(1) | RSVD(6) },
 	{ USB_DEVICE(0x0489, 0xe0b5),						/* Foxconn T77W968 ESIM */
 	  .driver_info = RSVD(0) | RSVD(1) | RSVD(6) },
+	{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x901d) },				/* Foxconn T77W175 PCIE+USB mode*/
 	{ USB_DEVICE(0x1508, 0x1001),						/* Fibocom NL668 (IOT version) */
 	  .driver_info = RSVD(4) | RSVD(5) | RSVD(6) },
 	{ USB_DEVICE(0x2cb7, 0x0104),						/* Fibocom NL678 series */
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] [V2,1/1]USB: serial: option: add Foxconn T77W175 composition 0x901d
  2021-08-16  3:54 [PATCH] [V2,1/1]USB: serial: option: add Foxconn T77W175 composition 0x901d Slark Xiao
@ 2021-08-16  9:04 ` Reinhard Speyerer
  2021-08-16  9:17   ` Slark Xiao
  0 siblings, 1 reply; 10+ messages in thread
From: Reinhard Speyerer @ 2021-08-16  9:04 UTC (permalink / raw)
  To: Slark Xiao; +Cc: johan, gregkh, linux-usb, linux-kernel

On Mon, Aug 16, 2021 at 11:54:04AM +0800, Slark Xiao wrote:
> Foxconn SDX55 T77W175 device is working in PCIe mode normally.
> You can find the PCIe support in drivers/bus/mhi/pci_generic.c file.
> But in some scenario, we need to capture the memory dump once it crashed.
> So a diag port under USB driver is needed.
> 
> Only interface 0 is used:
> jbd@jbd-ThinkPad-P1-Gen-4:~$ lsusb | grep 05c6
> Bus 003 Device 010: ID 05c6:901d Qualcomm, Inc. Generic Mobile Broadband Adapter
> jbd@jbd-ThinkPad-P1-Gen-4:~$ lsusb -t | grep "Dev 10"
>     |__ Port 7: Dev 10, If 0, Class=Vendor Specific Class, Driver=option, 480M
> 
> Signed-off-by: Slark Xiao <slark_xiao@163.com>
> ---
>  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 039450069ca4..c275f489c1cc 100644
> --- a/drivers/usb/serial/option.c
> +++ b/drivers/usb/serial/option.c
> @@ -2068,6 +2068,7 @@ static const struct usb_device_id option_ids[] = {
>  	  .driver_info = RSVD(0) | RSVD(1) | RSVD(6) },
>  	{ USB_DEVICE(0x0489, 0xe0b5),						/* Foxconn T77W968 ESIM */
>  	  .driver_info = RSVD(0) | RSVD(1) | RSVD(6) },
> +	{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x901d) },				/* Foxconn T77W175 PCIE+USB mode*/
>  	{ USB_DEVICE(0x1508, 0x1001),						/* Fibocom NL668 (IOT version) */
>  	  .driver_info = RSVD(4) | RSVD(5) | RSVD(6) },
>  	{ USB_DEVICE(0x2cb7, 0x0104),						/* Fibocom NL678 series */
> -- 
> 2.25.1
> 
> 

Hi Slark,

since this entry uses the Qualcomm USB VID it would be a good idea to make
the option driver only bind to the DIAG interface in case other UE vendors
have the ADB interface provided by this composition enabled:

$ sed 30q 901D
#!/bin/sh
#
# Copyright (c) 2014,2017-2018, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#     * Redistributions of source code must retain the above copyright
#       notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above copyright
#       notice, this list of conditions and the following disclaimer in the
#       documentation and/or other materials provided with the distribution.
#     * Neither the name of The Linux Foundation nor the names of its
#       contributors may be used to endorse or promote products derived from
#       this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE DISCLAIMED.  IN NO
# EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# DESCRIPTION: DIAG + ADB

echo "Switching to composition number 0x901D"  > /dev/kmsg


[Ideally these compositions would also be available via kernel.org and/or
 codeaura.org but so far I have been unable to find them there.]

Regards,
Reinhard

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re:Re: [PATCH] [V2,1/1]USB: serial: option: add Foxconn T77W175 composition 0x901d
  2021-08-16  9:04 ` Reinhard Speyerer
@ 2021-08-16  9:17   ` Slark Xiao
  2021-08-16  9:20     ` Greg KH
  2021-08-16 15:47     ` Reinhard Speyerer
  0 siblings, 2 replies; 10+ messages in thread
From: Slark Xiao @ 2021-08-16  9:17 UTC (permalink / raw)
  To: Reinhard Speyerer; +Cc: johan, gregkh, linux-usb, linux-kernel

















At 2021-08-16 17:04:00, "Reinhard Speyerer" <rspmn@arcor.de> wrote:
>On Mon, Aug 16, 2021 at 11:54:04AM +0800, Slark Xiao wrote:
>> Foxconn SDX55 T77W175 device is working in PCIe mode normally.
>> You can find the PCIe support in drivers/bus/mhi/pci_generic.c file.
>> But in some scenario, we need to capture the memory dump once it crashed.
>> So a diag port under USB driver is needed.
>> 
>> Only interface 0 is used:
>> jbd@jbd-ThinkPad-P1-Gen-4:~$ lsusb | grep 05c6
>> Bus 003 Device 010: ID 05c6:901d Qualcomm, Inc. Generic Mobile Broadband Adapter
>> jbd@jbd-ThinkPad-P1-Gen-4:~$ lsusb -t | grep "Dev 10"
>>     |__ Port 7: Dev 10, If 0, Class=Vendor Specific Class, Driver=option, 480M
>> 
>> Signed-off-by: Slark Xiao <slark_xiao@163.com>
>> ---
>>  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 039450069ca4..c275f489c1cc 100644
>> --- a/drivers/usb/serial/option.c
>> +++ b/drivers/usb/serial/option.c
>> @@ -2068,6 +2068,7 @@ static const struct usb_device_id option_ids[] = {
>>  	  .driver_info = RSVD(0) | RSVD(1) | RSVD(6) },
>>  	{ USB_DEVICE(0x0489, 0xe0b5),						/* Foxconn T77W968 ESIM */
>>  	  .driver_info = RSVD(0) | RSVD(1) | RSVD(6) },
>> +	{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x901d) },				/* Foxconn T77W175 PCIE+USB mode*/
>>  	{ USB_DEVICE(0x1508, 0x1001),						/* Fibocom NL668 (IOT version) */
>>  	  .driver_info = RSVD(4) | RSVD(5) | RSVD(6) },
>>  	{ USB_DEVICE(0x2cb7, 0x0104),						/* Fibocom NL678 series */
>> -- 
>> 2.25.1
>> 
>> 
>
>Hi Slark,
>
>since this entry uses the Qualcomm USB VID it would be a good idea to make
>the option driver only bind to the DIAG interface in case other UE vendors
>have the ADB interface provided by this composition enabled:
>
>$ sed 30q 901D
>#!/bin/sh
>#
># Copyright (c) 2014,2017-2018, The Linux Foundation. All rights reserved.
>#
># Redistribution and use in source and binary forms, with or without
># modification, are permitted provided that the following conditions are met:
>#     * Redistributions of source code must retain the above copyright
>#       notice, this list of conditions and the following disclaimer.
>#     * Redistributions in binary form must reproduce the above copyright
>#       notice, this list of conditions and the following disclaimer in the
>#       documentation and/or other materials provided with the distribution.
>#     * Neither the name of The Linux Foundation nor the names of its
>#       contributors may be used to endorse or promote products derived from
>#       this software without specific prior written permission.
>#
># THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
># INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
># FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE DISCLAIMED.  IN NO
># EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
># INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
># (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
># LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
># ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
># (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
># SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>
># DESCRIPTION: DIAG + ADB
>
>echo "Switching to composition number 0x901D"  > /dev/kmsg
>
>
>[Ideally these compositions would also be available via kernel.org and/or
> codeaura.org but so far I have been unable to find them there.]
>
>Regards,
>Reinhard

Hi Reinhard,
  So should I use USB_DEVICE_INTERFACE_NUMBER(QUALCOMM_VENDOR_ID, 0x901d, 0x00) to bind Diag port only?

Thanks

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Re: [PATCH] [V2,1/1]USB: serial: option: add Foxconn T77W175 composition 0x901d
  2021-08-16  9:17   ` Slark Xiao
@ 2021-08-16  9:20     ` Greg KH
  2021-08-16  9:25       ` Slark Xiao
  2021-08-16 15:47     ` Reinhard Speyerer
  1 sibling, 1 reply; 10+ messages in thread
From: Greg KH @ 2021-08-16  9:20 UTC (permalink / raw)
  To: Slark Xiao; +Cc: Reinhard Speyerer, johan, linux-usb, linux-kernel

On Mon, Aug 16, 2021 at 05:17:00PM +0800, Slark Xiao wrote:
>   So should I use USB_DEVICE_INTERFACE_NUMBER(QUALCOMM_VENDOR_ID, 0x901d, 0x00) to bind Diag port only?

Why is this device using the QUALCOMM vendor id anyway?  Is this allowed
by Qualcomm?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re:Re: Re: [PATCH] [V2,1/1]USB: serial: option: add Foxconn T77W175 composition 0x901d
  2021-08-16  9:20     ` Greg KH
@ 2021-08-16  9:25       ` Slark Xiao
  2021-08-16 11:17         ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Slark Xiao @ 2021-08-16  9:25 UTC (permalink / raw)
  To: Greg KH; +Cc: Reinhard Speyerer, johan, linux-usb, linux-kernel

















At 2021-08-16 17:20:59, "Greg KH" <gregkh@linuxfoundation.org> wrote:
>On Mon, Aug 16, 2021 at 05:17:00PM +0800, Slark Xiao wrote:
>>   So should I use USB_DEVICE_INTERFACE_NUMBER(QUALCOMM_VENDOR_ID, 0x901d, 0x00) to bind Diag port only?
>
>Why is this device using the QUALCOMM vendor id anyway?  Is this allowed
>by Qualcomm?
>
>thanks,
>
>greg k-h

Hi Greg,
  Our product are designed based on Qualcomm SDX55 platform. So it still support Qualcomm vendor ID.
  I think there is no infringement about this ID combo.
 
Thanks

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Re: Re: [PATCH] [V2,1/1]USB: serial: option: add Foxconn T77W175 composition 0x901d
  2021-08-16  9:25       ` Slark Xiao
@ 2021-08-16 11:17         ` Greg KH
  2021-08-17  2:27           ` Slark Xiao
  0 siblings, 1 reply; 10+ messages in thread
From: Greg KH @ 2021-08-16 11:17 UTC (permalink / raw)
  To: Slark Xiao; +Cc: Reinhard Speyerer, johan, linux-usb, linux-kernel

On Mon, Aug 16, 2021 at 05:25:20PM +0800, Slark Xiao wrote:
> At 2021-08-16 17:20:59, "Greg KH" <gregkh@linuxfoundation.org> wrote:
> >On Mon, Aug 16, 2021 at 05:17:00PM +0800, Slark Xiao wrote:
> >>   So should I use USB_DEVICE_INTERFACE_NUMBER(QUALCOMM_VENDOR_ID, 0x901d, 0x00) to bind Diag port only?
> >
> >Why is this device using the QUALCOMM vendor id anyway?  Is this allowed
> >by Qualcomm?
> >
> >thanks,
> >
> >greg k-h
> 
> Hi Greg,
>   Our product are designed based on Qualcomm SDX55 platform. So it still support Qualcomm vendor ID.
>   I think there is no infringement about this ID combo.

Do you have permission from Qualcomm to use their vendor id?  I know
some vendors get very upset about this...

Why not use your own vendor id?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Re: [PATCH] [V2,1/1]USB: serial: option: add Foxconn T77W175 composition 0x901d
  2021-08-16  9:17   ` Slark Xiao
  2021-08-16  9:20     ` Greg KH
@ 2021-08-16 15:47     ` Reinhard Speyerer
  1 sibling, 0 replies; 10+ messages in thread
From: Reinhard Speyerer @ 2021-08-16 15:47 UTC (permalink / raw)
  To: Slark Xiao; +Cc: johan, gregkh, linux-usb, linux-kernel

On Mon, Aug 16, 2021 at 05:17:00PM +0800, Slark Xiao wrote:
> 
> At 2021-08-16 17:04:00, "Reinhard Speyerer" <rspmn@arcor.de> wrote:
> >On Mon, Aug 16, 2021 at 11:54:04AM +0800, Slark Xiao wrote:
> >> Foxconn SDX55 T77W175 device is working in PCIe mode normally.
> >> You can find the PCIe support in drivers/bus/mhi/pci_generic.c file.
> >> But in some scenario, we need to capture the memory dump once it crashed.
> >> So a diag port under USB driver is needed.
> >> 
> >> Only interface 0 is used:
> >> jbd@jbd-ThinkPad-P1-Gen-4:~$ lsusb | grep 05c6
> >> Bus 003 Device 010: ID 05c6:901d Qualcomm, Inc. Generic Mobile Broadband Adapter
> >> jbd@jbd-ThinkPad-P1-Gen-4:~$ lsusb -t | grep "Dev 10"
> >>     |__ Port 7: Dev 10, If 0, Class=Vendor Specific Class, Driver=option, 480M
> >> 
> >> Signed-off-by: Slark Xiao <slark_xiao@163.com>
> >> ---
> >>  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 039450069ca4..c275f489c1cc 100644
> >> --- a/drivers/usb/serial/option.c
> >> +++ b/drivers/usb/serial/option.c
> >> @@ -2068,6 +2068,7 @@ static const struct usb_device_id option_ids[] = {
> >>  	  .driver_info = RSVD(0) | RSVD(1) | RSVD(6) },
> >>  	{ USB_DEVICE(0x0489, 0xe0b5),						/* Foxconn T77W968 ESIM */
> >>  	  .driver_info = RSVD(0) | RSVD(1) | RSVD(6) },
> >> +	{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x901d) },				/* Foxconn T77W175 PCIE+USB mode*/
> >>  	{ USB_DEVICE(0x1508, 0x1001),						/* Fibocom NL668 (IOT version) */
> >>  	  .driver_info = RSVD(4) | RSVD(5) | RSVD(6) },
> >>  	{ USB_DEVICE(0x2cb7, 0x0104),						/* Fibocom NL678 series */
> >> -- 
> >> 2.25.1
> >> 
> >> 
> >
> >Hi Slark,
> >
> >since this entry uses the Qualcomm USB VID it would be a good idea to make
> >the option driver only bind to the DIAG interface in case other UE vendors
> >have the ADB interface provided by this composition enabled:
> > [...]
> 
> Hi Reinhard,
>   So should I use USB_DEVICE_INTERFACE_NUMBER(QUALCOMM_VENDOR_ID, 0x901d, 0x00) to bind Diag port only?
> 
> Thanks

Hi Slark,

I think this would the preferred approach.

I'll let Johan advise on the preferred position of the new entry in the
device id table.

Regards,
Reinhard

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re:Re: Re: Re: [PATCH] [V2,1/1]USB: serial: option: add Foxconn T77W175 composition 0x901d
  2021-08-16 11:17         ` Greg KH
@ 2021-08-17  2:27           ` Slark Xiao
  2021-08-17  6:33             ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Slark Xiao @ 2021-08-17  2:27 UTC (permalink / raw)
  To: Greg KH; +Cc: Reinhard Speyerer, johan, linux-usb, linux-kernel

















At 2021-08-16 19:17:11, "Greg KH" <gregkh@linuxfoundation.org> wrote:
>On Mon, Aug 16, 2021 at 05:25:20PM +0800, Slark Xiao wrote:
>> At 2021-08-16 17:20:59, "Greg KH" <gregkh@linuxfoundation.org> wrote:
>> >On Mon, Aug 16, 2021 at 05:17:00PM +0800, Slark Xiao wrote:
>> >>   So should I use USB_DEVICE_INTERFACE_NUMBER(QUALCOMM_VENDOR_ID, 0x901d, 0x00) to bind Diag port only?
>> >
>> >Why is this device using the QUALCOMM vendor id anyway?  Is this allowed
>> >by Qualcomm?
>> >
>> >thanks,
>> >
>> >greg k-h
>> 
>> Hi Greg,
>>   Our product are designed based on Qualcomm SDX55 platform. So it still support Qualcomm vendor ID.
>>   I think there is no infringement about this ID combo.
>
>Do you have permission from Qualcomm to use their vendor id?  I know
>some vendors get very upset about this...
>
>Why not use your own vendor id?
>
>thanks,
>
>greg k-h

Hi Greg,
   As Qualcomm mainly provide service to their customer, like Samsung, Apple, Huawei, Quectel, Foxconn, Sierra and so on, so I believe all available VID/PIDs are allowed to use. 
   I also checked who is using Qualcomm's VID in the whole kernel, and I found only some old platform (Gobi 1K,2K,3K which don't do any update for almost more than 10 years) in qcserial.c and ZTE, SIMcom, Quectel in option.c are using this VID. Seems Qualcomm won't do this update in the kernel side by themselves(let's say some new PID, 901x,902x,903x,904x,905x...90Fx, and 91xx). 
   About the question why not use our own VID, because this PCIE+USB mode is for debug purpose. We need to keep a common debug settings for both Linux and Windows platform, also for all our customers like Lenovo, Dell, HP, Telit. 
   Hope you can understand that.

Thanks
Slark

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Re: Re: Re: [PATCH] [V2,1/1]USB: serial: option: add Foxconn T77W175 composition 0x901d
  2021-08-17  2:27           ` Slark Xiao
@ 2021-08-17  6:33             ` Greg KH
  2021-08-17  6:51               ` Slark Xiao
  0 siblings, 1 reply; 10+ messages in thread
From: Greg KH @ 2021-08-17  6:33 UTC (permalink / raw)
  To: Slark Xiao; +Cc: Reinhard Speyerer, johan, linux-usb, linux-kernel

On Tue, Aug 17, 2021 at 10:27:05AM +0800, Slark Xiao wrote:
> 
> 

<blank lines snipped, please fix your email client...>

>> At 2021-08-16 19:17:11, "Greg KH" <gregkh@linuxfoundation.org> wrote:
> >On Mon, Aug 16, 2021 at 05:25:20PM +0800, Slark Xiao wrote:
> >> At 2021-08-16 17:20:59, "Greg KH" <gregkh@linuxfoundation.org> wrote:
> >> >On Mon, Aug 16, 2021 at 05:17:00PM +0800, Slark Xiao wrote:
> >> >>   So should I use USB_DEVICE_INTERFACE_NUMBER(QUALCOMM_VENDOR_ID, 0x901d, 0x00) to bind Diag port only?
> >> >
> >> >Why is this device using the QUALCOMM vendor id anyway?  Is this allowed
> >> >by Qualcomm?
> >> >
> >> >thanks,
> >> >
> >> >greg k-h
> >> 
> >> Hi Greg,
> >>   Our product are designed based on Qualcomm SDX55 platform. So it still support Qualcomm vendor ID.
> >>   I think there is no infringement about this ID combo.
> >
> >Do you have permission from Qualcomm to use their vendor id?  I know
> >some vendors get very upset about this...
> >
> >Why not use your own vendor id?
> >
> >thanks,
> >
> >greg k-h
> 
> Hi Greg,
>    As Qualcomm mainly provide service to their customer, like Samsung, Apple, Huawei, Quectel, Foxconn, Sierra and so on, so I believe all available VID/PIDs are allowed to use. 

That is not how USB VIDs work, sorry.  Please get approval from the
company whose VID you wish to use, otherwise they will be using it
themselves for their own devices, and you will have a collision.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re:Re: Re: Re: Re: [PATCH] [V2,1/1]USB: serial: option: add Foxconn T77W175 composition 0x901d
  2021-08-17  6:33             ` Greg KH
@ 2021-08-17  6:51               ` Slark Xiao
  0 siblings, 0 replies; 10+ messages in thread
From: Slark Xiao @ 2021-08-17  6:51 UTC (permalink / raw)
  To: Greg KH; +Cc: Reinhard Speyerer, johan, linux-usb, linux-kernel

















At 2021-08-17 14:33:48, "Greg KH" <gregkh@linuxfoundation.org> wrote:
>On Tue, Aug 17, 2021 at 10:27:05AM +0800, Slark Xiao wrote:
>> 
>> 
>
><blank lines snipped, please fix your email client...>
>
>>> At 2021-08-16 19:17:11, "Greg KH" <gregkh@linuxfoundation.org> wrote:
>> >On Mon, Aug 16, 2021 at 05:25:20PM +0800, Slark Xiao wrote:
>> >> At 2021-08-16 17:20:59, "Greg KH" <gregkh@linuxfoundation.org> wrote:
>> >> >On Mon, Aug 16, 2021 at 05:17:00PM +0800, Slark Xiao wrote:
>> >> >>   So should I use USB_DEVICE_INTERFACE_NUMBER(QUALCOMM_VENDOR_ID, 0x901d, 0x00) to bind Diag port only?
>> >> >
>> >> >Why is this device using the QUALCOMM vendor id anyway?  Is this allowed
>> >> >by Qualcomm?
>> >> >
>> >> >thanks,
>> >> >
>> >> >greg k-h
>> >> 
>> >> Hi Greg,
>> >>   Our product are designed based on Qualcomm SDX55 platform. So it still support Qualcomm vendor ID.
>> >>   I think there is no infringement about this ID combo.
>> >
>> >Do you have permission from Qualcomm to use their vendor id?  I know
>> >some vendors get very upset about this...
>> >
>> >Why not use your own vendor id?
>> >
>> >thanks,
>> >
>> >greg k-h
>> 
>> Hi Greg,
>>    As Qualcomm mainly provide service to their customer, like Samsung, Apple, Huawei, Quectel, Foxconn, Sierra and so on, so I believe all available VID/PIDs are allowed to use. 
>
>That is not how USB VIDs work, sorry.  Please get approval from the
>company whose VID you wish to use, otherwise they will be using it
>themselves for their own devices, and you will have a collision.
>
>thanks,
>
>greg k-h

Hi Greg,
   I am checking this with Qualcomm side now. I will update the result once I get it.
  Thank you for your advice.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-08-17  6:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-16  3:54 [PATCH] [V2,1/1]USB: serial: option: add Foxconn T77W175 composition 0x901d Slark Xiao
2021-08-16  9:04 ` Reinhard Speyerer
2021-08-16  9:17   ` Slark Xiao
2021-08-16  9:20     ` Greg KH
2021-08-16  9:25       ` Slark Xiao
2021-08-16 11:17         ` Greg KH
2021-08-17  2:27           ` Slark Xiao
2021-08-17  6:33             ` Greg KH
2021-08-17  6:51               ` Slark Xiao
2021-08-16 15:47     ` Reinhard Speyerer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).