From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v5] spi: spi-imx: add DMA support Date: Wed, 10 Sep 2014 10:17:14 +0200 Message-ID: <5412055.BAOgFikuh9@wuerfel> References: <1410312604-31949-1-git-send-email-b38343@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Robin Gong , broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, marex-ynQEQJNshbs@public.gmane.org, shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, Frank.Li-KZfg59tc24xl57MIdRCFDg@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org Return-path: In-Reply-To: <1410312604-31949-1-git-send-email-b38343-KZfg59tc24xl57MIdRCFDg@public.gmane.org> Sender: linux-spi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: On Wednesday 10 September 2014 09:30:04 Robin Gong wrote: > Enable DMA support on i.mx6. The read speed can increase from 600KB/s > to 1.2MB/s on i.mx6q. You can disable or enable dma function in dts. > If not set "dma-names" in dts, spi will use PIO mode. This patch only > validate on i.mx6, not i.mx5, but encourage ones to apply this patch > on i.mx5 since they share the same IP. > > Note: > Sometime, there is a weid data in rxfifo after one full tx/rx > transfer finish by DMA on i.mx6dl, so we disable dma functhion on > i.mx6dl. > > Signed-off-by: Frank Li > Signed-off-by: Robin Gong > > The patch looks good to me, but you need to also update the Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt file to document the additional optional properties. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Wed, 10 Sep 2014 10:17:14 +0200 Subject: [PATCH v5] spi: spi-imx: add DMA support In-Reply-To: <1410312604-31949-1-git-send-email-b38343@freescale.com> References: <1410312604-31949-1-git-send-email-b38343@freescale.com> Message-ID: <5412055.BAOgFikuh9@wuerfel> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wednesday 10 September 2014 09:30:04 Robin Gong wrote: > Enable DMA support on i.mx6. The read speed can increase from 600KB/s > to 1.2MB/s on i.mx6q. You can disable or enable dma function in dts. > If not set "dma-names" in dts, spi will use PIO mode. This patch only > validate on i.mx6, not i.mx5, but encourage ones to apply this patch > on i.mx5 since they share the same IP. > > Note: > Sometime, there is a weid data in rxfifo after one full tx/rx > transfer finish by DMA on i.mx6dl, so we disable dma functhion on > i.mx6dl. > > Signed-off-by: Frank Li > Signed-off-by: Robin Gong > > The patch looks good to me, but you need to also update the Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt file to document the additional optional properties. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751550AbaIJIRz (ORCPT ); Wed, 10 Sep 2014 04:17:55 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:55159 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751220AbaIJIRw (ORCPT ); Wed, 10 Sep 2014 04:17:52 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Robin Gong , broonie@kernel.org, marex@denx.de, shawn.guo@linaro.org, Frank.Li@freescale.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: Re: [PATCH v5] spi: spi-imx: add DMA support Date: Wed, 10 Sep 2014 10:17:14 +0200 Message-ID: <5412055.BAOgFikuh9@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1410312604-31949-1-git-send-email-b38343@freescale.com> References: <1410312604-31949-1-git-send-email-b38343@freescale.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V02:K0:XXRhn3BKxd5Go5JUsjAaPtKdFKjvqDd+eNH7xJrvc6h Ce3oXj+Crj688JOiRwIaVRWRcAa4jXz4ymmJUTGGd/eQzULJNS YlOkLwUPywSQ2PiM3JOMO9Tq/JHajKhOsLvTpk31h/+7Clu30q O7ReFxHj/Tgtj9FBwBO3EMbuy27wUC3dZYqphmEQFrLMh3+clR rnGR+l6BIDMK/XZEgmOGeRCwaH/96a7xvEzXShQAqk1DnV0+Zn QLbfNDTFDzjcUo+gFdE/yGOW3WJtotOQ9CEImJl8C/KbCcy6V9 J+s+El4IzHNTS15lpEAIOu3T4f0aIACsFoP6A81G06sS5eHkhD ZLqYqiyTtGemOl4F9IaI= X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 10 September 2014 09:30:04 Robin Gong wrote: > Enable DMA support on i.mx6. The read speed can increase from 600KB/s > to 1.2MB/s on i.mx6q. You can disable or enable dma function in dts. > If not set "dma-names" in dts, spi will use PIO mode. This patch only > validate on i.mx6, not i.mx5, but encourage ones to apply this patch > on i.mx5 since they share the same IP. > > Note: > Sometime, there is a weid data in rxfifo after one full tx/rx > transfer finish by DMA on i.mx6dl, so we disable dma functhion on > i.mx6dl. > > Signed-off-by: Frank Li > Signed-off-by: Robin Gong > > The patch looks good to me, but you need to also update the Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt file to document the additional optional properties. Arnd