Re: [PATCH] pci device wakeup flags
From: Benjamin Herrenschmidt
Date: Fri Oct 28 2005 - 18:04:17 EST
On Fri, 2005-10-28 at 07:31 -0700, Linus Torvalds wrote:
>
> On Fri, 28 Oct 2005, Andrew Morton wrote:
> >
> > This is the patch which I've been religiously dropping from -mm because it
> > kills my Mac G5. What are we doing merging this?
>
> Well, since my main machine is a Mac G5, we certainly /aren't/ merging it
> if it kills it.
Yah, that's a known one, the problem is due to the removal of
device_initialize() from pci_device_add(). The breaks the new mecanism
on ppc64 that creates the PCI tree from the firmware instead of probing
the bus. In addition, even with that fixed, the code looking for PME#
will not be run on the pmac neither.
I'm not 100% what is the best fix at this point. I suppose it would be 2
things, let me know what you think about it:
- Have the ppc64 PCI tree code call device_initialize() itself before
calling pci_device_add()
- Move the search of PME# (and possibly other similar bits) from probe
to pci_device_add()
Ben.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/