]> www.infradead.org Git - users/jedix/linux-maple.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)
commit78267d0c9cabf09e85559e7ac24e4c712d5eadad
tree9cbbc5fd04e308762490f887378486343e68580a
parent4809671015a1bd2e7ab811f8a998375cec10f54f
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