igb: Changed LEDs blink mechanism to include designs using cathode
authorAkeem G. Abodunrin <akeem.g.abodunrin@intel.com>
Fri, 29 Mar 2013 08:22:25 +0000 (08:22 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 21 May 2013 09:25:25 +0000 (02:25 -0700)
commitcf7ed221714c36848b257311b316452e274f7e15
treec25231d0ddb720a4a32176d7bab2dfef9e86fccf
parent6c1d8b96d09ed8852f5bc11c42374be3232374ce
igb: Changed LEDs blink mechanism to include designs using cathode

This patch addresses the changes needed to make LEDs work properly with
negative logic. This implementation uses LED Invert bit to reverse the
logic issue that occurred when LEDs are driven by cathode. Keep LEDs
blinking for SerDes devices. Also made changes to magic number and the
for loop to reduce number of shifts.

Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/e1000_defines.h
drivers/net/ethernet/intel/igb/e1000_mac.c