linux_dsm_epyc7002/drivers/net/ethernet/intel/igb
Jiri Benc 75517d9211 igb: fix PHC stopping on max freq
For 82576 MAC type, max_adj is reported as 1000000000 ppb. However, if
this value is passed to igb_ptp_adjfreq_82576, incvalue overflows out of
INCVALUE_82576_MASK, resulting in setting of zero TIMINCA.incvalue, stopping
the PHC (instead of going at twice the nominal speed).

Fix the advertised max_adj value to the largest value hardware can handle.
As there is no min_adj value available (-max_adj is used instead), this will
also prevent stopping the clock intentionally. It's probably not a big deal,
other igb MAC types don't support stopping the clock, either.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Matthew Vick <matthew.vick@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2013-03-26 03:21:34 -07:00
..
e1000_82575.c igb: fix i350 anti spoofing config 2013-03-26 02:47:50 -07:00
e1000_82575.h igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00
e1000_defines.h igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00
e1000_hw.h igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00
e1000_i210.c igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00
e1000_i210.h igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00
e1000_mac.c igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00
e1000_mac.h igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00
e1000_mbx.c igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00
e1000_mbx.h igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00
e1000_nvm.c igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00
e1000_nvm.h igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00
e1000_phy.c igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00
e1000_phy.h igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00
e1000_regs.h igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00
igb_ethtool.c igb: increase timeout for ethtool offline self-test 2013-02-15 21:46:54 -08:00
igb_hwmon.c igb: make sensor info static 2013-03-26 03:14:48 -07:00
igb_main.c igb: SR-IOV init reordering 2013-03-26 03:07:27 -07:00
igb_ptp.c igb: fix PHC stopping on max freq 2013-03-26 03:21:34 -07:00
igb.h igb: Fix for lockdep issue in igb_get_i2c_client 2013-03-05 01:25:27 -08:00
Makefile igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00