linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Fix ide-pmac sysfs entry
@ 2006-05-15  6:58 Benjamin Herrenschmidt
  2006-05-15  7:08 ` Andrew Morton
  0 siblings, 1 reply; 7+ messages in thread
From: Benjamin Herrenschmidt @ 2006-05-15  6:58 UTC (permalink / raw)
  To: Paul Mackerras
  Cc: Bartlomiej Zolnierkiewicz, Andrew Morton, linuxppc-dev list

It looks like the generic ide code now wants ide_init_hwif_ports() to
set the parent struct device into the ide_hw structure (new field ?).
Without this, the mac ide code can cause the ide probing code to explode
in flames in sysfs registration due to what looks like a stale pointer
in there (happens when removing/re-inserting one of the hotswap media
bays on some laptops).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---

Andew: That's a 2.6.17 candidate 

Index: linux-work/drivers/ide/ppc/pmac.c
===================================================================
--- linux-work.orig/drivers/ide/ppc/pmac.c	2006-04-19 15:04:47.000000000 +1000
+++ linux-work/drivers/ide/ppc/pmac.c	2006-05-15 16:43:20.000000000 +1000
@@ -553,6 +553,8 @@
 
 	if (irq != NULL)
 		*irq = pmac_ide[ix].irq;
+
+	hw->dev = &pmac_ide[ix].mdev->ofdev.dev;
 }
 
 #define PMAC_IDE_REG(x) ((void __iomem *)(IDE_DATA_REG+(x)))
 

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

end of thread, other threads:[~2006-05-21 21:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-15  6:58 [PATCH] powerpc: Fix ide-pmac sysfs entry Benjamin Herrenschmidt
2006-05-15  7:08 ` Andrew Morton
2006-05-15  7:23   ` Benjamin Herrenschmidt
2006-05-15  8:38     ` Gabriel Paubert
2006-05-15  8:52       ` Benjamin Herrenschmidt
2006-05-21 21:30         ` Gabriel Paubert
2006-05-21 21:46           ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).