Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtc: allow rtc_read_alarm without read_alarm callback #14

Open
wants to merge 1 commit into
base: lf-5.15.y
Choose a base branch
from

Conversation

DimaSNN
Copy link

@DimaSNN DimaSNN commented Oct 31, 2023

it is needed to fix RTC wakealarm feature: adb shell "echo +20 > /sys/class/rtc/rtc0/wakealarm" on kernel 5.15

.read_alarm is not necessary to read the current alarm because it is recorded in the aie_timer and so rtc_read_alarm() will never call rtc_read_alarm_internal() which is the only function calling the callback.

Port of: 1e276e8

[ Upstream commit a783c96 ]

.read_alarm is not necessary to read the current alarm because it is
recorded in the aie_timer and so rtc_read_alarm() will never call
rtc_read_alarm_internal() which is the only function calling the callback.

Reported-by: Zhipeng Wang <[email protected]>
Reported-by: Marcel Ziswiler <[email protected]>
Fixes: 7ae4122 ("rtc: introduce features bitfield")
Tested-by: Philippe Schenker <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants