Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp146730ima; Fri, 1 Feb 2019 00:51:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IYeW4UbBtF125+rMMpHU7xOGtw0JdFLMrFu6VrUF6Xw+lF/j21Dt695eQogPmMIbNneK1+9 X-Received: by 2002:a63:f141:: with SMTP id o1mr1423066pgk.134.1549011106182; Fri, 01 Feb 2019 00:51:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549011106; cv=none; d=google.com; s=arc-20160816; b=QDGqPc0nAeuWEAb7cT4cVce3dPSds3LcN7UsDZWrn8CACaxAT/3v2e1FkxuVB35rGN wELRityt5vwpvwBOdE07JO3BPDJGGCG3xQqIyj/dMU09GdL0S14MGmlaVE1CD8s0Qdv2 y3/J0FppDIrma7VdZaON2+Bsv1f2NWZ1HZTmF3ofxvKAk6s1eJR/LmqkFqsLDbvYi5WM 7Tep8P8XgdkcWr0ryJR5zVrJBKUgMjjvKmQq4O31oonS1p2PI/yCiBd6xJemElQMKLzM 3p+S3eEbyDJDGORBZWfM20jhhjxe1ht+DhQtRtEmnEBTqpwWcSQwt1irvsfIXnbPUjoo +j2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ryF7wEYM+8TnYcdpcL53ItqAkETjJcf7kzT/imJeFkI=; b=jkoShomWj+9SXGrjFfAndLCJZQLOouEFoft2TXD33+d6o9BdjqF27sIk5/AnOXlhOy 2sryf7vxoPXkhvb0Pef1RiKatkuV8Xqd3DbesmgRj5ypqNDj1NsYVdHhcw+ErVysn8m7 OTt6lH7yp6OwwMkJHsH35k2da7CTIMW8/gzqHAgLqmH7P0LZ0bJ1sGxWtRobdr1SGMaT 9FJdwCBueAf1123YbEQoQTgAEHJNcA7FR/2os42uFw/SLeSfquTXo99cw+FYY2w9I0Va WIYeqwMQ7Ltx7/JWZO4mxJa6BlRXv4YKZ6afLE+HcAk7azdWoLM9hXVbc+MtCVAdmaQw OU6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=pKNpt8ch; 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 j21si4778628pll.150.2019.02.01.00.51.30; Fri, 01 Feb 2019 00:51:46 -0800 (PST) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=pKNpt8ch; 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 S1729218AbfBAIsj (ORCPT + 99 others); Fri, 1 Feb 2019 03:48:39 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:48488 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729597AbfBAIsi (ORCPT ); Fri, 1 Feb 2019 03:48:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ryF7wEYM+8TnYcdpcL53ItqAkETjJcf7kzT/imJeFkI=; b=pKNpt8ch3VuAp/lHtycoPyxJtu Z76Am5nGRDzsghgCY8qRnw/8FlWusijSVpRzgz8SsWfG4t0HNxftHi5jmIUfoYWaYgKhvGvGvgta5 CfTaDW/UGcdVqryCW2k81UZzHdNt/t6owf5kCDBe7ov2Ud6QSQ3imBRY/r8iPNw5bGkzW7lxLXiyN 2B/C70ZeNkV2GmApvZG2TgWl5kLFadNKz84zxy90MQ186LnxdLEl65DzXJkZu3U2gaezeoV1Vr5hr aYZyMeWg0We0NLbTPje+6wFhleGUPKxWi5Fb2qt7xYdyT0hw0LgObmmH9Cxd/MgjdmFMQMaWU9ZMS 3+5treHw==; Received: from 089144212163.atnat0021.highway.a1.net ([89.144.212.163] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gpUV0-0001Sc-GO; Fri, 01 Feb 2019 08:48:34 +0000 From: Christoph Hellwig To: John Crispin , Vinod Koul , Dmitry Tarnyagin , Nicolas Ferre , Sudip Mukherjee , Felipe Balbi , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, alsa-devel@alsa-project.org Cc: iommu@lists.linux-foundation.org Subject: [PATCH 12/18] fotg210-udc: remove a bogus dma_sync_single_for_device call Date: Fri, 1 Feb 2019 09:47:55 +0100 Message-Id: <20190201084801.10983-13-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190201084801.10983-1-hch@lst.de> References: <20190201084801.10983-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dma_map_single already transfers ownership to the device. Signed-off-by: Christoph Hellwig --- drivers/usb/gadget/udc/fotg210-udc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/usb/gadget/udc/fotg210-udc.c b/drivers/usb/gadget/udc/fotg210-udc.c index bc6abaea907d..fe9cf415f2f1 100644 --- a/drivers/usb/gadget/udc/fotg210-udc.c +++ b/drivers/usb/gadget/udc/fotg210-udc.c @@ -356,10 +356,6 @@ static void fotg210_start_dma(struct fotg210_ep *ep, return; } - dma_sync_single_for_device(NULL, d, length, - ep->dir_in ? DMA_TO_DEVICE : - DMA_FROM_DEVICE); - fotg210_enable_dma(ep, d, length); /* check if dma is done */ -- 2.20.1