Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2352984imm; Tue, 4 Sep 2018 03:02:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYLn4j8e/2n4g9/R+JAq8OmKJrHetr2a+mwncaYvj5JIIa4NPtlTW7Fp72cf390nt6AbiWQ X-Received: by 2002:a63:ce11:: with SMTP id y17-v6mr5854695pgf.201.1536055327807; Tue, 04 Sep 2018 03:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536055327; cv=none; d=google.com; s=arc-20160816; b=Kgy9sbHgNgUuJ0TgYKzt977vSEPyyFVoe0vvLCAnmS8YIvCmXSyy2hv3sMN4McsY8Y 1baZcbfxpUn8TyY3wk9J4iPgZGkljCwmNghkzS2y0cC93P/dIQwN7uTYT8arfwcOBbQY j+RWI/umpJ973r2eFYMr0PON3GXEOXgYtUEQ8jfsiNI9QTmZvdLWAH7TIVhSglWNr3DA quw64eceY0aaKhsECrNrGQiVeubW8lfYXYrmPaFm6wOhjMMiBnZrHj56P4skKTGzW7al v0jo7vlBoT4Z8qpf5bJfSwuUwwkLfkCIT1ZUWPZ0dJcUssLoShPAJYN7PSyseCYqOzKr mtsQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=WfNlQGfUqOSD2LMZY8vesgBIgskXMBXgl4LedrU26r4=; b=K1KPSyTtjglex5u2ZfxI71adWsxeG307KIv02vCFUtEzUDupA82aOt9Wv/ROZvg520 T1SD0UakDWFzwIQIRTjwqU9dK0QpZPoG31Y6PS5ubWytqge0lfQ4N1GRgEh+dP7Z/Gq7 I/VAHZrJCFqqvpl57hmQBxmaBSBkDa4Pzqm81jm0zsNJoXlBylZ1x1vnKdT67V+A1wUr k/JtAS2AJrK2boTkx8XM1p0zg2+I7M0NEeeW/HTUxUDdCTubmyXtsNVPnPYb/PNzo64M IPgSxVyUNEp2lmhhq+D2vSPeeyffS6B45L5Pn0ezKiOszqqqTSA4qd+otXSM5fmvIVRB lGww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UUgQcXWO; 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 z15-v6si15847485pga.117.2018.09.04.03.01.52; Tue, 04 Sep 2018 03:02:07 -0700 (PDT) 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=UUgQcXWO; 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 S1727235AbeIDOZA (ORCPT + 99 others); Tue, 4 Sep 2018 10:25:00 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:39792 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727043AbeIDOZA (ORCPT ); Tue, 4 Sep 2018 10:25:00 -0400 Received: by mail-it0-f66.google.com with SMTP id h1-v6so4040077itj.4 for ; Tue, 04 Sep 2018 03:00:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=WfNlQGfUqOSD2LMZY8vesgBIgskXMBXgl4LedrU26r4=; b=UUgQcXWOy7xq7OCi+8l0LNLku7cJmSHQFzFMsU1Y/OfVtZrDRLParlYVIF5WhvBeVO 99JnQ0f2RXljhb0oIcQ5VW4A/IuQ26HJoEQn013ilZdgGBwAiq6AGkOxtE46AfbFGZTz aLwu4vi2KM7Gu3r65CzR1NFHooz5u6/zY4Mo4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=WfNlQGfUqOSD2LMZY8vesgBIgskXMBXgl4LedrU26r4=; b=oiMCFaTGKWfPiE5kM5OaiHLecM9k8YWGvRSS7SdrkXE17GGr3CB2kAsZ012PN2hrr3 C423RcOts1z0c0ONjej683eaRV8fqOnCVAPUGK1BXo+1FEf5f6gLJW5yIH2kgVhdZo3/ SZXMPIsjznT0O+gZ/FfTzBVrbJnXIyMcjwYyRAM4VsEACe2/rvQAp4tjCeJ/dIsCQlln YVsp3AYHTv83bnIB/miv6oSxEAhPy2i6BhOcZXNGHhdycycNyTUkpLflWsinL4qXrJtq Bcq+DKvh6GCR/Sci+BGdOIp1G03965gSy0BEQ4IPce0pW32iBw2w8PXLuUqvlho6iF/J oKbg== X-Gm-Message-State: APzg51DMpJulRU1uolssfhJ5ptye86tgTM0kDDglTvhWAwoDl0/leAXI WsIXjDC/Zcsg47Nr6dqmUwJHmXR6zCXG7I35DmPScw== X-Received: by 2002:a24:5f92:: with SMTP id r140-v6mr7566242itb.45.1536055235946; Tue, 04 Sep 2018 03:00:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:1bd8:0:0:0:0:0 with HTTP; Tue, 4 Sep 2018 03:00:35 -0700 (PDT) In-Reply-To: <1533116221-380-1-git-send-email-ludovic.Barre@st.com> References: <1533116221-380-1-git-send-email-ludovic.Barre@st.com> From: Ulf Hansson Date: Tue, 4 Sep 2018 12:00:35 +0200 Message-ID: Subject: Re: [PATCH 00/14] mmc: mmci: prepare dma callbacks with mmci_host_ops To: Ludovic Barre Cc: Rob Herring , Maxime Coquelin , Alexandre Torgue , Gerald Baeza , Linux ARM , Linux Kernel Mailing List , DTML , "linux-mmc@vger.kernel.org" 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 1 August 2018 at 11:36, Ludovic Barre wrote: > From: Ludovic Barre > > This patch series prepares and adds callbacks for dma transfert at > mmci_host_ops. This series is composed of 3 parts: > -Internalize specific needs of legacy dmaengine. > -Create and setup dma_priv pointer > -Create generic callbacks which share some features > (like cookie...) and call specific needs I have now reviewed part of this series and provided you with some comments, but will stop at this point. Overall, the comments are about renaming and picking better function names. Those comments should be easy to address in a new version. However, the other more important point is the number of variant callbacks you are adding. It's of course a balance to pick the right level, to get both flexibility but also to avoid open coding. In the end we don't want to get too many callbacks, but then it's better to share common mmci code for variants, through mmci.h. Finally, I would like to see a patch on top adding the support for the new ST variant, so I can see how the callbacks and changes really are being used. Can you please add that? > > This patch series must be applied on top of > "mmc: mmci: Add and implement a ->dma_setup() callback for qcom dml" > > Ludovic Barre (14): > mmc: mmci: fix qcom dma issue during mmci init with new dma_setup > callback > mmc: mmci: internalize dma map/unmap into mmci dma functions > mmc: mmci: internalize dma_inprogress into mmci dma functions > mmc: mmci: introduce dma_priv pointer to mmci_host > mmc: mmci: move mmci next cookie to mci host > mmc: mmci: merge prepare data functions > mmc: mmci: add prepare/unprepare_data callbacks > mmc: mmci: add get_next_data callback > mmc: mmci: modify dma_setup callback > mmc: mmci: add dma_release callback > mmc: mmci: add dma_start callback > mmc: mmci: add dma_finalize callback > mmc: mmci: add dma_error callback > mmc: mmci: add validate_data callback > > drivers/mmc/host/mmci.c | 458 ++++++++++++++++++++++++--------------- > drivers/mmc/host/mmci.h | 45 ++-- > drivers/mmc/host/mmci_qcom_dml.c | 15 +- > 3 files changed, 322 insertions(+), 196 deletions(-) > > -- > 2.7.4 > Kind regards Uffe