From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: What is the correct way to indicate an unassigned PCI resource ? Date: Fri, 05 Jan 2007 23:05:06 +1100 Message-ID: <1167998706.22458.22.camel@localhost.localdomain> References: <4FC2EBCF-C927-435A-9BE3-E4403AFC042D@kernel.crashing.org> <45741DDE.4080509@ru.mvista.com> <20061204132124.4f7c50a9@localhost.localdomain> <45742253.1000807@ru.mvista.com> <20061204142201.68d9621f@localhost.localdomain> <1165293679.29784.39.camel@localhost.localdomain> <20061205081557.GA8483@aepfle.de> <1165349941.5469.1.camel@localhost.localdomain> <20070104174947.GA3636@aepfle.de> <1167946240.5273.11.camel@localhost.localdomain> <20070105102618.GA9970@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from gate.crashing.org ([63.228.1.57]:55672 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161082AbXAEMFf (ORCPT ); Fri, 5 Jan 2007 07:05:35 -0500 In-Reply-To: <20070105102618.GA9970@aepfle.de> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Olaf Hering Cc: Alan , Sergei Shtylyov , linuxppc-dev@ozlabs.org, greg@kroah.com, linux-ide@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz On Fri, 2007-01-05 at 11:26 +0100, Olaf Hering wrote: > On Fri, Jan 05, Benjamin Herrenschmidt wrote: > > > Nah, but also set resource->end = 0 too and or-in IORESOURCE_UNSET for > > flags not (=) (or just set it to 0, I have no problem with completely > > clearing the resource, that will keep it out of the way) > > I get this output with the change below: > > Using INTC for W82c105 IDE controller. > W82c105: bn 0 dfn 19 > 00: f 0000000000000101 s 000000000000f000 e 000000000000f007 > 01: f 0000000000000101 s 000000000000f010 e 000000000000f013 > 02: f 0000000000000101 s 000000000000f020 e 000000000000f027 > 03: f 0000000000000101 s 000000000000f030 e 000000000000f033 > 04: f 0000000000000101 s 000000000000f040 e 000000000000f04f > 05: f 0000000000000101 s 0000000000000000 e 000000000000000f > 05: disable IO resource on W82c105 IDE controller > 06: f 0000000000000000 s 0000000000000000 e 0000000000000000 > 07: f 0000000000000000 s 0000000000000000 e 0000000000000000 > 08: f 0000000000000000 s 0000000000000000 e 0000000000000000 > 09: f 0000000000000000 s 0000000000000000 e 0000000000000000 > 10: f 0000000000000000 s 0000000000000000 e 0000000000000000 > 11: f 0000000000000000 s 0000000000000000 e 0000000000000000 > > If thats ok, I will submit a patch without the printk. If it works, I'm fine with it. Ben.