wifi: iwlwifi: mvm: implement PHC clock adjustments
authorAvraham Stern <avraham.stern@intel.com>
Mon, 20 Mar 2023 10:33:07 +0000 (12:33 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 22 Mar 2023 12:16:35 +0000 (13:16 +0100)
commita2f49f7d52a9e7d0dce8f090541a28192b7abd59
tree719d7c21d60ac0e12338c7e6111eb750ee0231fd
parenta5de7de7e78eddd3ae16aec01c5601ae36c1c2e8
wifi: iwlwifi: mvm: implement PHC clock adjustments

Implement the following PHC operations:
1. adjtime - for adding an offset to the PHC clock time.
2. adjfine - for adjusting the PHC clock frequency.
3. gettime64 - for getting the PHC clock time. This function returns
   the time as adjusted by adjtime and adjfine.

The adjusted time will also be used for time sync frames timestamping.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230320122330.f59750deeee4.I110a7e3ac3c6d39d9dbe1fe77001e3f5bc3814eb@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/ptp.c
drivers/net/wireless/intel/iwlwifi/mvm/time-sync.c