Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4082167ybi; Mon, 3 Jun 2019 05:30:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqypuCKscoiQR8VXdaHzt6heQNxVcAVTfoFzWKktQZrRc7a147FYFJBL2aGe9Zf8KqJwxuCf X-Received: by 2002:a17:90a:b00b:: with SMTP id x11mr678985pjq.120.1559565038208; Mon, 03 Jun 2019 05:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559565038; cv=none; d=google.com; s=arc-20160816; b=FM9EbwhltO9y2sOkwXUTs781I3ncKDmGzRFceJ4Yf8vw4de2yYjzH83bc2RaXGNr92 ggfdzZajocVjy7eWGHD36/ERClxDag/Tj6NJmbZiXIeSkJ2Vh8sSeE+uUnGOI2yKkBD1 97R1YM6oWiQfE14PkGUDyxWGL2ABimJO5i8xI23wfRuqlkt9hMDeTFUatV4Af1o/9RjN TxaRWI+P+/57U83r+tYkn66ELz0m45gprvoqTk7+6URvlMzXRE9X9xqVX8NfvOZKXgls bUd3vq9ztGhCSISzursxeMyNOMMl7JB723v33tuqk9gVzca5+w6d3ctui0py3M30X/lQ ZQIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XcCra1KA8zOKrLk1calJEFs7DmyskCGNQzbRDLz+yHs=; b=D/yWCKHOsdRuIAjfRxGsWhu/cdweIrr+FUtMyw/TS7Mx3BurAhj/2AQddgyO4grx0B JiSbcjUJlTvBbrr6KtWPvE8z1uu2k23mLqwyihTW49D8XqIaGtdtwZJLVs4lOkJOObdY 98mdyciQejWzTYK9+Gf1THv33HsIgx03kV/MpFr2A40Jv37D2E+uxBziFGk/ER70O4o2 jB8WmZxhrkTn38bO22jFQDohSZexhNbAmcG99T1GIloVb9u/CzI7XhGJrJGqOg131SnA 2pa6uE0nuOF+I0B6hRiDQDnG24mxStDroqmNh8L/AALm7Z02CxEfgQZYvpNAq1CPrmGA exlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XfYhRn1J; 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 m6si17641074pgq.275.2019.06.03.05.30.20; Mon, 03 Jun 2019 05:30:38 -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; dkim=pass header.i=@kernel.org header.s=default header.b=XfYhRn1J; 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 S1726996AbfFCMXG (ORCPT + 99 others); Mon, 3 Jun 2019 08:23:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:57156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbfFCMXG (ORCPT ); Mon, 3 Jun 2019 08:23:06 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ED3CB27D77; Mon, 3 Jun 2019 12:23:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559564585; bh=JUpzLa7o+gjfbaXzaqNHUDC0SKjhj6jOWbWu5myQmaM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XfYhRn1JfzWsBVGa/xKOV1EHw5Uj9YPVbOaWR2lXReNjVmjYIF4M1POmpIHGA2N7s U/IBHx+WvGwzHhciZPN+t+eaxXGgVuhXGLnN9cxghHVyaIuAnmW+9hcb7fhYdYT2ID P/0Eg328GEnIMRAnDqyVWj8CaFbtebMLfLREdqo8= Date: Mon, 3 Jun 2019 14:23:03 +0200 From: Greg KH To: Jim Lin Cc: mathias.nyman@intel.com, stern@rowland.harvard.edu, kai.heng.feng@canonical.com, drinkcat@chromium.org, Thinh.Nguyen@synopsys.com, nsaenzjulienne@suse.de, jflat@chromium.org, malat@debian.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v11 0/2] usb: xhci: Add Clear_TT_Buffer Message-ID: <20190603122303.GA16267@kroah.com> References: <1559559224-9845-1-git-send-email-jilin@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1559559224-9845-1-git-send-email-jilin@nvidia.com> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 03, 2019 at 06:53:42PM +0800, 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. > > Solution is to invoke usb_hub_clear_tt_buffer() to send > Clear_TT_Buffer request to the hub of the device for the following > Set_Interface requests to the device to get ACK successfully. > > The Clear_TT_Buffer request sent to the hub includes the address of > the LS/FS child device in wValue field. usb_hub_clear_tt_buffer() > uses udev->devnum to set the address wValue. This won't work for > devices connected to xHC. > > For other host controllers udev->devnum is the same as the address of > the usb device, chosen and set by usb core. With xHC the controller > hardware assigns the address, and won't be the same as devnum. > > Here we have two patches. > One is to add devaddr in struct usb_device for > usb_hub_clear_tt_buffer() to use. > Another is to invoke usb_hub_clear_tt_buffer() for halt processing. Why did you resend patch series 11? > Signed-off-by: Jim Lin There is nothing to sign off on a 0/X patch :) thanks, greg k-h