Commit 0782b66
rtc: cmos: Fix wake alarm breakage
Commit 4919d3e ("rtc: cmos: Fix event handler registration
ordering issue") overlooked the fact that cmos_do_probe() depended
on the preparations carried out by cmos_wake_setup() and the wake
alarm stopped working after the ordering of them had been changed.
Address this by partially reverting commit 4919d3e so that
cmos_wake_setup() is called before cmos_do_probe() again and moving
the rtc_wake_setup() invocation from cmos_wake_setup() directly to the
callers of cmos_do_probe() where it will happen after a successful
completion of the latter.
Fixes: 4919d3e ("rtc: cmos: Fix event handler registration ordering issue")
Reported-by: Zhang Rui <rui.zhang@intel.com>
Reported-by: Todd Brandt <todd.e.brandt@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/5887691.lOV4Wx5bFT@kreacher
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>1 parent 9abf231 commit 0782b66
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1233 | 1233 | | |
1234 | 1234 | | |
1235 | 1235 | | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
1236 | 1239 | | |
1237 | 1240 | | |
1238 | 1241 | | |
| |||
1286 | 1289 | | |
1287 | 1290 | | |
1288 | 1291 | | |
1289 | | - | |
1290 | 1292 | | |
1291 | 1293 | | |
1292 | 1294 | | |
| |||
1354 | 1356 | | |
1355 | 1357 | | |
1356 | 1358 | | |
| 1359 | + | |
| 1360 | + | |
1357 | 1361 | | |
1358 | 1362 | | |
1359 | 1363 | | |
| |||
1372 | 1376 | | |
1373 | 1377 | | |
1374 | 1378 | | |
1375 | | - | |
| 1379 | + | |
1376 | 1380 | | |
1377 | 1381 | | |
1378 | 1382 | | |
| |||
1461 | 1465 | | |
1462 | 1466 | | |
1463 | 1467 | | |
| 1468 | + | |
1464 | 1469 | | |
1465 | 1470 | | |
1466 | 1471 | | |
| |||
1474 | 1479 | | |
1475 | 1480 | | |
1476 | 1481 | | |
1477 | | - | |
| 1482 | + | |
1478 | 1483 | | |
1479 | 1484 | | |
1480 | 1485 | | |
| |||
0 commit comments