All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 07/16] usb: hub: Translate USB 3.0 hub port status into old version
Date: Mon, 26 Jun 2017 20:06:24 +0200	[thread overview]
Message-ID: <8486f7fe-b720-3dd7-cfb9-49ef12e913a3@denx.de> (raw)
In-Reply-To: <CAEUhbmXeGY=aEfz_E60EO+VCo=OwodTS7wLOTa=L3DsKGQ7zjQ@mail.gmail.com>

On 06/24/2017 03:53 AM, Bin Meng wrote:
> Hi Marek,
> 
> On Sat, Jun 24, 2017 at 1:59 AM, Marek Vasut <marex@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

  reply	other threads:[~2017-06-26 18:06 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-23  9:54 [U-Boot] [PATCH 00/16] usb: hub: Support USB 3.0 hubs Bin Meng
2017-06-23  9:54 ` [U-Boot] [PATCH 01/16] usb: xhci-pci: Drop non-DM version of xhci-pci driver Bin Meng
2017-06-23 17:51   ` Marek Vasut
2017-07-06  4:49   ` Simon Glass
2017-06-23  9:54 ` [U-Boot] [PATCH 02/16] usb: xhci-pci: Clean up the driver a little bit Bin Meng
2017-06-23 17:52   ` Marek Vasut
2017-07-06  4:49     ` Simon Glass
2017-06-23  9:54 ` [U-Boot] [PATCH 03/16] usb: Remove unnecessary work in usb_setup_descriptor() Bin Meng
2017-06-30  3:49   ` Bin Meng
2017-06-30  6:15     ` Lothar Waßmann
2017-06-30  6:19       ` Bin Meng
2017-07-01 17:29     ` stefan.bruens at rwth-aachen.de
2017-07-03  1:20       ` Bin Meng
2017-06-23  9:54 ` [U-Boot] [PATCH 04/16] usb: hub: Use 'struct usb_hub_device' as hub device's uclass_priv Bin Meng
2017-06-23 17:54   ` Marek Vasut
2017-07-06  4:49   ` Simon Glass
2017-06-23  9:54 ` [U-Boot] [PATCH 05/16] usb: hub: Add a new API to test if a hub device is root hub Bin Meng
2017-06-23 17:55   ` Marek Vasut
2017-06-28  8:27     ` Bin Meng
2017-06-23 17:57   ` Marek Vasut
2017-06-24  1:41     ` Bin Meng
2017-06-26 18:05       ` Marek Vasut
2017-06-23  9:54 ` [U-Boot] [PATCH 06/16] usb: xhci: Change to use usb_hub_is_root_hub() API Bin Meng
2017-07-06  4:49   ` Simon Glass
2017-06-23  9:54 ` [U-Boot] [PATCH 07/16] usb: hub: Translate USB 3.0 hub port status into old version Bin Meng
2017-06-23 17:59   ` Marek Vasut
2017-06-24  1:53     ` Bin Meng
2017-06-26 18:06       ` Marek Vasut [this message]
2017-06-26 23:57         ` Bin Meng
2017-06-28  8:28           ` Bin Meng
2017-06-28 17:25             ` Marek Vasut
2017-07-06  5:56               ` Bin Meng
2017-07-07  3:57                 ` Simon Glass
2017-06-23  9:54 ` [U-Boot] [PATCH 08/16] usb: hub: Support 'set hub depth' request for USB 3.0 hubs Bin Meng
2017-07-06  4:49   ` Simon Glass
2017-06-23  9:54 ` [U-Boot] [PATCH 09/16] usb: xhci: Change xhci_setup_addressable_virt_dev() signature Bin Meng
2017-07-06  4:49   ` Simon Glass
2017-06-23  9:54 ` [U-Boot] [PATCH 10/16] usb: xhci: Program 'route string' in the input slot context Bin Meng
2017-06-23 18:02   ` Marek Vasut
2017-06-24  1:57     ` Bin Meng
2017-06-26 18:07       ` Marek Vasut
2017-06-27  0:01         ` Bin Meng
2017-06-27  5:23           ` Stefan Roese
2017-06-27  8:27             ` Bin Meng
2017-06-27  8:39               ` Marek Vasut
2017-06-28 11:28               ` Stefan Roese
2017-06-28 12:27                 ` Bin Meng
2017-06-28 23:00                   ` Bin Meng
2017-06-29  5:29                     ` Stefan Roese
2017-06-29  5:42                       ` Bin Meng
2017-06-29  5:46                         ` Stefan Roese
2017-06-27  9:31             ` Marek Vasut
2017-06-27 23:22               ` Bin Meng
2017-07-07  3:57               ` Simon Glass
2017-06-23  9:54 ` [U-Boot] [PATCH 11/16] usb: hub: Parse and save TT details from device descriptor Bin Meng
2017-07-06  4:49   ` Simon Glass
2017-06-23  9:54 ` [U-Boot] [PATCH 12/16] dm: usb: Add a new USB controller operation 'update_hub_device' Bin Meng
2017-07-06  4:49   ` Simon Glass
2017-06-23  9:54 ` [U-Boot] [PATCH 13/16] usb: hub: Call usb_update_hub_device() after hub descriptor is fetched Bin Meng
2017-07-06  4:49   ` Simon Glass
2017-06-23  9:54 ` [U-Boot] [PATCH 14/16] usb: xhci: Implement update_hub_device() operation Bin Meng
2017-07-06  4:50   ` Simon Glass
2017-06-23  9:54 ` [U-Boot] [PATCH 15/16] usb: xhci: Correct TT_SLOT and TT_PORT macros Bin Meng
2017-07-06  4:50   ` Simon Glass
2017-06-23  9:54 ` [U-Boot] [PATCH 16/16] usb: xhci: Enable TT to support LS/FS devices behind a HS hub Bin Meng
2017-07-06  4:50   ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8486f7fe-b720-3dd7-cfb9-49ef12e913a3@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.