[PATCH] PowerPC 44x: small warp-nand fix

STALE6638d

3 messages, 3 authors, 2008-06-06 · open the first message on its own page

[PATCH] PowerPC 44x: small warp-nand fix

From: Valentine Barshak <hidden>
Date: 2008-06-05 14:07:16

The "ndfc-chip" device doesn't need any resources. All resources
are handled by the "ndfc-nand" device. Registering the same memory
resource twice causes "cat /proc/iomem" to go into an infinite loop
displaying NDFC memory addresses.

Signed-off-by: Valentine Barshak <redacted>
---
 arch/powerpc/platforms/44x/warp-nand.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)
--- linux-2.6.orig/arch/powerpc/platforms/44x/warp-nand.c	2008-04-25 22:04:50.000000000 +0400
+++ linux-2.6/arch/powerpc/platforms/44x/warp-nand.c	2008-06-05 17:24:06.000000000 +0400
@@ -86,8 +86,7 @@ static struct platform_nand_chip warp_na
 static struct platform_device warp_nand_device = {
 	.name = "ndfc-chip",
 	.id = 0,
-	.num_resources = 1,
-	.resource = &warp_ndfc,
+	.num_resources = 0,
 	.dev = {
 		.platform_data = &warp_nand_chip0,
 		.parent = &warp_ndfc_device.dev,

Re: [PATCH] PowerPC 44x: small warp-nand fix

From: Stefan Roese <sr@denx.de>
Date: 2008-06-05 14:35:45

On Thursday 05 June 2008, Valentine Barshak wrote:
The "ndfc-chip" device doesn't need any resources. All resources
are handled by the "ndfc-nand" device. Registering the same memory
resource twice causes "cat /proc/iomem" to go into an infinite loop
displaying NDFC memory addresses.

Signed-off-by: Valentine Barshak <redacted>
Acked-by: Stefan Roese <sr@denx.de>

Best regards,
Stefan

Re: [PATCH] PowerPC 44x: small warp-nand fix

From: Sean MacLennan <hidden>
Date: 2008-06-06 02:20:33

On Thu, 5 Jun 2008 16:28:18 +0200
"Stefan Roese" [off-list ref] wrote:
n Thursday 05 June 2008, Valentine Barshak wrote:
quoted
The "ndfc-chip" device doesn't need any resources. All resources
are handled by the "ndfc-nand" device. Registering the same memory
resource twice causes "cat /proc/iomem" to go into an infinite loop
displaying NDFC memory addresses.

Signed-off-by: Valentine Barshak <redacted>  
Acked-by: Stefan Roese <sr@denx.de>
Acked-by: Sean MacLennan <redacted>

Cheers,
  Sean
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help