Skip to content
Commit 64f3cf4c authored by Marcin Wojtas's avatar Marcin Wojtas Committed by Ard Biesheuvel
Browse files

Marvell: RealTimeClockLib: Rework LibGetWakeupTime/LibSetWakeupTime



Apply multiple fixes to the Marvell RealTimeClockLib wakeup
library callbacks.

LibGetWakeupTime:
* Add input parameters validation
* Fix 'Pending' value check

LibSetWakeupTime:
* Allow disabling the wakeup timer regardless the input 'Time' value
* Use more generic 'Time' value verification, which is more strict
  than the replaced custom one.
* Use proper alarm mask for 'Pending' signalling

With above the ACS3.0 FWTS and SCT timer tests pass cleanly.

Signed-off-by: default avatarMarcin Wojtas <mw@semihalf.com>
Reviewed-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 26a6b249
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment