From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 2 Apr 2012 21:03:02 +0200 Subject: [U-Boot] [PATCH v2] mmc: mxsmmc: Fix operation with DMA In-Reply-To: References: <1333391050-25199-1-git-send-email-fabio.estevam@freescale.com> <201204022039.47051.marex@denx.de> Message-ID: <201204022103.02717.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Fabio Estevam, > On Mon, Apr 2, 2012 at 3:39 PM, Marek Vasut wrote: > > This mxs_dma_desc_alloc() is called in a loop in the MXS NAND driver, > > this is even worse ;-) > > > > Possibly some common mx28 init code would be better? > > If I put it in mx28.c like that: > > +++ b/arch/arm/cpu/arm926ejs/mx28/mx28.c > @@ -172,6 +172,8 @@ int arch_cpu_init(void) > */ > mxs_gpio_init(); > > + mxs_dma_init(); > + > return 0; > } > #endif > > ,MMC still fails. Because that's called before relocation ;-) > > Still looking for a good place for calling mxs_dma_init(); Best regards, Marek Vasut