Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2090946imu; Wed, 28 Nov 2018 22:15:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/XjINh4Yg9+LlxuxCkBaWuP8TPUkVoKjFphQ53KDScVWoF5lw/ZGz06InDBZhIJNR5iof79 X-Received: by 2002:a63:4d0e:: with SMTP id a14mr197857pgb.408.1543472147586; Wed, 28 Nov 2018 22:15:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543472147; cv=none; d=google.com; s=arc-20160816; b=RNVQJ0fcjoHqAbL4gXXO9SNzRkf6VTvKGHLOYqhOdikqxg4GRACtZNcFCT0x0QjtZW ISHZ7krbFkU5GDTjyrEO+EY/sEb9rJkLZRznwsgw50mic3NyXxA7Z7s/md0eYQ0NqdSX WtRZNT/7fageptGux5BWSke4DcFYYm7wGelc7Ddpc0z2ijjWqnSl5jYr+hguK+DErUqa Hm7aAXU0HZ7/wUy52dUIAMPQhYkcnfAMK//1HL6NKodpm7LKuasKnkcJfVOA2FB0UAU3 j/bViE894NpfPUyVTLuKbJarhMPSqWpJcejPaSeY8KrU1D9wtQq5A3jViAEbwYKXFLbt b2OQ== 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=RnE1S5GxdoR5Qe5wQf/RJVbAMP5EsitHBNG8ikrUglM=; b=ucQX9/xZ2aFo0Jnh1yPf92IhW2hvFHZQB+D8HGADWk/l3H7+p1wfnCfVoUiKCKpCG+ Q9UiQEZeHEj5J68kNv47P5+LXkzd//bD/EylgZrsHKt5nr59fTMUHm2r3lxRobjY/GRJ AxXyb3HUAYwuzNFB6O/J+yxNQ3JKkD9+n8shSJh+AxaSMvNhJDFk4osHD76Kt739PQLE 1GXRdmxWu/xLtgwrgyCJpfQeZeceC2x+lUPj+Rgy1xdI4wX/aHAyMtsORb9vUen0ppcE aIfJjabMaISohjXkIKtJGG8mWNsGjU1hQYDekK6T/J0LEtlC2i9Qa7zfFOkJJbM5Iu8s Kv/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZBgNxZAJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b89si1094469pfj.207.2018.11.28.22.15.31; Wed, 28 Nov 2018 22:15:47 -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=@gmail.com header.s=20161025 header.b=ZBgNxZAJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727983AbeK2RTI (ORCPT + 99 others); Thu, 29 Nov 2018 12:19:08 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:39670 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbeK2RTI (ORCPT ); Thu, 29 Nov 2018 12:19:08 -0500 Received: by mail-lj1-f193.google.com with SMTP id t9-v6so649654ljh.6; Wed, 28 Nov 2018 22:14:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RnE1S5GxdoR5Qe5wQf/RJVbAMP5EsitHBNG8ikrUglM=; b=ZBgNxZAJqZ9c4ZUTsvvwBzBb0y0m/BTCOQGG3/O3PrJXi70yH7PgBTn18y/Ng5rmDo r98oTURGIyVryBH4DENIk3PDaXvmEX7FJX24YVdJCBPwp8JAty6D6GImdj4OtZH8U7XF FAJG9xDQbwLR0+uuUgcinbV5FsnOpiVi/Gj4Js9hxH9XORSua7Z54WcgbW4/puB7nf0n mDM6ZE3t5vyqjV1BWqQj+AlhBa7voDjV3Px2A/+hBvq9YU9q5V/KaRwHjvrSeyS/4KwQ qy10vf1LESwIw3xO7ohF3CQqBGSxUrir6zg2ds/waRBNwZ+68Pq9tVVcKoAwITBl2Hij iDDA== 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=RnE1S5GxdoR5Qe5wQf/RJVbAMP5EsitHBNG8ikrUglM=; b=g/mPLsywmTPzScV8mLQ3X73R19JvZmZ940X+RlYhiC8gebynzl1P3p76QdCkNdBI66 5rWhMzCQDgVEKvMq16Urf1UVhk5dKw044HU+yIZiAsSoKpHKnYkVRsCyk6QB6XHqP0DL yfWniJbT6enNh48qCjTOtP2naC7tjcG0j31Gtv8kI8Am35EccXxLbMCwtr0HPQjSQOyS UP3AFZcLqQxYtwhlk/7lYNX6yRIu5Xsp7kl4bZxMzRqZD3v1txTTiJuNAvF9PCmjfL2z 57lBZn9CpNlptJpCa++cdw++SyAB6XbKW3uI18IfVkeDauYVba7rDbAiNlF06NcIJPCp s6Fg== X-Gm-Message-State: AA+aEWZkqMoOzagOgZDXqRZQNAvBDY8/ILaio0qVniF1Va6lN6CeQlGZ oN1pWIZerMDwMIEr0fvpjp0IZV41/AcHBjMNGhc= X-Received: by 2002:a2e:21a9:: with SMTP id h41-v6mr151163lji.103.1543472092515; Wed, 28 Nov 2018 22:14:52 -0800 (PST) MIME-Version: 1.0 References: <1542007566-9449-1-git-send-email-zhang.chunyan@linaro.org> <5a45f520-03b0-3679-2175-a19681062bf6@ti.com> In-Reply-To: <5a45f520-03b0-3679-2175-a19681062bf6@ti.com> From: Chunyan Zhang Date: Thu, 29 Nov 2018 14:14:16 +0800 Message-ID: Subject: Re: [PATCH v2 0/3] Add support for using external dma in SDHCI To: faiz_abbas@ti.com Cc: Chunyan Zhang , Ulf Hansson , Adrian Hunter , linux-mmc@vger.kernel.org, Linux Kernel Mailing List , Arnd Bergmann , Mark Brown , kishon@ti.com, nsekhar@ti.com 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 Hi Faiz, Many thanks for testing this. On Thu, 29 Nov 2018 at 00:59, Rizvi, Mohammad Faiz Abbas wrote: > > + Mark Brown > > Chunyan, > > On 11/21/2018 5:17 PM, Faiz Abbas wrote: > > Hi Chunyan, > > > > On 12/11/18 12:56 PM, Chunyan Zhang wrote: > >> 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. > >> > > > > This is great. It helps us move am335x and am43xx platforms to > > sdhci-omap. What platforms have you tested this on? > > > > Gentle ping on this. I tried testing these with an am335x-evm board. In > their current condition, the card fails to enumerate altogether. The > changes suggested by Adrian should fix this. Let me know when you post a v3. I addressed Adrian's comments, and posted a new patch under 1/3 of the last patch series, if this patch can be verified workable, I will send another new patchset also add your tested-by. Thanks, Chunyan > > Thanks, > Faiz