Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756083AbbLAKa0 (ORCPT ); Tue, 1 Dec 2015 05:30:26 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:52516 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753853AbbLAKaX (ORCPT ); Tue, 1 Dec 2015 05:30:23 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Stanimir Varbanov , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, Vinod Koul , Mark Rutland , Archit Taneja , Pawel Moll , Ian Campbell , Rob Herring , Andy Gross Subject: Re: [PATCH 2/4] dmaengine: qcom_bam_dma: clear BAM interrupt only if it is rised Date: Tue, 01 Dec 2015 11:29:41 +0100 Message-ID: <6461444.oollnBsbrb@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1448961299-15161-3-git-send-email-stanimir.varbanov@linaro.org> References: <1448961299-15161-1-git-send-email-stanimir.varbanov@linaro.org> <1448961299-15161-3-git-send-email-stanimir.varbanov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:it8VMZSPM0H34BJhD/ef02dk4+eHLIJcyoes1nCTbrJKkPnL45L llJrVhd5XmFeTPbuO6whBlxpy9nqysheeCNPRpUBXcaKC10xJkVE3R6PGgpXmshmrshL8Lh n2GfUru3DMqc1pbkvrgnvcaDjn7Oq9wwdXttghVbMXuxpEWFNEaMalL2ThsbJQkHIpoqT0u f1rydd/OnOTQ/zkZ7odaw== X-UI-Out-Filterresults: notjunk:1;V01:K0:RkMdJ6TqSvQ=:oCzShq7Tb28Zk5hSmIKTgu mFcTa4gt73dAD/GhZfzBA73CqjTI0fJDQvp85ae9INAjLkiA74IkwoXWcenKnhQ+CqLIHo7uP sPrx3BVqMNo+AzNqgbyqYhW1G526rq/eZ7syulNyeOgvPSD/gFIh+Xz/LBtWPacsIdh4qkx3w mW/Xp1P8qDGsi8DuWUJbTFeY4N62OylP4tSoyDydvg9O2A5zbG5sbZE9vy3gsMQSlPB4XU253 SuDVmP0xiaaYT+XWo5Clgt7aZEWcQtvmEZFU4Rb/05w0G3IvRhAviZAp8SOE5BnB/0RkDZRuI x99kC9QbRVh4S00Hscsl2Rp/Cv5TJ9+3/wT4bamyXvPEudQyI/zZL7FFfP6qewN4KBBNIgU6X x2VbYNROn29v3mfy5oUrjuBzmTFrUXrTBCfYTL4fSsoN6H4ry0Rqr1kA14eSYEcbYfOiKbXSX Q8hVNv6+M+VkFa3aTbmn+w9hOFNuyakE1WON1FgROyuHyTWhB3FOYxg8uotDf/4y6t7eUr9pE 4ebThM3tYYH7H/r5//EeeQm5LPQSI/Vg66SGRdE0bHo6UaLOrWKYMuhWhzNlGk4+XmYmM89RG w1E0VT3/8aEHI/sGmgExXhlW2E4FEZdem/XK8qSaqGnZEcpvEKe55ykXE8uyXfY2q13L2RJNA 4KkyfLQ2pxaCJpxN80xkxrhN6gEAKXlmTSPFLAY9KteokWvvILVLShWpsKhDKQAngR9y7L2ml 50Bx6ufuo1+doKHt Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1077 Lines: 28 On Tuesday 01 December 2015 11:14:57 Stanimir Varbanov wrote: > + if (srcs & BAM_IRQ) { > clr_mask = readl_relaxed(bam_addr(bdev, 0, BAM_IRQ_STTS)); > > - /* don't allow reorder of the various accesses to the BAM registers */ > - mb(); > + /* > + * don't allow reorder of the various accesses to the BAM > + * registers > + */ > + mb(); > > - writel_relaxed(clr_mask, bam_addr(bdev, 0, BAM_IRQ_CLR)); > + writel_relaxed(clr_mask, bam_addr(bdev, 0, BAM_IRQ_CLR)); > + } > I think the comment here should be moved: change the writel_relaxed() to writel(), which already includes the appropriate barriers, and add a comment at the readl_relaxed() to explain why it doesn't need a barrier. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/