]> git.baikalelectronics.ru Git - kernel.git/commit
igb: ethtool -d reads EICR which is incorrect as it is read on clear
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 26 Aug 2008 11:25:05 +0000 (04:25 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 27 Aug 2008 09:16:30 +0000 (05:16 -0400)
commitebaa16bad1ddb054912a44b32fc928cf18b0a1fa
tree058932d84ae9e88ba4f4a2f184222278c5cdcb99
parent18524b4fe9acefac3b47cf924b4267af82b45961
igb: ethtool -d reads EICR which is incorrect as it is read on clear

Ethtool -d is reading the EICR and ICR registers which is currently
clearing these registers and masking off interrupts.  To prevent this we
read the EICS and ICS equivilents as they can be read without clearing or
masking.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/igb/igb_ethtool.c