Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6784704imu; Mon, 3 Dec 2018 02:47:36 -0800 (PST) X-Google-Smtp-Source: AFSGD/UGF+ddT2BrLF4f3zcmzAx2TU4WWWb668WayuMzPZcDQTXCV78CYJBo0yS58GQFQVtcZwRX X-Received: by 2002:a17:902:9a04:: with SMTP id v4mr15779207plp.34.1543834056009; Mon, 03 Dec 2018 02:47:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543834055; cv=none; d=google.com; s=arc-20160816; b=H36Q81fpPU9ouzMdKJ+xoKUR4sP/PAyoRrZNx+PG41vh9vqdwKJTUIcW7E6v6co6sY XJG57URBNbRY/GcE3LHeyMCcljj0/fNvFEc3jloLpBBrU6lLeyxwthxiwGR3sWnMtpi/ YUWCkkbtjIy9BiQZhxaToEvacr7ZdX90U8vFQkZPQGS2s9MpNMl27u+8qfNDxztFlgh3 KAgatiFMt+9Fk2tN7eQC2h6u1d4GwTM8sf+oSyPdPS/RsNS0iBzUPLFLoZIzTNGqQiWk sjhkt2HN3+tIbNxhzUbGufqFD5753VeUijWSzvB15ikfdoiGyMRqMCP/CWAp3k0KoBn6 yrzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=C4DqEn37SBRsotIrKAm5yynDS6jpvHS3hOUw3P+QwwE=; b=RcKfoFxLlXo/sKBfV5th4bvD/6aYGXxirwRHM51WUfPq+U03fZop4PjjzzwNNrIvoX SOapJkHhCxIO6dO23nYSGjYubbiCBB+mU+sm17s4iugVgCD0QVAb1v3dqvdFUea+OiEu F5EIAG/DBqGi3WHkldQF+3sVrO5SPfFpASTEU78kuYdZ1A/hfotRIuKfea5UBzDbNRLj HJ2vxiMcNO1VjjZJm8szeaT8uz1+v/IDA2HxK2cAWeXrHkZG/CUq63tml8pZmAY+65XX sGaZVLzITpkZvkNbBf6GDIeNqGG52xQug7y9F8dCAUYIMDPNFbRQEUFvevs+7ddNK356 seHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ceXJkczc; 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 x8si13451647plo.259.2018.12.03.02.47.20; Mon, 03 Dec 2018 02:47:35 -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=ceXJkczc; 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 S1726180AbeLCKrQ (ORCPT + 99 others); Mon, 3 Dec 2018 05:47:16 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:39744 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbeLCKrQ (ORCPT ); Mon, 3 Dec 2018 05:47:16 -0500 Received: by mail-ed1-f65.google.com with SMTP id b14so10286154edt.6 for ; Mon, 03 Dec 2018 02:46:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=C4DqEn37SBRsotIrKAm5yynDS6jpvHS3hOUw3P+QwwE=; b=ceXJkczc3iwbnmoscqMAaL+NjPXtiaF34nuMObqEEb7hKST2xROzzBteuUrgOuOFPs iC2ndrSzUKhw0r+tpD8KFlfUNd7DGDSDjozQndVSgwpp42uFneeBSv88OO1FjfQDQN8+ GxtWC2HGrzOjyaOAVzgSxocFjLdYuoOP6mvw0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=C4DqEn37SBRsotIrKAm5yynDS6jpvHS3hOUw3P+QwwE=; b=QyOrt4lHuCUSUCa7x8Jx8QGFu+OWPefp4fzUbJIx62HpTy33cwPXhV9ggf2B41SDFq oD/fr1bWTTf2DcpdgxrRtwRU0gLJHCtui0pk0qx89wZABCdXzZFwkO+bGDWDUDXFY0YZ iOV8gha4e2C/dXikz3H6bLY+uV41qY2AFevHVo48cUdSNFwnuTE73Xk4wRkC6R9JYLBf DJNF5PpLPDLxBpQPbElORb19FYsj+h5AP+7QBWnHixwOkgTkP1HSBByXJoPMOZyAOKU2 CU0jZV74YGjJAb0ou+noB32Z005xbQgnMAgVwZS3CKhwG0a9bd1uUpylKYCYMXllbMJ2 ImvQ== X-Gm-Message-State: AA+aEWaVKeCJR+RZkc7z0AnyOu0PtoylRF1H1/DxiT3vO6uC/Yt+gWOb svis/m0NrqjU1lRIVwfPRAvoR9EVSGFlX6xF6rbzFA== X-Received: by 2002:a17:906:404a:: with SMTP id y10-v6mr12518544ejj.30.1543834004482; Mon, 03 Dec 2018 02:46:44 -0800 (PST) MIME-Version: 1.0 References: <1542007566-9449-2-git-send-email-zhang.chunyan@linaro.org> <1543471664-22856-1-git-send-email-zhang.chunyan@linaro.org> <42f994b2-ba98-8160-6eef-11eeb8a10f5e@ti.com> In-Reply-To: <42f994b2-ba98-8160-6eef-11eeb8a10f5e@ti.com> From: Chunyan Zhang Date: Mon, 3 Dec 2018 18:46:33 +0800 Message-ID: Subject: Re: [PATCH V3 1/3] mmc: sdhci: add support for using external DMA devices To: Faiz Abbas Cc: Adrian Hunter , Ulf Hansson , linux-mmc@vger.kernel.org, Linux Kernel Mailing List , Arnd Bergmann , Mark Brown , Kishon Vijay Abraham I , Sekhar Nori , Lyra Zhang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 3 Dec 2018 at 17:01, Faiz Abbas wrote: > > 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. Ok, will move to. Thanks, Chunyan > > Thanks, > Faiz