[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdadRanBUNQZQMEX6En8A-=spqJUojOOrGAmTCJzMfvo7g@mail.gmail.com>
Date: Mon, 17 Oct 2011 16:10:22 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Vinod Koul <vinod.koul@...el.com>
Cc: Barry Song <Barry.Song@....com>, Arnd Bergmann <arnd@...db.de>,
Jassi Brar <jaswinder.singh@...aro.org>,
linux-kernel@...r.kernel.org, workgroup.linux@....com,
Rongjun Ying <rongjun.ying@....com>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v3] dmaengine: add CSR SiRFprimaII DMAC driver
On Mon, Oct 17, 2011 at 3:57 PM, Vinod Koul <vinod.koul@...el.com> wrote:
>> + if (sdesc->cyclic) {
>> + writel((1 << cid) | 1 << (cid + 16) |
>> + readl_relaxed(sdma->base + SIRFSOC_DMA_CH_LOOP_CTRL),
>> + sdma->base + SIRFSOC_DMA_CH_LOOP_CTRL);
>> + schan->happened_cyclic = schan->completed_cyclic = 0;
>> + }
>
> any reason why we have mixed use of writel_relaxes and writel?
> Shouldn't all the DMA register writes be done only using writel?
We has a lengthy discussion on the subject here:
http://marc.info/?l=linux-arm-kernel&m=130588591415130&w=2
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists