[U-Boot] [PATCH 07/16] usb: hub: Translate USB 3.0 hub port status into old version

Marek Vasut marex at denx.de
Mon Jun 26 18:06:24 UTC 2017


On 06/24/2017 03:53 AM, Bin Meng wrote:
> 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.

How does Linux handle this?

-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list