Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752066AbcDULUr (ORCPT ); Thu, 21 Apr 2016 07:20:47 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:50876 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751565AbcDULUp (ORCPT ); Thu, 21 Apr 2016 07:20:45 -0400 From: Arnd Bergmann To: Peter Griffin Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, srinivas.kandagatla@gmail.com, maxime.coquelin@st.com, patrice.chotard@st.com, vinod.koul@intel.com, lee.jones@linaro.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, broonie@kernel.org, ludovic.barre@st.com Subject: Re: [PATCH 02/18] dmaengine: st_fdma: Add STMicroelectronics FDMA driver header file Date: Thu, 21 Apr 2016 13:20:03 +0200 Message-ID: <3852823.Jd9ACgHlZU@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1461236675-10176-3-git-send-email-peter.griffin@linaro.org> References: <1461236675-10176-1-git-send-email-peter.griffin@linaro.org> <1461236675-10176-3-git-send-email-peter.griffin@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:hkecgKMhTeFsdjqUC9WFGbaxKp5FFMjmXbvD9EmmwSXJvTKEmK8 ZBBSbcbelXME51MjD/jKnLU6y4q6KJ2rVD5XwIY7zqnFaqRzs8SgpxIlY7QMatWRJ00TSX1 jNLkGATddbJWsR95ri1mfA+xNOtSlpVxo7XVWp9/rWVJ/reqjnsjEatPnQFvuz4WqQW6qj4 DKdw7SAjTZygby2Y3QWrw== X-UI-Out-Filterresults: notjunk:1;V01:K0:fqSvE4I2V28=:Up0yAA5M6JmvQngaluvCQW KoqtFGcFVhjgvbL05Adp/nfvETdcQJVSA68o12gVX/sftSMdmHyr4u0D0iKBoYnSIcb0gPq6F K6/0leCzlXELnllsSAPge/KJSyu16tyqAR0aWAYGirv/+bUOHFC41f5rAHZkfIKWEcpAWvIHo wGxR/Aeh22jl0/gY4dHMBmIo5GFawErM8JBO5acusptLJLRH7+OvDKWFAfpOHpaUUfJtS3eCK Zu6Db+PyTf3ADvupapDV/1wT6ijPAnn7fYKQkQs/ARb8bfqChlBx0asMtIOnLS8od0NjIzPxp JleZbnuh3AN0YTK5oDoKT3fK3qEEJJx92yJ1+/SsqE2RXfEpJzRjCinbyQeXv6YxlFGxFwH0t eGJyDGswXHVkZnb/NmyCvi+hbNx5Kf8PEnOgcDM6WEzGi/XACKST+QvqD1NEas+2JjoqW08UR rWmOO4mbuaoqc8Lm2nzJlNu74+29xGwDhbZTGlY20VqOEnNRdu5zFxqt2XAW0pdtXCHdyZ+l6 87JJxkV83UOtO6KbE2h8HNT+JRrG2k9ywPP5z2lmi7V2BAvNUpDH7Fhk4kHsNIBHIHX2tZ+N6 ewsi77SjmQLuYtt31M0bkgIDqi+aH++NA0nLMXUE0m5ezdA5RrfZVkqxhUP97wT2fXf0n2nih Ci9mPbES9oDMejKcJOW/Acsu8txhPit+03pSV4xrMYjwdQqlpv9ywr9h6SbOgxNx5l70uXeMo JzgPEp1inTOazrim Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1098 Lines: 31 On Thursday 21 April 2016 12:04:19 Peter Griffin wrote: > Signed-off-by: Ludovic Barre > Signed-off-by: Peter Griffin Please add a changelog text for each patch. > drivers/dma/st_fdma.h | 281 ++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 281 insertions(+) > create mode 100644 drivers/dma/st_fdma.h When the header file is only included from one other file, it's usually better to move the entire contents into the .c file. > +#define fdma_read(fdev, name) \ > + readl_relaxed((fdev)->io_base + FDMA_##name##_OFST) > + > +#define fdma_write(fdev, val, name) \ > + writel_relaxed((val), (fdev)->io_base + FDMA_##name##_OFST) Try to avoid string concatenation for macro names. It's better to always pass the full name of the register in there to make it easier to grep for the usage when trying to understand the driver as a reader. Once you do that, just convert the macro into an inline function. > +bool st_fdma_filter_fn(struct dma_chan *chan, void *param); The filter function should not be needed here. Arnd