mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/2] rtc-pm8xxx: fix rtc alarm which fired before driver probe not be cleard
@ 2024-04-01  1:56 jianbin zhang
  2024-04-01  1:56 ` [PATCH V4 1/2] rtc-pm8xxx: clear the triggered alarm interrupt during driver probe jianbin zhang
  2024-04-01  1:56 ` [PATCH V4 2/2] rtc-pm8xxx: Correct the value written into the PM8xxx_RTC_ALARM_CLEAR jianbin zhang
  0 siblings, 2 replies; 7+ messages in thread
From: jianbin zhang @ 2024-04-01  1:56 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Alexandre Belloni
  Cc: linux-arm-msm, linux-rtc, linux-kernel, jianbin zhang

Hi maintainers,

In this v4 patch series include following:
- Fix the issue that rtc alarm interrupt triggered befor driver probe is not cleared
- Correct the value written into PM8xxx_RTC_ALARM_CLEAR register in trigger function

Regarding the issue "Fix the issue that rtc alarm interrupt triggered befor driver probe is not cleared":
- Issue describtion as following
  If the alarm is triggered before the driver gets probed, the alarm interrupt
  will be missed and it won't be detected, and the stale alarm settings will
  be still retained because of not being cleared.
- Issue reproduce step:
  (1) set the alarm and poweroff the device
  (2) alarm happens and the device boots
  (3) poweroff the device again
  (4) alarm irq not be cleard, device boots again

Regarding "Correct the value written into PM8xxx_RTC_ALARM_CLEAR"
- Writing 1 to the register is expected to clear the fired alarm
 register. In patch v2, the value written to the register in the
 trigger function is incorrectly written as 0. So correct the value
 to 1.

Signed-off-by: jianbin zhang <quic_jianbinz@quicinc.com>
---
jianbin zhang (2):
      rtc-pm8xxx: clear the triggered alarm interrupt during driver probe
      rtc-pm8xxx: Correct the value written into the PM8xxx_RTC_ALARM_CLEAR

 drivers/rtc/rtc-pm8xxx.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
base-commit: 317c7bc0ef035d8ebfc3e55c5dde0566fd5fb171
change-id: 20240329-fix-rtc-alarm-which-fired-before-driver-probe-not-be-cleard-07c2180e5507

Best regards,
-- 
jianbin zhang <quic_jianbinz@quicinc.com>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-04-08  9:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-01  1:56 [PATCH v4 0/2] rtc-pm8xxx: fix rtc alarm which fired before driver probe not be cleard jianbin zhang
2024-04-01  1:56 ` [PATCH V4 1/2] rtc-pm8xxx: clear the triggered alarm interrupt during driver probe jianbin zhang
2024-04-05  2:45   ` Bjorn Andersson
2024-04-08  9:01     ` jianbin zhang
2024-04-01  1:56 ` [PATCH V4 2/2] rtc-pm8xxx: Correct the value written into the PM8xxx_RTC_ALARM_CLEAR jianbin zhang
2024-04-05  2:47   ` Bjorn Andersson
2024-04-08  9:19     ` jianbin zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®