[PATCH 1/2] spi: spi-imx: enable dma support for escpi controller
Fabio Estevam
festevam at gmail.com
Fri Dec 20 13:29:38 EST 2013
On Fri, Dec 20, 2013 at 3:42 PM, Frank Li <Frank.Li at freescale.com> wrote:
> After enable DMA
>
> spi-nor read speed is
> dd if=/dev/mtd0 of=/dev/null bs=1M count=1
> 1+0 records in
> 1+0 records out
> 1048576 bytes (1.0 MB) copied, 0.720402 s, 1.5 MB/s
Good job, Frank!
>
> res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
You need to check if res is NULL here.
> + spi_imx->mapbase = res->start;
> spi_imx->base = devm_ioremap_resource(&pdev->dev, res);
Regards,
Fabio Estevam
More information about the linux-arm-kernel
mailing list