[U-Boot] [PATCH 07/16] usb: hub: Translate USB 3.0 hub port status into old version
Bin Meng
bmeng.cn at gmail.com
Sat Jun 24 01:53:43 UTC 2017
Hi Marek,
On Sat, Jun 24, 2017 at 1:59 AM, Marek Vasut <marex at denx.de> wrote:
> On 06/23/2017 11:54 AM, Bin Meng wrote:
>> USB 3.0 hub port status field has different bit positions from 2.0
>> hubs. Since U-Boot only understands the old version, translate the
>> new one into the old one.
>
> This is quite hairy. I'd rather see some protocol version agnostic flag
> field rather than patching the wPortStatus and co.
>
I am not sure how do do that in a clean way. If we return the raw 3.0
hub port status data, that means we need change lot of hub codes here
and there to do different parsing.
>> Since we are going to add USB 3.0 hub support, this feature is only
>> available with driver model USB.
>>
>> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
>> ---
>>
>> common/usb_hub.c | 33 ++++++++++++++++++++++++++++++++-
>> 1 file changed, 32 insertions(+), 1 deletion(-)
>>
[snip]
Regards,
Bin
More information about the U-Boot
mailing list