Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756011AbbLAK3W (ORCPT ); Tue, 1 Dec 2015 05:29:22 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:56564 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755822AbbLAK3R (ORCPT ); Tue, 1 Dec 2015 05:29:17 -0500 From: Arnd Bergmann To: Stanimir Varbanov Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, Vinod Koul , Rob Herring , Rob Herring , Mark Rutland , Pawel Moll , Ian Campbell , Andy Gross , Archit Taneja Subject: Re: [PATCH 3/4] dmaengine: qcom_bam_dma: use correct pipe FIFO size Date: Tue, 01 Dec 2015 11:28:32 +0100 Message-ID: <1971752.Auss6gPApO@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1448961299-15161-4-git-send-email-stanimir.varbanov@linaro.org> References: <1448961299-15161-1-git-send-email-stanimir.varbanov@linaro.org> <1448961299-15161-4-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:Xzk/DFrjzrjVIPa4L3Yo8WEmNBtEQm79ibziQMMyfbG9HMT20ur VlxeDVNNdBdx7gNebxY6jM/PYm9k7+OgvQPsimdlo8oP+o281NuuLhYSD/evnNSKwrtdMzX YO8eJpYusuvOhE5bP6qpYxWRugowptazU8fN24v/Mg/Xa5NZgbZkECT912u3xZzgoawGKex ILJeWq4Iuom6mTBg/owlA== X-UI-Out-Filterresults: notjunk:1;V01:K0:HWB2DR2e/UU=:aYk8TMHINo+LpntPtUedmc R3l1gtetY352ksz3KWJtAmuQlcUUSY+lnnAs1er/6XtsagHPWJbQ5dMIlw07UlYhdVfj2I+f0 OKROKsu9a5sPlIeSbNBjFa6aYvBR3No7wpqQyRjWRHzEhMxB1DLK3ogmSpCWCxFJpUh+IFh8p uR4syGXQ5vIgU5SEj8g7yR1eYQJyCRq8jZ0NtakFeOwxtGMjyyi9hP0aMc+LPu2SSuJvtUAtO MQDJ536OVx5flZ+ZEzn0wsz7PWuwOIzaJ7+oVw+wVcHCXi5R/+Wzi2P5HlHHFl9runcIfMU+w bLFKBjz1N5OjQCE7oeZhXa1EgTAc2FbemoYaf0TYCRGM6FeG2J1B1L2IBy/PkRnzQLro3458S 7ZELrodeOigzP9O0j+qD+23DFBZHqmysYMk3JPW0CFPdAg/DGg8BKeZfq9UwcTZaeHb4v49Ce SW5XHmX0jv4OHvgP0MBlbO1zLP2qYnIzVLNWx4ItjX6FW2kB1JnDOOUxzw+B4mkfKWnEiz8QB 819hNiZMUAcQUFvnszC/aJ5mIbUv9achSkZjPOvukw2mu+QkY6XyEqlJyKyd9Y8PpXQ6Xo6al IHKYetVIKBpRif8wyiP997Mvsg3rSaiLA/lwPnPC6usvPdfdLt+e62zmUdEND9lyF1nuC978q 7AJRvJBQXBOKJQmbd2sCOoTqKMb/OkjjqUOjciNiIUxbKhJcyluWd1NJEtlXG3AZeSoSrVbT6 Ulh7LAKMFVoqUBSE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1122 Lines: 26 On Tuesday 01 December 2015 11:14:58 Stanimir Varbanov wrote: > > diff --git a/drivers/dma/qcom_bam_dma.c b/drivers/dma/qcom_bam_dma.c > index 0f06f3b7a72b..6d290de9ab2b 100644 > --- a/drivers/dma/qcom_bam_dma.c > +++ b/drivers/dma/qcom_bam_dma.c > @@ -458,7 +458,7 @@ static void bam_chan_init_hw(struct bam_chan *bchan, > */ > writel_relaxed(ALIGN(bchan->fifo_phys, sizeof(struct bam_desc_hw)), > bam_addr(bdev, bchan->id, BAM_P_DESC_FIFO_ADDR)); > - writel_relaxed(BAM_DESC_FIFO_SIZE, > + writel_relaxed(BAM_MAX_DATA_SIZE, > bam_addr(bdev, bchan->id, BAM_P_FIFO_SIZES)); > > /* enable the per pipe interrupts, enable EOT, ERR, and INT irqs */ I'm looking at that now and fail to see why these have to use writel_relaxed(). Could you add a patch to use readl/writel by default? 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/