You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge: rtc: efi: Enable SET/GET WAKEUP services as optional
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/2031
The current implementation of rtc-efi is expecting all the 4
time services GET{SET}_TIME{WAKEUP} must be supported by UEFI
firmware. As per the EFI_RT_PROPERTIES_TABLE, the platform
specific implementations can choose to enable selective time
services based on the RTC device capabilities.
This patch does the following changes to provide GET/SET RTC
services on platforms that do not support the WAKEUP feature.
1) Relax time services cap check when creating a platform device.
2) Clear RTC_FEATURE_ALARM bit in the absence of WAKEUP services.
3) Conditional alarm entries in '/proc/driver/rtc'.
Cc: <stable@vger.kernel.org> # v6.0+
Signed-off-by: Shanker Donthineni <sdonthineni@nvidia.com>
Link: https://lore.kernel.org/r/20230102230630.192911-1-sdonthineni@nvidia.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 101ca8d)
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2166449
Testing:
cat /proc/driver/rtc on rtc-efi system that has
optional ALARM output to ensure it is still printed out, no regression.
Signed-off-by: Donald Dutile <ddutile@redhat.com>
Approved-by: Waiman Long <longman@redhat.com>
Approved-by: Lenny Szubowicz <lszubowi@redhat.com>
Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
0 commit comments