]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Fix for issue where values could be too high for udelay function.
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Sat, 14 Dec 2013 11:26:46 +0000 (03:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Dec 2013 03:59:42 +0000 (22:59 -0500)
commit3c4f6257b888c02c9aea6478a4b0246426d5932b
tree38ca19e036da94e37077b07b65e533b24de809d7
parent2d833b9fba082a5efc5f4139efed6fa8ad9cdaea
igb: Fix for issue where values could be too high for udelay function.

This patch changes the igb_phy_has_link function to check the value of the
parameter before deciding to use udelay or mdelay in order to be sure that
the value is not too high for udelay function.

CC: stable kernel <stable@vger.kernel.org> # 3.9+
Signed-off-by: Sunil K Pandey <sunil.k.pandey@intel.com>
Signed-off-by: Kevin B Smith <kevin.b.smith@intel.com>
Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/igb/e1000_phy.c