Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5517297pxj; Wed, 23 Jun 2021 03:04:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSGAz68I/o1+ZsMztOXUP7uGnmWO7XsfpMWXgEX0ZiYzrlR+jS04x3Q8WKDtueEgfagc1D X-Received: by 2002:a05:6402:3513:: with SMTP id b19mr11514939edd.379.1624442674902; Wed, 23 Jun 2021 03:04:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624442674; cv=none; d=google.com; s=arc-20160816; b=n67XxIIOTcdWDLbMXHP2zz7C5FoBwj542NJn3ECbKFGTBUS6CEdxy4mFbBHnV0AErL rnJkYSosMzp+vtv6l6tZf+oXPnmNeBgxu7JVem9Hna2PL5q6DxiPRFZGu5XNcghhUkHF xir0dq4Rrhvifl6lrzu69w+6QURLDhM6mQB/zS9WjymzVFgdxyUjgBar6o0NGfXiWdTv ubH6r+F+PdvWJ3ybra+crCi0ZE/1/g2L4VRBtFtFjnlB6QYJlOVIQhfq1QMzb5st9Vqv kGp3wirNaW2+jENqJstlLJgC4nHtc+B0PwLidq75yjdsaUVGDpBQyw23iRcC8reIIWJ9 vewA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BOGQaAzy9ViUs8VdnH/pCPNRrcpFyuwu3Am2Qb5HB2o=; b=tyWpBJ2NsZe1q4Bb9qvBy7m7pmcYOxYTKX7Pa1jnvn6ZxZwsIHddupqM7RC2AL31J6 OmlLtnR5aNK+bOgymYh8VdObbAX56fq7xGUH5qz9pZ1qn8DjtcvKC2LuyhCSfjaHYe0E CqDU9PAt+aRi/P6uuOtv5in68pd1cS0xZcXGRBFyHGYPkPHC1obTTA+fY/9DkS/WNemG hh+LOet6TEp0DjUzufvM9JzzQaRBbnmuxxHQ/B7rekbDysVy6aiGo/wljNf8OVwFoH9A TGli/bC7ToLhyKlrF5/qTemgn+NhMqsvzUNKHtNnwYJcJTBvuPKen0Q2sT6PeTZ7NmPc G55g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=IAR2rlHn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l7si26488741edk.216.2021.06.23.03.04.12; Wed, 23 Jun 2021 03:04:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=IAR2rlHn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230229AbhFWKFY (ORCPT + 99 others); Wed, 23 Jun 2021 06:05:24 -0400 Received: from www.zeus03.de ([194.117.254.33]:52132 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230083AbhFWKFX (ORCPT ); Wed, 23 Jun 2021 06:05:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=k1; bh=XPrfcgwTlWv7hKIBZVC49IllNoi E8aL74vnq4wCcUak=; b=IAR2rlHnHrFtxoEJWB9tU0vfRvb0+JviGXAqDZZ8u4d LPUOqn1y9eYdqb4zz4ilcLeof/O4FzunFsR0k7eIxD3boVHP2owM/7h1+TmOezwq /mNRxRPMtwPvKaVM3wCxuWcpRfkq0bpP9ecRvlUzSNWsM11oCVaWv5rJksZXouJo = Received: (qmail 2553713 invoked from network); 23 Jun 2021 12:03:05 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 23 Jun 2021 12:03:05 +0200 X-UD-Smtp-Session: l3s3148p1@5f44A2zFIqogARa4RfhaAavnjlTTqzSz From: Wolfram Sang To: linux-usb@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda , Wolfram Sang , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH RFC] usb: renesas_usbhs: fifo: : use proper DMAENGINE API for termination Date: Wed, 23 Jun 2021 12:03:04 +0200 Message-Id: <20210623100304.3697-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dmaengine_terminate_all() is deprecated in favor of explicitly saying if it should be sync or async. Here, we want dmaengine_terminate_sync() because there is no other synchronization code in the driver to handle an async case. Signed-off-by: Wolfram Sang --- Shimoda-san, can you please double check if this works with the additional locking in this function? Thank you! drivers/usb/renesas_usbhs/fifo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/renesas_usbhs/fifo.c b/drivers/usb/renesas_usbhs/fifo.c index b5e7991dc7d9..6176f2325f03 100644 --- a/drivers/usb/renesas_usbhs/fifo.c +++ b/drivers/usb/renesas_usbhs/fifo.c @@ -121,7 +121,7 @@ struct usbhs_pkt *usbhs_pkt_pop(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt) if (fifo) chan = usbhsf_dma_chan_get(fifo, pkt); if (chan) { - dmaengine_terminate_all(chan); + dmaengine_terminate_sync(chan); usbhsf_dma_unmap(pkt); } -- 2.30.2