All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi/pl022: Fix error print while setting bits/word on pl022
@ 2012-04-17  5:58 Vinit Shenoy
       [not found] ` <1334642325-29159-1-git-send-email-vinit.shenoy-qxv4g6HH51o@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Vinit Shenoy @ 2012-04-17  5:58 UTC (permalink / raw)
  To: grant.likely-s3s/WqlpOiPyB63q8FvJNQ,
	linus.walleij-QSEj5FYQhm4dnm+yROfE0A
  Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	spear-devel-nkJGhpqTU55BDgjK7y7TUQ, Vinit Shenoy

pl022 ssp controller supports word lengths from 4 to 16 bits.
The kernel error message says:
"a standard pl022 can only handle 1 <= n <= 16 bit words".

Fixed above range to 4 <= n <= 16.

Signed-off-by: Vinit Shenoy <vinit.shenoy-qxv4g6HH51o@public.gmane.org>
---
 drivers/spi/spi-pl022.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index 09c925a..905752f 100644
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -1848,7 +1848,7 @@ static int pl022_setup(struct spi_device *spi)
 				"illegal data size for this controller!\n");
 			dev_err(&spi->dev,
 				"a standard pl022 can only handle "
-				"1 <= n <= 16 bit words\n");
+				"4 <= n <= 16 bit words\n");
 			status = -ENOTSUPP;
 			goto err_config_params;
 		}
-- 
1.7.3.4


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev

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

end of thread, other threads:[~2012-04-17  7:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-17  5:58 [PATCH] spi/pl022: Fix error print while setting bits/word on pl022 Vinit Shenoy
     [not found] ` <1334642325-29159-1-git-send-email-vinit.shenoy-qxv4g6HH51o@public.gmane.org>
2012-04-17  5:57   ` Viresh Kumar
2012-04-17  6:24   ` Shubhrajyoti Datta
     [not found]     ` <CAM=Q2csRwyGYgQ27bXjX=m6pqFoZFim=y3Qzv_DCQvyR5G0brg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-17  7:04       ` Vinit Kamalaksha SHENOY

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.