From patchwork Sun Mar 28 13:02:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Radensky X-Patchwork-Id: 88769 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2SD21XY023394 for ; Sun, 28 Mar 2010 13:02:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754587Ab0C1NBt (ORCPT ); Sun, 28 Mar 2010 09:01:49 -0400 Received: from vega.surpasshosting.com ([72.29.83.9]:50917 "EHLO vega.surpasshosting.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754586Ab0C1NBs (ORCPT ); Sun, 28 Mar 2010 09:01:48 -0400 Received: from bzq-79-183-32-182.red.bezeqint.net ([79.183.32.182]:50748 helo=localhost.localdomain) by vega.surpasshosting.com with esmtpa (Exim 4.69) (envelope-from ) id 1Nvs7c-0006Tb-LH; Sun, 28 Mar 2010 09:01:45 -0400 From: Felix Radensky To: linux-pci@vger.kernel.org Cc: kaneshige.kenji@jp.fujitsu.com, Felix Radensky Subject: [PATCH] PCI: Allow manual resource allocation for PCI hotplug bridges Date: Sun, 28 Mar 2010 16:02:02 +0300 Message-Id: <1269781322-24693-1-git-send-email-felix@embedded-sol.com> X-Mailer: git-send-email 1.5.4.3 In-Reply-To: <> References: <> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vega.surpasshosting.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embedded-sol.com Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 28 Mar 2010 13:02:02 +0000 (UTC) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 81d19d5..52f42c6 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -2533,6 +2533,19 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x1518, quirk_i82576_sriov); #endif /* CONFIG_PCI_IOV */ +/* Allow manual resource allocation for PCI hotplug bridges + * via pci=hpmemsize=nnM and pci=hpiosize=nnM parameters. For + * some PCI-PCI hotplug bridges, like PLX 6254 (former HINT HB6), + * kernel fails to allocate resources when hotplug device is + * inserted and PCI bus is rescanned. + */ +static void __devinit quirk_hotplug_bridge(struct pci_dev *dev) +{ + dev->is_hotplug_bridge = 1; +} + +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_HINT, 0x0020, quirk_hotplug_bridge); + /* * This is a quirk for the Ricoh MMC controller found as a part of * some mulifunction chips.