linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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

* Re: [PATCH] spi: fsl-dspi: Add missing breaks for switch cases
       [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>
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2014-01-10 11:24 UTC (permalink / raw)
  To: Axel Lin; +Cc: Chao Fu, Alison Wang, linux-spi-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 264 bytes --]

On Fri, Jan 10, 2014 at 12:19:41PM +0800, Axel Lin wrote:
> Hi Chao and Alison,
> 
> I'm wondering if this driver really work without this patch?
> Any chance to test this patch?

I applied the patch already - sorry, seems I must've forgotten
to mail out.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] spi: fsl-dspi: Add missing breaks for switch cases
       [not found]       ` <20140110112420.GD29039-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
@ 2014-01-13  2:44         ` Chao Fu
  0 siblings, 0 replies; 4+ messages in thread
From: Chao Fu @ 2014-01-13  2:44 UTC (permalink / raw)
  To: Mark Brown, Axel Lin
  Cc: Huan Wang, linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org



> > Hi Chao and Alison,
> >
> > I'm wondering if this driver really work without this patch?
> > Any chance to test this patch?
> 
> I applied the patch already - sorry, seems I must've forgotten to mail
> out.


[Chao Fu] Hi Axel , Mark,
Sorry for this careless omission. But no break it is really working in former debugging,
make me can not find this omission. I will take more care of my code, thank you!
--
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).