i40e: check MAC type before any REG access
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 <4b729c6b7b4d2a4d26bd4285a6b862ce48bb85e3@intel.com>
Signed-off-by: Shannon Nelson <14bbe8f00ad7c6d888a504d41f5500c00531af99@intel.com>
Tested-by: Kavindya Deegala <0716ac131ef4b886955b7082f827ccaacb3c2837@intel.com>
Signed-off-by: Jeff Kirsher <87e35f5be20bb3e67f4ba6b86f5f6be3085b1b3a@intel.com>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs