Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4763436rwl; Wed, 28 Dec 2022 08:28:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXusRM0D28p9sYFywAOAPr+N+FoF9B0e3QjrJoUmLQiM9dCXi7LNWODiybET8/3PU0/1N+3W X-Received: by 2002:a05:6402:916:b0:461:7d2:c9fc with SMTP id g22-20020a056402091600b0046107d2c9fcmr22369795edz.26.1672244932671; Wed, 28 Dec 2022 08:28:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672244932; cv=none; d=google.com; s=arc-20160816; b=QF3XQmvOekNVtZpvQezH7TLiDWhoTmneTtBR9K26NgLJzvJPqkD1oJhIiV1GGHA+R6 2Kq1JNOeXh2H29V4OoNAAHlzdLyc0E2wzZKYartkAkpyYgwGtlNYPvs+SpB+032eV3u8 9TLW/C5eZ+HxAOJjdDWHaGQ5TwlDUXkqNow0Hf009508k1qTCVU8xX120Jz7qvQrSvax jFW4Eu1+4XLg/pR03bv+0FU7+P4+1MNOv5FfMh6cp82cjM8sRPwW2uNkbdG1rqejnm+W DbMVLPT4QSNVaYY91kYER3XD2LcVOo3TR8A2kwXhlJYCcXM8OZqvXJL4yndXNIK9y+oK P93w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=W0srnzSDpLCW2MFYPRLrx/HKvJkDsXjbV0zmDShkwLE=; b=NvpJvrTB7NR0No/MbmfwUpVyz+JuwE/A0jwYnrhW9NkexQlNNsbR5M8gmeL4MgPDb3 W5ppMA3fp1OOadW9+/PDdhU0poyUVLL5u9SjyaWgZA5tlywhjnBmm/6wJY3vJKcrqAwC 7Mj7NBQcvgaccE/veM4ficR8/zYud6f/SiDiLSTvJFhqy31oNwnXHiMTBZeJxEvrmIII Ps/8cOZ5hyawMDsztURt+4s0YtyzR3yb17aV5uc0FiZHMB/MafpPZTc4LwQmxEo7vbMB 8zGOK3f5WdQDyhprwDFFJMlN2JNZDrCYcj5nfjWT7UzidhFCwoD8n8UtiDsfLiOQ7EN0 3p5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a056402068a00b0048811e4b073si2336997edy.95.2022.12.28.08.28.37; Wed, 28 Dec 2022 08:28:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233141AbiL1PQn (ORCPT + 65 others); Wed, 28 Dec 2022 10:16:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233144AbiL1PQk (ORCPT ); Wed, 28 Dec 2022 10:16:40 -0500 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id A73CC10BF for ; Wed, 28 Dec 2022 07:16:38 -0800 (PST) Received: (qmail 279415 invoked by uid 1000); 28 Dec 2022 10:16:37 -0500 Date: Wed, 28 Dec 2022 10:16:37 -0500 From: Alan Stern To: Oliver Neukum Cc: Wesley Cheng , srinivas.kandagatla@linaro.org, mathias.nyman@intel.com, perex@perex.cz, broonie@kernel.org, lgirdwood@gmail.com, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, gregkh@linuxfoundation.org, Thinh.Nguyen@synopsys.com, bgoswami@quicinc.com, tiwai@suse.com, robh+dt@kernel.org, agross@kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, quic_jackp@quicinc.com, quic_plai@quicinc.com Subject: Re: [RFC PATCH 06/14] usb: core: hcd: Introduce USB HCD APIs for interrupter management Message-ID: References: <20221223233200.26089-1-quic_wcheng@quicinc.com> <20221223233200.26089-7-quic_wcheng@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 28, 2022 at 09:59:03AM +0100, Oliver Neukum wrote: > > > On 27.12.22 22:07, Wesley Cheng wrote: > > > > > Hmmm...maybe I should change the name of the API then to avoid the confusion.? Yes, usb_hcd_flush_endpoint() does ensure that URBs submitted to the EP are stopped.? However, with this offloading concept, we aren't actually submitting URBs from the main processor, so the ep->urb_list will be empty. > > > > This means the usb_hcd_flush_endpoint() API won't actually do anything. ?What we need is to ensure that we send a XHCI stop ep command to the controller. > > That is a concept specific to XHCI, yet you are adding a generic > API. The namin should reflect that. usb_quiesce_endpoint() ? Or even xhci_send_stop_ep_cmd(), which is what the routine is intended to do. Alan Stern