Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5152002ybi; Tue, 4 Jun 2019 02:02:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYDEm3k1q2WanKvD+V39foyVdKsvmIj0lHoNiLuvwLwm+2rq9BEZt63FI2tcPupVm3RfSK X-Received: by 2002:a63:fb02:: with SMTP id o2mr33741220pgh.357.1559638929555; Tue, 04 Jun 2019 02:02:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559638929; cv=none; d=google.com; s=arc-20160816; b=JgEQ6EXZGSa2pY2Mdf7v6chXfjFVgbSQQU+G5/YrlhL7Ib1N3QYVoUP8PqkKBicf03 VTlYKEwnVvbCySnSHOnHUmi8NOn1UPXo4m96/td9C8gTzpMExFAwQM/eCEg1AYNnN186 pgfRdIFkoBO1i7T38HH1Z5CCMoII4jqq6FYWrfZSbNRDHPqx/n/4XzDGkBcjk7q2uZAf HyhSk0ndlQZYG7rTqHIUasHGEhYNp6peqoauxfoWO0yQ+RlWt3p10jpVo73sqY2EbCvx NE6nt7RulUfp2DSc30GSan7I4WdAXf66w3aeKNIO9JKTn/mPsiA/5WhikEqDyL/D6ncZ qBTQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=prbX4/vGsThZ5SHGH0J317sAC8tdz5EOkEtOjvRhV/o=; b=DjsQogeDPoFPlOxsJoPp0tqFkCySQego1sKqd4WA5ztiID8x1LYWamcSUCXLuEDh2B NhQK3UgJWu3a+UDsyPn1/Q+HnhTBW+dy51B1AHRlNgAgzAHPdfxLIc8B7/1ZgVQRZeGw wNhDsvBlkGs8h2UV9YHak+yqHGvv2541l1NYHfcRHIsPJReq4ejWG/zQChUy0ugPL0gX XpLnzOl3cq/0Gn0Eblfxn0za3CvdKGllfR/oRD3t4QG+nL/iW9A8w5cb7xK5iyh1hWvd B1UcMxjZpwp/aZV4j58l9KqmJv735/Vz93wDhRNehHxTn4JeZuZdc1cppCjSoBS7Covi Ui4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GgEO2+cN; 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 y135si24728500pfc.114.2019.06.04.02.01.51; Tue, 04 Jun 2019 02:02:09 -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=GgEO2+cN; 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 S1727048AbfFDI76 (ORCPT + 99 others); Tue, 4 Jun 2019 04:59:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:35666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726809AbfFDI76 (ORCPT ); Tue, 4 Jun 2019 04:59:58 -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 46FCF2404B; Tue, 4 Jun 2019 08:59:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559638797; bh=QeWEOfvvFgd6D5xz67dJiwIAbjDuXSoQfBcQfqCx6vw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GgEO2+cNZkyKCAwZi4LKgJM6Ldf1AnZDfToPs6lQHtApD4dbm+htN3/5F5fu6p1qG 0DtrLMsX/FhL4V0md2kS1IyHzxWUeoE39HEFzfTfobE2y0OOK4abvT9DnzZ54Ya/nZ 9wC0Ivn1Sq0ttlnzEZdWyGKCRMxvBh146YOL7IVk= Date: Tue, 4 Jun 2019 10:59:55 +0200 From: Greg KH To: Jim Lin Cc: stern@rowland.harvard.edu, mathias.nyman@intel.com, 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: <20190604085955.GA2855@kroah.com> References: <1559559224-9845-1-git-send-email-jilin@nvidia.com> <20190603122303.GA16267@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Tue, Jun 04, 2019 at 04:53:54PM +0800, Jim Lin wrote: > > > On 2019年06月03日 20:23, Greg KH wrote: > > 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? > Didn't get response in 2 or 3 days. > Will be more patient next time. Please do, only resend if you do not get a response after 2 weeks. thanks, greg k-h