Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6037556rwl; Mon, 9 Jan 2023 03:27:33 -0800 (PST) X-Google-Smtp-Source: AMrXdXslu1Rn279LFGEbQhaX4fDCinsU9Y6toRnG70sgvOjoemX+yC+MPBWT34ROx3J3ZXkk16PP X-Received: by 2002:a05:6402:456:b0:484:8b49:e117 with SMTP id p22-20020a056402045600b004848b49e117mr44063598edw.3.1673263653175; Mon, 09 Jan 2023 03:27:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673263653; cv=none; d=google.com; s=arc-20160816; b=p0vylxyBste25ncfv4/i1ju9f7L5Yyae/u9+lwHIoJCwdqog+wTNLjuqVz7PrCTimy pOd6+XLNg3i2QoS+QaSl0vpsMaE4ajh2snFuOUIzOo4Q5EnuuBp08WHRJxXhN1nnaqii kwPpLc6rm0pxGUM14NWU468H6Urlhno8S8YMmZEqR75q7NSDEDqJMjiWHBSHlIPp6L/9 kEXwseseJ+gJDA3yWfeu626+qDYDa+lNXwUINmLQyylJq8dIMSv30bA3h6p5Yx+09y+y uM3AC91aWkdUYfBrX43PsUMGiCGKXwW2NWyelQCZOpyIqeTS7hDkYOousKs7+eLRnfnG UJ6w== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=g5im89tYrO0fFxOCi+FT2NVn+bHPElsidejKJsb6FkA=; b=sga7k+cxBfXtIO9nQJKtrJ0ls0SpN5B+ZMUTtx6RybHP+YFBh+HeAym3XSj+YpCrDe DWN3YJExiDSb08ufoZtiMMTbNfIJHu9YI7xCwK+tAHQvc7svqOT1+ZKEmlQh+erbfUQY 20n1oBLZWG2B9gITPb+LZ0N9rw7ID7tFu4zwr72yjpGY0BTPHTM8dPDAACJnTvgH0FDL HZU0XOmauIPsMaFXkS9yQcrtew2Wo6VaM7JG3GB+j0m8b7fBpcEixUxf7XKCBPvYWomQ zYwvstAJjzoUCm9AkfZz0t9alSkc/1UJAlifZ4zzSnp4mB87tB14z6dUjjw6fnpT/X4r xYZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TIf5R75A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a170906654500b0084cbc1f2e96si7041956ejn.303.2023.01.09.03.27.17; Mon, 09 Jan 2023 03:27:33 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TIf5R75A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234386AbjAILMt (ORCPT + 55 others); Mon, 9 Jan 2023 06:12:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234085AbjAILMq (ORCPT ); Mon, 9 Jan 2023 06:12:46 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F3DF14086; Mon, 9 Jan 2023 03:12:46 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CE93FB80DAB; Mon, 9 Jan 2023 11:12:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 090FBC433D2; Mon, 9 Jan 2023 11:12:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673262763; bh=zcY/YpmdAAMLoGt7bn8IulxIoZd2Ehm6U9GhZUL7mCA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TIf5R75AM4F9gRfLd291j/ks3M0JEBdIwcmYkmZO+gGU5r91UhX4Qccn33YVhGhtq 5BW/U8gXl8grRv+KsZ0Ud7BRoXETBRNFJpr22a6KVWXlRjXB/6A0QX2EMIBWB8szyB T2rCGnAMzqFsFgO2pd/mvd+1Jl+d/QJ/eGqPNypRnRiU1J12X+6ydEYV9jXsGGlUa8 a58SBnjB76rg6ceoR+s78YGwLLSJxQZpXc4GSx0Vuut76oG5PhvCRsen9jIJEdZBNS 0Fa0oivxdFUYld7t2c0exaWpdx1C8B9kQlwnfX0HZ+GnAvP6Z37wzQq/kqn76S8mYG GjCcAOvf1ybdg== Date: Mon, 9 Jan 2023 19:12:32 +0800 From: Peter Chen To: Pawel Laszczak Cc: "gregkh@linuxfoundation.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: Re: [PATCH] usb: cdnsp: : add scatter gather support for ISOC endpoint Message-ID: <20230109111232.GB94204@nchen-desktop> References: <20221222090934.145140-1-pawell@cadence.com> <20230102082021.GB40748@nchen-desktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 23-01-09 05:47:49, Pawel Laszczak wrote: > > > > >On 22-12-22 04:09:34, Pawel Laszczak wrote: > >> Patch implements scatter gather support for isochronous endpoint. > >> This fix is forced by 'commit e81e7f9a0eb9 > >> ("usb: gadget: uvc: add scatter gather support")'. > >> After this fix CDNSP driver stop working with UVC class. > >> > >> cc: > >> Fixes: 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence > >> USBSSP DRD Driver") > >> Signed-off-by: Pawel Laszczak > >> --- > >> drivers/usb/cdns3/cdnsp-gadget.c | 2 +- > >> drivers/usb/cdns3/cdnsp-gadget.h | 4 +- > >> drivers/usb/cdns3/cdnsp-ring.c | 110 +++++++++++++++++-------------- > >> 3 files changed, 63 insertions(+), 53 deletions(-) > >> > >> diff --git a/drivers/usb/cdns3/cdnsp-gadget.c > >> b/drivers/usb/cdns3/cdnsp-gadget.c > >> index a8640516c895..e81dca0e62a8 100644 > >> --- a/drivers/usb/cdns3/cdnsp-gadget.c > >> +++ b/drivers/usb/cdns3/cdnsp-gadget.c > >> @@ -382,7 +382,7 @@ int cdnsp_ep_enqueue(struct cdnsp_ep *pep, struct > >cdnsp_request *preq) > >> ret = cdnsp_queue_bulk_tx(pdev, preq); > >> break; > >> case USB_ENDPOINT_XFER_ISOC: > >> - ret = cdnsp_queue_isoc_tx_prepare(pdev, preq); > >> + ret = cdnsp_queue_isoc_tx(pdev, preq); > >> } > >> > >> if (ret) > >> diff --git a/drivers/usb/cdns3/cdnsp-gadget.h > >> b/drivers/usb/cdns3/cdnsp-gadget.h > >> index f740fa6089d8..e1b5801fdddf 100644 > >> --- a/drivers/usb/cdns3/cdnsp-gadget.h > >> +++ b/drivers/usb/cdns3/cdnsp-gadget.h > >> @@ -1532,8 +1532,8 @@ void cdnsp_queue_stop_endpoint(struct > >cdnsp_device *pdev, > >> unsigned int ep_index); > >> int cdnsp_queue_ctrl_tx(struct cdnsp_device *pdev, struct > >> cdnsp_request *preq); int cdnsp_queue_bulk_tx(struct cdnsp_device > >> *pdev, struct cdnsp_request *preq); -int > >cdnsp_queue_isoc_tx_prepare(struct cdnsp_device *pdev, > >> - struct cdnsp_request *preq); > >> +int cdnsp_queue_isoc_tx(struct cdnsp_device *pdev, > >> + struct cdnsp_request *preq); > > > >Why you re-name this function? > > > >Other changes are ok for me. > > > > The function cdnsp_queue_isoc_tx_prepare has been removed and replaced > with cdnsp_queue_isoc_tx. I just add declaration of this function to header file. > Before change cdnsp_queue_isoc_tx was static function. > Reviewed-by: Peter Chen -- Thanks, Peter Chen