e1000e: additional error handling on PHY register accesses
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 6 Mar 2013 09:02:31 +0000 (09:02 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 28 Mar 2013 06:13:47 +0000 (23:13 -0700)
commitbb034512da74dce901f738f7c7cea332ff971608
tree946c82771e4f965025e41b52cb5ec37f4860e818
parent8b49a4c75965ed157e21450d23dcadd6b27c1aa3
e1000e: additional error handling on PHY register accesses

PHY reads/writes via the MDIC register could potentially return results
from a previous PHY register access.  If that happens, the offset in the
returned results will be that of the previous access and if that is
different from the expected offset, log a debug message and error out.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/defines.h
drivers/net/ethernet/intel/e1000e/phy.c