Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2672570rwe; Sun, 28 Aug 2022 19:13:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR6MWR0Et3yhL6vBOtmCYITA8TZp/gx1ZoB57AI3UUcIralUcmqNFj5yoDYqDF7C+F12FkS3 X-Received: by 2002:a63:d745:0:b0:429:d263:615d with SMTP id w5-20020a63d745000000b00429d263615dmr12300794pgi.579.1661739239691; Sun, 28 Aug 2022 19:13:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661739239; cv=none; d=google.com; s=arc-20160816; b=QkrAjaTN7dGxvouLd6Otze9Y5jkXnMrrncjoN36QKDN6DlNvtjb8fmiJrpgW4WMgC0 WP+k4BSpN7kIeH5KNcCdncK9ld32IozArt0lCBi+HlS2a4lSK3uAPlqK3Cdd0cZYgN+7 yqiUGz2NszxNbS9xs9JB+qU2Y2EceNwNdzis2eFaKLDeJGashu/VZsf6QE5pvxZQot4H O2cdUMhPAEY2yH+OKYiIJM5uu2CUe4o2V6rzQNG461VROloLNxPd2TLt/wgSgdfG20Vs p2XDngbimVdiuXJqvZiqdYkmF6PJ+Ws1HI0G/tiaoJCAbQjYsIy42LXpf2z2HThsUnQv M7ZA== 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=zaU7k5x7MayH6aYUgkdE6ipFs/GCaprWRtcpVFvvQ28=; b=L9sNhvWpGiWnIw6AvjRLBhrA2K4eUzPaAN5hBZV9uHdFRMm/7DGVDxhlNIiBmFvfGq hJdw4EdsORljSLBjQmu8waDObnpQW1pYCCRnsp3UaUSHdv3XMdPs+vvqNJ3nrsLM4SDH CwFIKJXuim/+bLyBDrehJiSrCiF2KWL4muE3/L2zrehVxojAPlvXmd3Pljj5B4059bpW JkEz4kAijA4bDuLe0Rq83qwJj6TOYVa+xBynPzM2YccQ7gS0by5C8u+PF5K78O7nYrWL xZNhpZgStdLbJyetZeNEevZr87YY4fLEpa92rzfIGu/NVn1ERfHvkthblZycQB3jKEBb E1kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OeufEYIL; 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 f2-20020a056a00228200b0052e444fdf78si8288555pfe.177.2022.08.28.19.13.48; Sun, 28 Aug 2022 19:13:59 -0700 (PDT) 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=OeufEYIL; 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 S229750AbiH2CMR (ORCPT + 99 others); Sun, 28 Aug 2022 22:12:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbiH2CME (ORCPT ); Sun, 28 Aug 2022 22:12:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 420A03C8E6; Sun, 28 Aug 2022 19:12:00 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 8974A60F5B; Mon, 29 Aug 2022 02:11:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBB54C433D6; Mon, 29 Aug 2022 02:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661739102; bh=iPHpnFFFhEmExAFu6fo9NAw9+JDwOLa2mLzrei/+1AI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OeufEYILgSZ9+rs45WPuApZezIEsAyC0p8mdj9GRb2hq5fNUMcnjTZlfbghEJ9tMm EO7RTDUs6fLCaHljlaNO5n6WdRxpE1l7UtRgk9pSQ7+JxkdQp3WOzE5T0PBUQzoOmR WAYX+PVoAm53EEReLyPGvZODE79z2YXl7r0wHAJOOE8uYw9FAsla12+yCWb6Da44IC zkw9PKkNGMvJzP7KPdrLOZlRHKquvYJE+ym+Ei/V18bsHMK+Hoqng3vjMnq+JfDdaD IiOmGWOuI00ZtdhvIB9CpWfIbZJhc6FsWqkdwi5Xl9jYXdIm0ZUeHbixYaxnS5bfEX /4M7haMnzoiJg== Date: Mon, 29 Aug 2022 10:11:35 +0800 From: Peter Chen To: Pawel Laszczak Cc: linux-usb@vger.kernel.org, gregkh@linuxfoundation.org, felipe.balbi@linux.intel.com, rogerq@kernel.org, a-govindraju@ti.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] usb: cdns3: fix issue with rearming ISO OUT endpoint Message-ID: <20220829021135.GA32228@nchen-desktop> References: <20220825062137.5766-1-pawell@cadence.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825062137.5766-1-pawell@cadence.com> 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,T_SCC_BODY_TEXT_LINE 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 22-08-25 08:21:37, Pawel Laszczak wrote: > ISO OUT endpoint is enabled during queuing first usb request > in transfer ring and disabled when TRBERR is reported by controller. > After TRBERR and before next transfer added to TR driver must again > reenable endpoint but does not. > To solve this issue during processing TRBERR event driver must > set the flag EP_UPDATE_EP_TRBADDR in priv_ep->flags field. > > Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver") > cc: > Signed-off-by: Pawel Laszczak Acked-by: Peter Chen > --- > drivers/usb/cdns3/cdns3-gadget.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/cdns3/cdns3-gadget.c b/drivers/usb/cdns3/cdns3-gadget.c > index 682ceba25765..fa8263951e63 100644 > --- a/drivers/usb/cdns3/cdns3-gadget.c > +++ b/drivers/usb/cdns3/cdns3-gadget.c > @@ -1689,6 +1689,7 @@ static int cdns3_check_ep_interrupt_proceed(struct cdns3_endpoint *priv_ep) > ep_cfg &= ~EP_CFG_ENABLE; > writel(ep_cfg, &priv_dev->regs->ep_cfg); > priv_ep->flags &= ~EP_QUIRK_ISO_OUT_EN; > + priv_ep->flags |= EP_UPDATE_EP_TRBADDR; > } > cdns3_transfer_completed(priv_dev, priv_ep); > } else if (!(priv_ep->flags & EP_STALLED) && > -- > 2.25.1 > -- Thanks, Peter Chen