Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp75237imu; Sun, 4 Nov 2018 19:17:39 -0800 (PST) X-Google-Smtp-Source: AJdET5caoJDfwvDXddi25CCdFlgUPAUYV7YAVYYZRceC1qivJy6spbQXoQenSkjR/jJfBJGZo40B X-Received: by 2002:a63:6906:: with SMTP id e6mr18310065pgc.144.1541387859358; Sun, 04 Nov 2018 19:17:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541387859; cv=none; d=google.com; s=arc-20160816; b=DwxlVoj7IE07C0ZcOnja9j8c+KtewkPeCW2DVfmTDijNFnDLNaaKskui94IEDzBCoo gil7B4GUDXtJcBgI7iLwZq7lUQM5czwHysYtWx2eYivfv04+dDNqywrCWWrvqMgZsdQn /3/pqYffeqpEeSDTHhbvcJ2GZD85vP0+o3fe9/+wdgR254QsW7UvxOQU1ntAhKedl8Sj YW169qRJnXZXL2F6f/Xo4gznHcQlddCcIj8qviCjVX6gg4YWVgvzh+DFjPGeUj/zRtDN JBDt9faivnUfVTKbI2IfmL1uPWgc/G093z+F7Jh+0Eqoc0/853BW/lDNlPnARF4aTyiP RUSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=+Abqyr0Tlz0dd8ae03r0keXJovqhbjDX9+vNfD+Uzik=; b=WyLmg2VbdqZb6oRaxPnS6Di223ywRlcwOo0scZFk45PT+ne1+kvQAHCsIQk8Hduzpx d3d23Oj6ebEYQ0rTOBBd4OZq182VTUNjkK9CBFwDivnxFcjCMW0UrlZq+p1nG9GhIHk2 sCyMm6IqsqzmFawSiiNULbEWH6fJihifFa/lUwJSx5EaGkSVwiGsGB60KKiJDGBRR01x LCMMwYMCXhaNVS8qD+Eug5xHz/l7LKEk8jVRmuFmDpjvzzZewKFjBWj/xpDk0Tg3ApC0 htIXE6Q8jrONscqzJ8vMcTPbXbCnq5v3ybqgt586BmElb7AHtOPUBEuH0Topl8P4HGVn ImOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BEPL279p; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1-v6si40740007plp.85.2018.11.04.19.17.24; Sun, 04 Nov 2018 19:17:39 -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=pass header.i=@linaro.org header.s=google header.b=BEPL279p; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729040AbeKEMe1 (ORCPT + 99 others); Mon, 5 Nov 2018 07:34:27 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:45890 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728003AbeKEMe0 (ORCPT ); Mon, 5 Nov 2018 07:34:26 -0500 Received: by mail-pf1-f194.google.com with SMTP id p17-v6so3313028pfj.12 for ; Sun, 04 Nov 2018 19:16:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=+Abqyr0Tlz0dd8ae03r0keXJovqhbjDX9+vNfD+Uzik=; b=BEPL279pKdQHOlzlhabGHLAJgREkzorzBOB9kb6szIY6paHzHSz0h2CHZGhZ1ryVk9 DTl8TEFBI37jIonnbqdBYmKVNT5cvSr4pCWEjw46mKvVPyfmDzAZM3H6S7vfuMM0PvCq w4ZUxFOaILNGGi/c6dmoxMCx6+FId1Mwa81D4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+Abqyr0Tlz0dd8ae03r0keXJovqhbjDX9+vNfD+Uzik=; b=cHVI3xGLN6LWJHoHVAAEMvzaQZV+slllxuZ4p9tIwVra9dy4vjp1he223vaZY3BiZ+ 9FSX4VyKbiwJ9+UOOW8VTKn1RIzwYAJNVHgACz6zxvelfg2/BLhjl59d1rSOKK2omMsE ZB0R8ru23Edi9U5d1qlSDSGd1RGMcpZj0qkCRGR1Xuz4mfDm6U1la9gi2Hh8gOcrQdPj hzaqe6MXltJl+EV6xnCKcpgOVe3nS8iXwW+negbmmRrSqOObY8EmLlelrmK8e1/ul9VP /tPMAtrB8BxmvGtNklkcAHd+OsZdo7LO2OpdsH8DejLfkBOhYdPoJqyiz01hA7f1nmE/ JFMg== X-Gm-Message-State: AGRZ1gL7joPAUZ1UHI0OsHY0xvSBqzyQU1lNyUmC4hmn1RQ1A12Zykr8 zBMwPSiDHdsWEfb1MHMz5C/vHw== X-Received: by 2002:a63:ee0e:: with SMTP id e14mr18263487pgi.8.1541387818840; Sun, 04 Nov 2018 19:16:58 -0800 (PST) Received: from ubt.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id f10-v6sm40182773pgp.72.2018.11.04.19.16.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Nov 2018 19:16:57 -0800 (PST) From: Chunyan Zhang To: Ulf Hansson , Adrian Hunter Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Mark Brown , Kishon Vijay Abraham I , Sekhar Nori , Chunyan Zhang Subject: [PATCH RFC 0/3] Add support for using external dma in SDHCI Date: Mon, 5 Nov 2018 11:16:47 +0800 Message-Id: <1541387810-24867-1-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently the generic SDHCI code in the Linux kernel supports the SD standard DMA integrated into the host controller but does not have any support for external DMA controllers implemented using dmaengine meaning that custom code is needed for any systems that use a generic DMA controller with SDHCI which in practice means any SDHCI controller that doesn't have an integrated DMA controller so we should have this as a generic feature. There are already a number of controller specific drivers that have dmaengine code, and some could use sdhci.c actually, but needed to implement mmc_ops->request() in their specific driver for sending command with external dma using dmaengine framework, with this patchset, them will take advantage of the generic support. TI's omap controller is the case as an example. Any comments are very appreciated. Thanks, Chunyan Chunyan Zhang (3): mmc: sdhci: add support for using external DMA devices mmc: sdhci-omap: Add using external dma dt-bindings: sdhci-omap: Add example for using dmaengine .../devicetree/bindings/mmc/sdhci-omap.txt | 7 ++ drivers/mmc/host/Kconfig | 13 ++ drivers/mmc/host/sdhci-omap.c | 7 ++ drivers/mmc/host/sdhci.c | 137 ++++++++++++++++++++- drivers/mmc/host/sdhci.h | 12 ++ 5 files changed, 175 insertions(+), 1 deletion(-) -- 2.7.4