Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2557234yba; Mon, 6 May 2019 08:00:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfxPATfTmHKQUgiCZ/D+cswsvAIL7GvHkUxaYChtpzoTKnOSLgYw8Z1K6DTnmZJMiGjaGW X-Received: by 2002:a62:470e:: with SMTP id u14mr34024231pfa.31.1557154807186; Mon, 06 May 2019 08:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557154807; cv=none; d=google.com; s=arc-20160816; b=rREFBbLxzNwEzDUBwH/GlGsZM5vhNZgew4NOl6efCveODsifsjS3oX1aY4uzclw/tZ LjJAlxdl34vGO4w67LnQ4vXUitnjz3iBuu+u6K7C4JeKTipxnnMJNiAx1uG14wLIpz2L /wyQ/+8RYvMHC6vsMWSn77DihAYt9wvVkoBSSYLf00g6YLToALLRn6g/BeSt2eD1w8D0 /z3xe/jPxbKcSxQwODzFGIoRAaE8L0dKBi+dmotk6q9CVQgi2ZoG/PUCd0f41ap7b+nK rSR8+5ttc/4GCKwofWlFNYw6kOtiQYo/fQhpGeDfDtRqfxa3zW8bag+jHrQbHhyiN4kd dW+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=TjHY6eQr5Fr2LLAhrdRktMLwmdUoUflrGOYK4Cvliwo=; b=HncHYCSrD8+jBwyuisH8MQVQauLpIBDMkzD2clf6nU8zfos401ecGzkcmlxLDzd8ly S7rBmi3pvexwUC4XDvGuqKllaSM+D75+2c1ruCufm3ydniIYtm8maLsEbuRFN86mFwkW X5aVsLVPXOUwZHkAU/wzutmWjAhOFbXO5Xpi/URV6m9CVBWGKJGWDLhq9V9SZRqnUF2f zlXaHGTfYcfO7E/8yVqb/xqvTkefsmejsVvyTrJ4nFeyleegZ4bCIf/EPF/YmARcPRZk nsDtPMuIqys82E38s+zkwkGtkUg58cNnqNd7tkj956j4lcqe58Az2Mmi8ZLlCEwc8vDk yLXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4si14809201pgp.477.2019.05.06.07.59.51; Mon, 06 May 2019 08:00:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728524AbfEFO5u (ORCPT + 99 others); Mon, 6 May 2019 10:57:50 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:52196 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727262AbfEFO5t (ORCPT ); Mon, 6 May 2019 10:57:49 -0400 Received: (qmail 4141 invoked by uid 2102); 6 May 2019 10:57:48 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 6 May 2019 10:57:48 -0400 Date: Mon, 6 May 2019 10:57:48 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Jim Lin cc: gregkh@linuxfoundation.org, , , , , , , , , , , , , Subject: Re: [PATCH v4 1/1] usb: xhci: Add Clear_TT_Buffer In-Reply-To: <1557153262-22972-1-git-send-email-jilin@nvidia.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 6 May 2019, Jim Lin wrote: > USB 2.0 specification chapter 11.17.5 says "as part of endpoint halt > processing for full-/low-speed endpoints connected via a TT, the host > software must use the Clear_TT_Buffer request to the TT to ensure > that the buffer is not in the busy state". > > In our case, a full-speed speaker (ConferenceCam) is behind a high- > speed hub (ConferenceCam Connect), sometimes once we get STALL on a > request we may continue to get STALL with the folllowing requests, > like Set_Interface. > > Here we add Clear_TT_Buffer for the following Set_Interface requests > to get ACK successfully. > > Originally usb_hub_clear_tt_buffer uses urb->dev->devnum as device > address while sending Clear_TT_Buffer command, but this doesn't work > for XHCI. Why doesn't it work for xHCI? Clear-TT-Buffer is part of the USB 2.0 spec; it should work exactly the same for xHCI as for a USB-2.0 host controller. Alan Stern