]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ixgbe: Fix PCI bus reporting on driver load for 82598 after 82599 merge
authorPJ Waskiewicz <peter.p.waskiewicz.jr@intel.com>
Thu, 19 Mar 2009 01:23:29 +0000 (01:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2009 08:17:25 +0000 (01:17 -0700)
82598's PCI bus reporting on driver load was broken after 82599 merged.
This results in incorrect reporting, and an erroneous warning message
that the 82598 is in a PCIe slot that isn't fast enough to run 10GbE.

Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_82598.c

index 623737fb719bd6e728086c772c225a852fcd7c06..ed265a7a898faea70408ae635c92328ae54003a7 100644 (file)
@@ -79,6 +79,9 @@ static s32 ixgbe_get_invariants_82598(struct ixgbe_hw *hw)
        s32 ret_val = 0;
        u16 list_offset, data_offset;
 
+       /* Set the bus information prior to PHY identification */
+       mac->ops.get_bus_info(hw);
+
        /* Call PHY identify routine to get the phy type */
        ixgbe_identify_phy_generic(hw);