From: Marek Vasut <marex-ynQEQJNshbs@public.gmane.org>
To: Robin Gong <b38343-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Cc: broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Frank.Li-KZfg59tc24xl57MIdRCFDg@public.gmane.org,
shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org
Subject: Re: [PATCH v4] spi: spi-imx: add DMA support
Date: Mon, 25 Aug 2014 10:07:22 +0200 [thread overview]
Message-ID: <201408251007.22393.marex@denx.de> (raw)
In-Reply-To: <1408752835-10995-1-git-send-email-b38343-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
On Saturday, August 23, 2014 at 02:13:55 AM, Robin Gong wrote:
> After enable DMA
Please also add a commit message which describes the change, not only some test
results.
[...]
> @@ -911,6 +1194,13 @@ static int spi_imx_probe(struct platform_device
> *pdev) goto out_put_per;
>
> spi_imx->spi_clk = clk_get_rate(spi_imx->clk_per);
> + /*
> + * Only validated on i.mx6 now, can remove the constrain if validated on
> + * other chips.
> + */
Given that the check below tests for imx51_ecspi_devtype_data ... does that
mean, that this code was never tested on MX51 and MX53, yet will be enabled
for those chips and might possibly break them ?
> + if (spi_imx->devtype_data == &imx51_ecspi_devtype_data
> + && spi_imx_sdma_init(&pdev->dev, spi_imx, master, res))
> + dev_err(&pdev->dev, "dma setup error,use pio instead\n");
>
> spi_imx->devtype_data->reset(spi_imx);
>
> @@ -949,6 +1239,7 @@ static int spi_imx_remove(struct platform_device
> *pdev) writel(0, spi_imx->base + MXC_CSPICTRL);
> clk_unprepare(spi_imx->clk_ipg);
> clk_unprepare(spi_imx->clk_per);
> + spi_imx_sdma_exit(spi_imx);
> spi_master_put(master);
>
> return 0;
Best regards,
Marek Vasut
--
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
WARNING: multiple messages have this Message-ID (diff)
From: marex@denx.de (Marek Vasut)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4] spi: spi-imx: add DMA support
Date: Mon, 25 Aug 2014 10:07:22 +0200 [thread overview]
Message-ID: <201408251007.22393.marex@denx.de> (raw)
In-Reply-To: <1408752835-10995-1-git-send-email-b38343@freescale.com>
On Saturday, August 23, 2014 at 02:13:55 AM, Robin Gong wrote:
> After enable DMA
Please also add a commit message which describes the change, not only some test
results.
[...]
> @@ -911,6 +1194,13 @@ static int spi_imx_probe(struct platform_device
> *pdev) goto out_put_per;
>
> spi_imx->spi_clk = clk_get_rate(spi_imx->clk_per);
> + /*
> + * Only validated on i.mx6 now, can remove the constrain if validated on
> + * other chips.
> + */
Given that the check below tests for imx51_ecspi_devtype_data ... does that
mean, that this code was never tested on MX51 and MX53, yet will be enabled
for those chips and might possibly break them ?
> + if (spi_imx->devtype_data == &imx51_ecspi_devtype_data
> + && spi_imx_sdma_init(&pdev->dev, spi_imx, master, res))
> + dev_err(&pdev->dev, "dma setup error,use pio instead\n");
>
> spi_imx->devtype_data->reset(spi_imx);
>
> @@ -949,6 +1239,7 @@ static int spi_imx_remove(struct platform_device
> *pdev) writel(0, spi_imx->base + MXC_CSPICTRL);
> clk_unprepare(spi_imx->clk_ipg);
> clk_unprepare(spi_imx->clk_per);
> + spi_imx_sdma_exit(spi_imx);
> spi_master_put(master);
>
> return 0;
Best regards,
Marek Vasut
WARNING: multiple messages have this Message-ID (diff)
From: Marek Vasut <marex@denx.de>
To: Robin Gong <b38343@freescale.com>
Cc: broonie@kernel.org, linux-arm-kernel@lists.infradead.org,
linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org,
Frank.Li@freescale.com, shawn.guo@linaro.org
Subject: Re: [PATCH v4] spi: spi-imx: add DMA support
Date: Mon, 25 Aug 2014 10:07:22 +0200 [thread overview]
Message-ID: <201408251007.22393.marex@denx.de> (raw)
In-Reply-To: <1408752835-10995-1-git-send-email-b38343@freescale.com>
On Saturday, August 23, 2014 at 02:13:55 AM, Robin Gong wrote:
> After enable DMA
Please also add a commit message which describes the change, not only some test
results.
[...]
> @@ -911,6 +1194,13 @@ static int spi_imx_probe(struct platform_device
> *pdev) goto out_put_per;
>
> spi_imx->spi_clk = clk_get_rate(spi_imx->clk_per);
> + /*
> + * Only validated on i.mx6 now, can remove the constrain if validated on
> + * other chips.
> + */
Given that the check below tests for imx51_ecspi_devtype_data ... does that
mean, that this code was never tested on MX51 and MX53, yet will be enabled
for those chips and might possibly break them ?
> + if (spi_imx->devtype_data == &imx51_ecspi_devtype_data
> + && spi_imx_sdma_init(&pdev->dev, spi_imx, master, res))
> + dev_err(&pdev->dev, "dma setup error,use pio instead\n");
>
> spi_imx->devtype_data->reset(spi_imx);
>
> @@ -949,6 +1239,7 @@ static int spi_imx_remove(struct platform_device
> *pdev) writel(0, spi_imx->base + MXC_CSPICTRL);
> clk_unprepare(spi_imx->clk_ipg);
> clk_unprepare(spi_imx->clk_per);
> + spi_imx_sdma_exit(spi_imx);
> spi_master_put(master);
>
> return 0;
Best regards,
Marek Vasut
next prev parent reply other threads:[~2014-08-25 8:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-23 0:13 [PATCH v4] spi: spi-imx: add DMA support Robin Gong
2014-08-23 0:13 ` Robin Gong
2014-08-23 0:13 ` Robin Gong
[not found] ` <1408752835-10995-1-git-send-email-b38343-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2014-08-25 8:07 ` Marek Vasut [this message]
2014-08-25 8:07 ` Marek Vasut
2014-08-25 8:07 ` Marek Vasut
2014-08-26 7:17 ` Robin Gong
2014-08-26 7:17 ` Robin Gong
2014-08-26 7:26 ` Marek Vasut
2014-08-26 7:26 ` Marek Vasut
[not found] ` <201408260926.41038.marex-ynQEQJNshbs@public.gmane.org>
2014-08-26 7:52 ` Robin Gong
2014-08-26 7:52 ` Robin Gong
2014-08-26 7:52 ` Robin Gong
[not found] ` <CAGUYZuQre3RAQy+qqwq5HthrjnT85V5RKu2xwXOC=gL6Yk33TQ@mail.gmail.com>
2014-08-28 9:59 ` Robin Gong
2014-08-28 9:59 ` Robin Gong
2014-08-28 9:59 ` Robin Gong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201408251007.22393.marex@denx.de \
--to=marex-ynqeqjnshbs@public.gmane.org \
--cc=Frank.Li-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=b38343-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.