]> 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)
commit35d463d4b1025bbd6725586aacdc85b1e8a7f612
tree9cbbc5fd04e308762490f887378486343e68580a
parent50f1dab4194bee1f96661965ab804506cc0ba568
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