ixgbe: Resolve NULL reference by setting {read, write}_reg_mdi
authorMark Rustad <mark.d.rustad@intel.com>
Fri, 26 Aug 2016 21:48:28 +0000 (14:48 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Sep 2016 07:13:14 +0000 (00:13 -0700)
Set the read_reg_mdi and write_reg_mdi method pointers for
X550EM_A_10G_T devices to resolve jumping to NULL.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c

index dec8b116e6a2f1a4dd2a2d0e89d3e541ac6a7aa5..cd22efb940ad4f9bd08f3a14a9ab44e8e533773f 100644 (file)
@@ -3049,6 +3049,8 @@ static const struct ixgbe_phy_operations phy_ops_x550em_a = {
        .identify               = &ixgbe_identify_phy_x550em,
        .read_reg               = &ixgbe_read_phy_reg_x550a,
        .write_reg              = &ixgbe_write_phy_reg_x550a,
+       .read_reg_mdi           = &ixgbe_read_phy_reg_mdi,
+       .write_reg_mdi          = &ixgbe_write_phy_reg_mdi,
 };
 
 static const u32 ixgbe_mvals_X550[IXGBE_MVALS_IDX_LIMIT] = {