| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | Re: [PATCH 1/2] PCI: make pci_claim_resource() work with conflict resources as appropriate |
| From: | Deng-Cheng Zhu <dengcheng.zhu@gmail.com> |
| Date: | Fri, 29 Jul 2011 13:33:25 +0800 |
| Cc: | jbarnes@virtuousgeek.org, torvalds@linux-foundation.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, eyal@mips.com, zenon@mips.com |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8yQRqh8LI931lfAfsERrOCOtyRo8krVWc9s2uz0iYts=; b=Zpfdg8tD0PJvkkaXYz1SFj7HXEkj4D4WJc9M7HNN/UMmyL4M1NfUm/BzYOq8TTg97d jzZerUE77FFvHd/OGeCmknl+EAM3pNzKZw0vkjCoctCOjygl9p8Sd5QoKS5Y9klX6s+L 0HH1Znudg/5EZTXK6gMvH1CbfSLIJ66OBklcc= |
| In-reply-to: | <20110728115330.GA29899@linux-mips.org> |
| References: | <1311852512-7340-1-git-send-email-dengcheng.zhu@gmail.com> <1311852512-7340-2-git-send-email-dengcheng.zhu@gmail.com> <20110728115330.GA29899@linux-mips.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
|
I noticed that at 79896cf42f Linus changed the function from insert_resource() to request_resource() (and later evolved into request_resource_conflict()) and he explained the reason. So, in the NIC's case, the problem is that in pci_claim_resource() the function pci_find_parent_resource() returns the root (0x0-0xffffff) rather than the MSC PCI I/O (0x1000-0xffffff). So request_resource_conflict() for PCI quirks (0x1000-0x103f and 0x1100-0x110f) will simply return an error, coz these 2 regions 'conflict' with MSC PCI I/O. Instead, insert_resource_conflict() will also find the collisions but register quirks as children of MSC PCI I/O (is this supposed to be correct?) and return a success. Deng-Cheng 2011/7/28 Ralf Baechle <ralf@linux-mips.org>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] [48/50] SERIAL: SC26xx: Fix link error., Andi Kleen |
|---|---|
| Next by Date: | Re: [PATCH] SOUND: Fix txx9aclc.c build, Takashi Iwai |
| Previous by Thread: | Re: [PATCH 1/2] PCI: make pci_claim_resource() work with conflict resources as appropriate, Ralf Baechle |
| Next by Thread: | Re: [PATCH 1/2] PCI: make pci_claim_resource() work with conflict resources as appropriate, Deng-Cheng Zhu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |