]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: set device if before calling get_invariants
authorEmil Tantilov <emil.s.tantilov@intel.com>
Wed, 12 Oct 2016 19:34:25 +0000 (12:34 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 5 Nov 2016 00:24:46 +0000 (17:24 -0700)
commit0384b3a4e81cf100dee98c6a6313e0324fcb9e25
tree9d71fbc8c6936426580eeeb2ec1884453e013d9e
parenta1044b058afca3bf4878773546abeaaa874c895e
ixgbe: set device if before calling get_invariants

Fix an issue where set_phy_power was NULL for X550 copper devices
because get_invariants was called before hw->device_id was set.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c