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

Bin Meng bmeng.cn at gmail.com
Wed Jun 28 08:28:54 UTC 2017


Hi Marek,

On Tue, Jun 27, 2017 at 7:57 AM, Bin Meng <bmeng.cn at gmail.com> wrote:
> Hi Marek,
>
> On Tue, Jun 27, 2017 at 2:06 AM, Marek Vasut <marex at denx.de> wrote:
>> 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?
>
> Looks Linux is doing different parsing depending on hub is 3.0 or 2.0,
> at least for the power bit that I was just looking at. Do you want to
> do that?

OK, I will do something similar like Linux in v2.

Regards,
Bin


More information about the U-Boot mailing list