From: Marek Vasut Date: Thu, 24 May 2018 10:32:13 +0200 Subject: [U-Boot] [PATCH 1/4] usb: xhci: Set accurate add context flags when updating hub attributes In-Reply-To: <1527144050-1695-1-git-send-email-bmeng.cn@gmail.com> References: <1527144050-1695-1-git-send-email-bmeng.cn@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/24/2018 08:40 AM, Bin Meng wrote: > If a USB 3.0 hub is plugged into the root port of the xHC, the xHCI > driver will issue a 'Configure Endpoint' command to the xHC for it > to update its internal data structure for this hub device. The hub > attributes are in the slot context so we need tell xHC to update the > slot context by setting the add context flags of the input control > context to only cover the slot context. > > At present the add context flags is or'ed with the slot context bit, > but it should really be accurately set to the slot context, as the > variable that holds the value of the add context flags comes from > whatever was set in the last command execution, which may contain > additional contexts that 'Configure Endpoint' command should not > touch. Some xHC implementations like x86 don't complain such, but > it was observed on Renesas RCar Gen3 platform that the RCar xHC > complains with a 'TRB error' completion codes as the response. > > Reported-by: Marek Vasut > Signed-off-by: Bin Meng > Tested-by: Marek Vasut > Tested-by: Matthias Blankertz Applied all, thanks! -- Best regards, Marek Vasut