From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 15 Jan 2008 10:20:27 -0700 From: "Mark A. Greer" To: Stephen Rothwell Subject: Re: [PATCH 1/4] powerpc: mv64x60 - Use early_* PCI accessors for hotswap reg Message-ID: <20080115172027.GA26853@mag.az.mvista.com> References: <20080114225150.GB21940@mag.az.mvista.com> <20080115101936.d186329d.sfr@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20080115101936.d186329d.sfr@canb.auug.org.au> Cc: linuxppc-dev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Jan 15, 2008 at 10:19:36AM +1100, Stephen Rothwell wrote: > Hi Mark, Hi Stephen. Thanks for taking the time to review these patches. > On Mon, 14 Jan 2008 15:51:50 -0700 "Mark A. Greer" wrote: > > > > +static inline struct pci_controller *mv64x60_find_hose(u32 idx) > > +{ > > + struct device_node *phb; > > + struct pci_controller *hose; > > + const u32 *prop; > > + int len; > > + > > + for_each_compatible_node(phb, "pci", "marvell,mv64360-pci") { > > + prop = of_get_property(phb, "cell-index", &len); > > + if (prop && (len == sizeof(prop)) && (*prop == idx)) { > > + hose = pci_find_hose_for_OF_device(phb); > > + of_node_put(phb); > > + return hose; > > + } > > + } > > + > > + return NULL; > > +} > > I would think that this is way to big to inline ... Yeah, I suppose. I'm not sure why I made it an inline, TBH. I'll make it a "real" routine. Mark