* [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
* RE: [PATCH] spi: fix list scan success verification in PXA ssp driver
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
1 sibling, 0 replies; 3+ messages in thread
From: Eric Miao @ 2008-06-05 8:45 UTC (permalink / raw)
To: Guennadi Liakhovetski, linux-kernel
Cc: dbrownell, spi-devel-general, Russell King, linux-arm-kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 1418 bytes --]
Acked-by: Eric Miao <eric.miao@marvell.com>
And this should really go through the ARM tree, please submit the patch
to RMK's patch system. Thanks.
Cheers
- eric
> -----Original Message-----
> From: Guennadi Liakhovetski [mailto:g.liakhovetski@pengutronix.de]
> Sent: Thursday, June 05, 2008 4:37 PM
> To: linux-kernel@vger.kernel.org
> Cc: dbrownell@users.sourceforge.net; Eric Miao;
> spi-devel-general@lists.sourceforge.net
> Subject: [PATCH] spi: fix list scan success verification in PXA ssp driver
>
> 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;
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] spi: fix list scan success verification in PXA ssp driver
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
1 sibling, 0 replies; 3+ messages in thread
From: eric miao @ 2008-06-05 8:54 UTC (permalink / raw)
To: Guennadi Liakhovetski
Cc: linux-kernel, dbrownell, eric miao, spi-devel-general, ARM Linux
Acked-by: Eric Miao <eric.miao@marvell.com>
And this should really go through the ARM tree, please submit the
patch to RMK's patch system. Thanks.
(I have to send this again through my gmail account, please ignore the
other copy if any,
sorry for this)
On Thu, Jun 5, 2008 at 4:37 PM, Guennadi Liakhovetski
<g.liakhovetski@pengutronix.de> wrote:
> 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;
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
--
Cheers
- eric
^ 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®