Re: [PATCH V9] powerpc/fsl-pci: Unify pci/pcie initialization code

From
Scott Wood <hidden>
Date
2012-08-24 00:15:59
Reply to
Jia Hongtao, 2012-08-23
On 08/23/2012 04:31 AM, Jia Hongtao wrote:
quoted hunk ↗ jump to hunk
+static void mpc85xx_cds_pci_assign_primary(void)
+{
+#ifdef CONFIG_PCI
+	struct device_node *np;
+
+	if (fsl_pci_primary)
+		return;
+
+	/*
+	 * MPC85xx_CDS has ISA bridge but unfortunately there is no
+	 * isa node in device tree. We now looking for i8259 node as
+	 * a temporary workaround for such a broken device tree.
+	 * This can go away once the device tree is updated.
+	 */
It cannot go away once the device tree is updated, because we maintain
support for old device trees within reason.  It's not like this is core
kernel code; the cost of having this compatibility here is minimal, even
if the device trees we're staying compatible with are technically
broken.  Compare that to customer support effort if this breaks
someone's custom board with a forked device tree, or if upgrading the
device tree breaks someone's old U-Boot.

-Scott
Thread (3 messages) 3 messages, 2 authors, last reply 2012-08-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help