Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6695063imu; Mon, 3 Dec 2018 01:02:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/URPP3jHprXdNWr4GVEjrQ2GY2FnGEuagQH16m98d5PgIyc2k5wCFNgCWq0VR6JIouqD2HX X-Received: by 2002:a17:902:2d81:: with SMTP id p1-v6mr14742699plb.97.1543827727602; Mon, 03 Dec 2018 01:02:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543827727; cv=none; d=google.com; s=arc-20160816; b=Itn1W9sXWfN+lIynC3mjPMQNn4FL8mttqi+GD5KWqWBiGk4a5mVR32hKvfNwxIYR6y Nj8HIeS7NYoHK3nvZcBR4IZZzoYc5ynE1N+3HtZ6749YEulGsMSl4/y1FYCebZ5E9CcD VVeY84T8hWR2qZ/sTm5iUdE/VPgYV1LuiHko6AEbYA0/BqUTyK/E/6KhQABVI4yByPEb plxlP2kHBP7WOn+jf+D2l/CJWeWgMPve4+5e3mvlgVQTl/mbuChbDqr25pH2EEEg26yx TtlkQTyzequN213dl+3QJA7L7KlsUfq0KRrtBLA3hbnO0hVPH/Dz4B7cZ8/xdNAE12+A B4qg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=NSbB7LXLr4DaEi7N4+RxfTyXcDQoXWIoHFD9UUSFEps=; b=XpFhvUmgI+Rxn5Ko4loN0VFBu5eqxmv0i5UCPQxCaYbTXoX/HwBNQmPI2Yy1NAzBVW TKhNuOQcr7h9uQcZiPcQjv4cz2HjHKimkEapyUD68FNMYdJz+AM2E7ThVXDE6pw3z5/S jaKLAxuWed/sPAix4LAG4aodA+C1vAHjZMwAtecad7cxiL1xuIt3HS12UkKh24/Wj723 +C4CA2/y1MAbTl6hEbWIb0RqJtcDrA43ybxEFORQqayTFy873FkdIRPx4oKSBQ6vInJ1 z5FJrP6STnbd4bbF1FKHEIqDrv1Yl84IdR3mLXkakkKrLATn4atqOGUsLMXsj3Sb33z4 pQBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wc5i15zV; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si11711522pgj.373.2018.12.03.01.01.52; Mon, 03 Dec 2018 01:02:07 -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=@ti.com header.s=ti-com-17Q1 header.b=wc5i15zV; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726006AbeLCJBQ (ORCPT + 99 others); Mon, 3 Dec 2018 04:01:16 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:46456 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbeLCJBP (ORCPT ); Mon, 3 Dec 2018 04:01:15 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wB390xUj081434; Mon, 3 Dec 2018 03:00:59 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1543827659; bh=NSbB7LXLr4DaEi7N4+RxfTyXcDQoXWIoHFD9UUSFEps=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=wc5i15zV5GZk4GZBL8wjpr4/htRle7BccVWhcVFM6rB0swAfWkNKzWZDLMSe4Eabr OKurcF05wGa6slWXZ6tVyL0tGCW4/IkZboDPKvzN9e1lEx8FTZHroXE7y3Ie8FglZb hkT5hRBvP+rU87mqEuT44HAShiUum4QvhMGI2OuE= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wB390xg8086995 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 3 Dec 2018 03:00:59 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 3 Dec 2018 03:00:59 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 3 Dec 2018 03:00:59 -0600 Received: from [172.24.190.215] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id wB390tTV031263; Mon, 3 Dec 2018 03:00:56 -0600 Subject: Re: [PATCH V3 1/3] mmc: sdhci: add support for using external DMA devices To: Adrian Hunter , Chunyan Zhang , Ulf Hansson CC: , , Arnd Bergmann , Mark Brown , Kishon Vijay Abraham I , Sekhar Nori , Chunyan Zhang References: <1542007566-9449-2-git-send-email-zhang.chunyan@linaro.org> <1543471664-22856-1-git-send-email-zhang.chunyan@linaro.org> From: Faiz Abbas Message-ID: <42f994b2-ba98-8160-6eef-11eeb8a10f5e@ti.com> Date: Mon, 3 Dec 2018 14:33:45 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chunyan, On 29/11/18 2:53 PM, Adrian Hunter wrote: > On 29/11/18 8:07 AM, Chunyan Zhang wrote: >> Some standard SD host controllers can support both external dma >> controllers as well as ADMA/SDMA in which the SD host controller >> acts as DMA master. TI's omap controller is the case as an example. >> >> Currently the generic SDHCI code supports ADMA/SDMA integrated in >> 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 an external DMA controller with SDHCI. >> >> Signed-off-by: Chunyan Zhang >> --- >> drivers/mmc/host/Kconfig | 14 ++++ >> drivers/mmc/host/sdhci.c | 185 ++++++++++++++++++++++++++++++++++++++++++++++- >> drivers/mmc/host/sdhci.h | 8 ++ >> 3 files changed, 206 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig >> index 1b58739..4183f43 100644 >> --- a/drivers/mmc/host/Kconfig >> +++ b/drivers/mmc/host/Kconfig >> @@ -969,6 +969,7 @@ config MMC_SDHCI_XENON >> config MMC_SDHCI_OMAP >> tristate "TI SDHCI Controller Support">> depends on MMC_SDHCI_PLTFM && OF >> + select MMC_SDHCI_EXTERNAL_DMA if DMA_ENGINE This should be in patch 2. Thanks, Faiz