* [PATCH] spi: fsl-dspi: Add missing breaks for switch cases
@ 2014-01-08 14:27 Axel Lin
2014-01-10 4:19 ` Axel Lin
0 siblings, 1 reply; 4+ messages in thread
From: Axel Lin @ 2014-01-08 14:27 UTC (permalink / raw)
To: Mark Brown; +Cc: Chao Fu, Alison Wang, linux-spi-u79uwXL29TY76Z2rM5mHXA
Signed-off-by: Axel Lin <axel.lin-8E1dMatC8ynQT0dZR+AlfA@public.gmane.org>
---
drivers/spi/spi-fsl-dspi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c
index 8641b03..a37f156 100644
--- a/drivers/spi/spi-fsl-dspi.c
+++ b/drivers/spi/spi-fsl-dspi.c
@@ -320,8 +320,10 @@ static void dspi_chipselect(struct spi_device *spi, int value)
switch (value) {
case BITBANG_CS_ACTIVE:
pushr |= SPI_PUSHR_CONT;
+ break;
case BITBANG_CS_INACTIVE:
pushr &= ~SPI_PUSHR_CONT;
+ break;
}
writel(pushr, dspi->base + SPI_PUSHR);
--
1.8.1.2
--
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] spi: fsl-dspi: Add missing breaks for switch cases
2014-01-08 14:27 [PATCH] spi: fsl-dspi: Add missing breaks for switch cases Axel Lin
@ 2014-01-10 4:19 ` Axel Lin
[not found] ` <CAFRkauCMCZr4MGDMt1GJKd8uTKWH5bX_BXB5-Ouy5vFVg6ZY0Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Axel Lin @ 2014-01-10 4:19 UTC (permalink / raw)
To: Mark Brown; +Cc: Chao Fu, Alison Wang, linux-spi-u79uwXL29TY76Z2rM5mHXA
Hi Chao and Alison,
I'm wondering if this driver really work without this patch?
Any chance to test this patch?
Regards,
Axel
2014/1/8 Axel Lin <axel.lin-8E1dMatC8ynQT0dZR+AlfA@public.gmane.org>:
> Signed-off-by: Axel Lin <axel.lin-8E1dMatC8ynQT0dZR+AlfA@public.gmane.org>
> ---
> drivers/spi/spi-fsl-dspi.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c
> index 8641b03..a37f156 100644
> --- a/drivers/spi/spi-fsl-dspi.c
> +++ b/drivers/spi/spi-fsl-dspi.c
> @@ -320,8 +320,10 @@ static void dspi_chipselect(struct spi_device *spi, int value)
> switch (value) {
> case BITBANG_CS_ACTIVE:
> pushr |= SPI_PUSHR_CONT;
> + break;
> case BITBANG_CS_INACTIVE:
> pushr &= ~SPI_PUSHR_CONT;
> + break;
> }
>
> writel(pushr, dspi->base + SPI_PUSHR);
> --
> 1.8.1.2
>
>
>
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-13 2:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-08 14:27 [PATCH] spi: fsl-dspi: Add missing breaks for switch cases Axel Lin
2014-01-10 4:19 ` Axel Lin
[not found] ` <CAFRkauCMCZr4MGDMt1GJKd8uTKWH5bX_BXB5-Ouy5vFVg6ZY0Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-10 11:24 ` Mark Brown
[not found] ` <20140110112420.GD29039-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-01-13 2:44 ` Chao Fu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).