i40e: check MAC type before any REG access
authorShannon Nelson <shannon.nelson@intel.com>
Wed, 11 Dec 2013 08:17:14 +0000 (08:17 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 8 Jan 2014 05:49:53 +0000 (21:49 -0800)
commitaf89d26c076001ee18c3323fae7e4f27863e93de
treec7b5ad5ad38e5367ea0206bc16cc20db64311cf8
parent5f9116ac4e6dc29e147643e0dd27dee3190c34e7
i40e: check MAC type before any REG access

We need to check if we are dealing with the correct MAC type before we
try to read anything from the registers.

Change-Id: I3989516999d06c3009e87d6a2eafc20af305c5c2
Signed-off-by: Kamil Krawczyk <kamil.krawczyk@intel.com>
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_common.c