]> git.baikalelectronics.ru Git - kernel.git/commit
ice: introduce ice_base_incval function
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 13 Oct 2021 15:47:20 +0000 (08:47 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 21 Dec 2021 17:11:02 +0000 (09:11 -0800)
commit1455444870c5e0f31af27e6568692d2223bd9d44
tree9cbbc5fd04e308762490f887378486343e68580a
parentf084fb7a7daa8364145cb50ffc01a4f1082d1c82
ice: introduce ice_base_incval function

A future change will add additional possible increment values for the
E822 device support. To handle this, we want to look up the increment
value to use instead of hard coding it to the nominal value for E810
devices. Introduce ice_base_incval as a function to get the best nominal
increment value to use.

For now, it just returns the E810 value, but will be refactored in the
future to look up the value based on the device type and configured
clock frequency.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ptp.c