* [PATCH v2 1/1] spi: pxa2xx: missing break in pxa2xx_ssp_get_clk_div()
@ 2015-03-31 13:49 Andy Shevchenko
[not found] ` <1427809778-99984-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2015-03-31 13:49 UTC (permalink / raw)
To: Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA, Dan Carpenter
From: Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
We refactored this code but accidentally left out a break statement so
QUARK_X1000_SSP isn't handled correctly.
Fixes: 025ffe88ee60 ('spi: pxa2xx: shift clk_div in one place')
Tested-by: Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Signed-off-by: Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
---
drivers/spi/spi-pxa2xx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
index 60526a5..e3223ac 100644
--- a/drivers/spi/spi-pxa2xx.c
+++ b/drivers/spi/spi-pxa2xx.c
@@ -791,8 +791,10 @@ static unsigned int pxa2xx_ssp_get_clk_div(struct driver_data *drv_data,
switch (drv_data->ssp_type) {
case QUARK_X1000_SSP:
clk_div = quark_x1000_get_clk_div(rate, &chip->dds_rate);
+ break;
default:
clk_div = ssp_get_clk_div(drv_data, rate);
+ break;
}
return clk_div << 8;
}
--
2.1.4
--
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] 3+ messages in thread[parent not found: <1427809778-99984-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>]
* Re: [PATCH v2 1/1] spi: pxa2xx: missing break in pxa2xx_ssp_get_clk_div() [not found] ` <1427809778-99984-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> @ 2015-03-31 14:04 ` Dan Carpenter 2015-03-31 14:05 ` Mark Brown 1 sibling, 0 replies; 3+ messages in thread From: Dan Carpenter @ 2015-03-31 14:04 UTC (permalink / raw) To: Andy Shevchenko; +Cc: Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA On Tue, Mar 31, 2015 at 04:49:38PM +0300, Andy Shevchenko wrote: > From: Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org> > > We refactored this code but accidentally left out a break statement so > QUARK_X1000_SSP isn't handled correctly. > > Fixes: 025ffe88ee60 ('spi: pxa2xx: shift clk_div in one place') > Tested-by: Andy Shevchenko <andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> > Signed-off-by: Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org> Thanks for this. Sorry, for the delay I was confused earlier about if I should wait for you to switch it to an if statement but after Mark's comments then planning to resend later. But you have done it for me, thanks! regards, dan carpenter -- 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] 3+ messages in thread
* Re: [PATCH v2 1/1] spi: pxa2xx: missing break in pxa2xx_ssp_get_clk_div() [not found] ` <1427809778-99984-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> 2015-03-31 14:04 ` Dan Carpenter @ 2015-03-31 14:05 ` Mark Brown 1 sibling, 0 replies; 3+ messages in thread From: Mark Brown @ 2015-03-31 14:05 UTC (permalink / raw) To: Andy Shevchenko; +Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, Dan Carpenter [-- Attachment #1: Type: text/plain, Size: 287 bytes --] On Tue, Mar 31, 2015 at 04:49:38PM +0300, Andy Shevchenko wrote: > From: Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org> > > We refactored this code but accidentally left out a break statement so > QUARK_X1000_SSP isn't handled correctly. Applied, thanks. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 473 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-31 14:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-31 13:49 [PATCH v2 1/1] spi: pxa2xx: missing break in pxa2xx_ssp_get_clk_div() Andy Shevchenko
[not found] ` <1427809778-99984-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-03-31 14:04 ` Dan Carpenter
2015-03-31 14:05 ` Mark Brown
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.