From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in-01.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.arcor.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id D6AEF67B8A for ; Wed, 6 Sep 2006 23:39:28 +1000 (EST) In-Reply-To: <20060905122956.2cebd36d@localhost.localdomain> References: <20060904175742.5472a6fa@localhost.localdomain> <20060905122956.2cebd36d@localhost.localdomain> Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <0C880511-D99D-4160-9EB1-A66B22B2D82F@kernel.crashing.org> From: Segher Boessenkool Subject: Re: [4/5] powerpc: PA Semi PWRficient platform support Date: Wed, 6 Sep 2006 15:38:54 +0200 To: Olof Johansson Cc: linuxppc-dev@ozlabs.org, paulus@samba.org, anton@samba.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > +#define PA_PXP_CFA(bus, devfn, off) (((bus) << 20) | ((devfn) << > 12) | (off)) > + hose->cfg_data = ioremap(0xe0000000, 0x1000000); Shouldn't that length be 0x10000000 then? Or can't you have more than 0x10 busses? > + bus_range = (int *) get_property(dev, "bus-range", &len); > + if (bus_range == NULL || len < 2 * sizeof(int)) { > + printk(KERN_WARNING "Can't get bus-range for %s, assume bus 0\n", > + dev->full_name); > + } Just kill all this "bus-range" stuff? Or do you really need it? > + np = of_find_node_by_type(np, "open-pic"); > + if (!np) { > + printk(KERN_ERR "No interrupt controller in device tree.\n"); > + return; > + } "device_type" for the MPIC should be "interrupt-controller", "open-pic" should be in the "compatible" property instead. > + /* Find address list in /platform-open-pic */ Erm, can't you get this info from the open-pic node itself? I know maple does it like this but that should be fixed ;-) > + mpic = mpic_alloc(mpic_node, openpic_addr, MPIC_PRIMARY, 0, 0, > + " PAS-OPIC "); > + BUG_ON(mpic == NULL); > + > + mpic_assign_isu(mpic, 0, openpic_addr + 0x10000); > + mpic_init(mpic); Very nice, I'll convert maple to do the same (unless someone beats me to it, heh). Segher