From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C44EBB6F70 for ; Wed, 4 May 2011 15:33:07 +1000 (EST) Subject: Re: [PATCH 0/1] ppc4xx: Fix PCIe scanning for the 460SX From: Benjamin Herrenschmidt To: Ayman El-Khashab In-Reply-To: <1304109476.2513.243.camel@pasglop> References: <1302286930-9988-1-git-send-email-ayman@elkhashab.com> <1302306484.2458.64.camel@pasglop> <178c7df4696bacdd1510bacae143222a@mail.gmail.com> <20110429170240.GA21384@crust.elkhashab.com> <1304109476.2513.243.camel@pasglop> Content-Type: text/plain; charset="UTF-8" Date: Wed, 04 May 2011 15:32:46 +1000 Message-ID: <1304487166.2513.351.camel@pasglop> Mime-Version: 1.0 Cc: Tirumala Marri , linuxppc-dev@lists.ozlabs.org, Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, 2011-04-30 at 06:37 +1000, Benjamin Herrenschmidt wrote: > On Fri, 2011-04-29 at 12:02 -0500, Ayman El-Khashab wrote: > > On Tue, Apr 12, 2011 at 07:09:49PM -0700, Tirumala Marri wrote: > > > You originally submitted the support for 460ex. Can you chime in (and > > > review Ayman patch) please ? > > > > > > [Marri] Ben sure I will review it and send you my feedback in couple of > > > days. > > > > Is there any update on this patch? Any comment? Any reason it _cant_ > > be included? > > I'm tempted to put it in if Tirumala doesn't get to review it asap. Ok so after a closer review, the patch can't go in as-is. The code in there is meant to work on any 44x with runtime detection of the type of PCIe bridge. Your patch uses #ifdef's which breaks this. Please use the "compatible" property in the device-tree to identify the 460SX specific implementation (of_device_is_compatible(...)) and use that to trigger your changes. Also, the patch removes the code for waiting for the link to be up with a comment "What DCR has the link status on the 460SX?". Please fix that (Tirumala, can you provide the missing information ?) Cheers, Ben.