Re: [PATCH v9] USB: serial: cp210x: Add support for GPIOs on CP2108

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

 



On Thu, Apr 29, 2021 at 02:54:09AM +0000, Tung Pham wrote:

> So my questions again are:
> 
>  1) Have you verified that the struct cp210x_quad_port_config above
>     actually matches what the device uses?
> 
>  2) Do you have any documentation of the structures as expected by the
>     device firmware (not your library)?
> 
> 
> Tung Pham: the device return some unused bytes, and manufacturing
> library already discard these byte to assign value to PORT_CONFIG, so
> you don't see padding byte on PORT_CONFIG structure.   you can find
> the structure  of port setting in this code: 
> 
> https://www.silabs.com/documents/public/software/USBXpressHostSDK-Linux.tar
> 
> 
> \USBXpressHostSDK-Linux\USBXpressHostSDK\CP210x\srcpkg\cp210xmanufacturing_1.0.tar\cp210xmanufacturing_1.0\cp210xmanufacturing\cp210xmanufacturing\src\CP2104Device.cpp
> 
> CP210x_STATUS CCP2104Device::GetPortConfig(PORT_CONFIG* PortConfig)

Thanks for confirming.

Johan



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux