From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH] mark PCI resource with start 0 as unassigned Date: Mon, 4 Dec 2006 13:38:55 +0100 (MET) Message-ID: <20061204123854.GA28159@aepfle.de> References: <20061130165202.GA23205@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20061130165202.GA23205@aepfle.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org Errors-To: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org To: linux-ide@vger.kernel.org, linuxppc-dev@ozlabs.org List-Id: linux-ide@vger.kernel.org mark pci resources with start 0 as unassigned libata calls pci_request_regions to claim bar 0 - 5 bar 5 has base 0. Tested on a p630 in SMP mode with pata_sl82c105 00:03.1 IDE interface: Symphony Labs SL82c105 (rev 05) (prog-if 8f [Master SecP SecO PriP PriO]) Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- --- arch/powerpc/kernel/pci_64.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c @@ -1234,6 +1234,14 @@ static void __devinit fixup_resource(str struct pci_controller *hose = pci_bus_to_host(dev->bus); unsigned long start, end, mask, offset; + /* + * tell the core code that this ressource is unassigned + * fixes p630 winbond IDE with libata + */ + if (res->start == 0) { + res->flags = 0; + return; + } if (res->flags & IORESOURCE_IO) { offset = (unsigned long)hose->io_base_virt - pci_io_base;