rtc: nvidia-vrs10: Disable IRQ wake when resume fails
PATCH 1/1 rtc: nvidia-vrs10: Disable IRQ wake when resume fails
nvvrs_rtc_suspend() enables IRQ wake, but nvvrs_rtc_resume() returns early if the I2C access to clear FORCE_ACT fails. This leaves a wake reference held across later suspend and resume cycles.
Disable IRQ wake on the error path before returning the I2C error.
Fixes 9d6d6b06933c ("rtc: nvvrs: add NVIDIA VRS RTC device driver")
Signed-off-by Hungyu Lin <[email protected]>
--- drivers/rtc/rtc-nvidia-vrs10.c | 1 + 1 file changed, 1 insertion(+)
drivers/rtc/rtc-nvidia-vrs10.c +1 -0
@@ -505,6 +505,7 @@ static int nvvrs_rtc_resume(struct device *dev)if (ret <0 ) {dev_err (info->dev,"Failed to clear FORCE_ACT bit (%d)\n" , ret); +disable_irq_wake (info->irq);return ret; }
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
[email protected]
AI reviewSashiko has reviewed this patch and found no issues.
Quoted 9 lines
nvvrs_rtc_suspend()enables IRQ wake, butnvvrs_rtc_resume()returns early if the I2C access to clearFORCE_ACTfails. This leaves a wake reference held across later suspend and resume cycles.Disable IRQ wake on the error path before returning the I2C error.
Fixes 9d6d6b06933c ("rtc: nvvrs: add NVIDIA VRS RTC device driver")Signed-off-by Hungyu Lin <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1