Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Yu Zhao
Date: Monday, October 27, 2008 - 11:44 pm

On Tue, Oct 28, 2008 at 02:21:19PM +0800, Eric Dumazet wrote:

Yes, the VPD initialization code has been moved to a later stage that is
after the pci_fixup_header. Can you please try following fix?

Thanks,
Yu

VPD quirks needs to be called after the capability is initialized. Since
VPD initialization is move to after pci_fixup_header, VPD quirks should
be done at pci_fixup_final stage correspondingly.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index bbf66ea..5049a47 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -1692,24 +1692,24 @@ static void __devinit quirk_brcm_570x_limit_vpd(struct pci_dev *dev)
 	}
 }
 
-DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_BROADCOM,
-			 PCI_DEVICE_ID_NX2_5706,
-			 quirk_brcm_570x_limit_vpd);
-DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_BROADCOM,
-			 PCI_DEVICE_ID_NX2_5706S,
-			 quirk_brcm_570x_limit_vpd);
-DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_BROADCOM,
-			 PCI_DEVICE_ID_NX2_5708,
-			 quirk_brcm_570x_limit_vpd);
-DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_BROADCOM,
-			 PCI_DEVICE_ID_NX2_5708S,
-			 quirk_brcm_570x_limit_vpd);
-DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_BROADCOM,
-			 PCI_DEVICE_ID_NX2_5709,
-			 quirk_brcm_570x_limit_vpd);
-DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_BROADCOM,
-			 PCI_DEVICE_ID_NX2_5709S,
-			 quirk_brcm_570x_limit_vpd);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM,
+			PCI_DEVICE_ID_NX2_5706,
+			quirk_brcm_570x_limit_vpd);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM,
+			PCI_DEVICE_ID_NX2_5706S,
+			quirk_brcm_570x_limit_vpd);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM,
+			PCI_DEVICE_ID_NX2_5708,
+			quirk_brcm_570x_limit_vpd);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM,
+			PCI_DEVICE_ID_NX2_5708S,
+			quirk_brcm_570x_limit_vpd);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM,
+			PCI_DEVICE_ID_NX2_5709,
+			quirk_brcm_570x_limit_vpd);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM,
+			PCI_DEVICE_ID_NX2_5709S,
+			quirk_brcm_570x_limit_vpd);
 
 #ifdef CONFIG_PCI_MSI
 /* Some chipsets do not support MSI. We cannot easily rely on setting
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] PCI: Limit VPD length for Broadcom 5708S, Eric Dumazet, (Thu Jul 31, 11:27 am)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S, Jesse Barnes, (Thu Jul 31, 12:39 pm)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S, Eric Dumazet, (Mon Oct 27, 3:27 pm)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S, Benjamin Li, (Mon Oct 27, 8:26 pm)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S, Eric Dumazet, (Mon Oct 27, 11:21 pm)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S, Yu Zhao, (Mon Oct 27, 11:44 pm)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S, Eric Dumazet, (Tue Oct 28, 1:38 am)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S, Benjamin Li, (Tue Oct 28, 9:25 am)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S, Jesse Barnes, (Thu Oct 30, 9:14 am)
Re: [PATCH] PCI: Limit VPD length for Broadcom 5708S, Jesse Barnes, (Mon Nov 3, 3:37 pm)