mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] spi: fix list scan success verification in PXA ssp driver
@ 2008-06-05  8:37 Guennadi Liakhovetski
  2008-06-05  8:45 ` Eric Miao
  2008-06-05  8:54 ` eric miao
  0 siblings, 2 replies; 3+ messages in thread
From: Guennadi Liakhovetski @ 2008-06-05  8:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: dbrownell, eric miao, spi-devel-general

The list search success check in arch/arm/mach-pxa/ssp.c is wrong: for 
example, it didn't recognise failure for me when I requested port 0.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>

---

 arch/arm/mach-pxa/ssp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/arch/arm/mach-pxa/ssp.c
===================================================================
--- linux-2.6.orig/arch/arm/mach-pxa/ssp.c	2008-06-04 12:11:26.000000000 +0200
+++ linux-2.6/arch/arm/mach-pxa/ssp.c	2008-06-04 12:11:50.000000000 +0200
@@ -330,7 +330,7 @@
 
 	mutex_unlock(&ssp_lock);
 
-	if (ssp->port_id != port)
+	if (&ssp->node == &ssp_list)
 		return NULL;
 
 	return ssp;


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

end of thread, other threads:[~2008-06-05  8:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-05  8:37 [PATCH] spi: fix list scan success verification in PXA ssp driver Guennadi Liakhovetski
2008-06-05  8:45 ` Eric Miao
2008-06-05  8:54 ` eric miao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®