Skip to content

Commit a55de41

Browse files
committed
bus: ti-sysc: Do not disable on suspend for no-idle
If we have "ti,no-idle" specified for a module we must not disable the the module on suspend to keep things backwards compatible. Fixes: 386cb76 ("bus: ti-sysc: Handle missed no-idle property in addition to no-idle-on-init") Reported-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent afe6f1e commit a55de41

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎drivers/bus/ti-sysc.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,8 @@ static int __maybe_unused sysc_noirq_suspend(struct device *dev)
12781278

12791279
ddata = dev_get_drvdata(dev);
12801280

1281-
if (ddata->cfg.quirks & SYSC_QUIRK_LEGACY_IDLE)
1281+
if (ddata->cfg.quirks &
1282+
(SYSC_QUIRK_LEGACY_IDLE | SYSC_QUIRK_NO_IDLE))
12821283
return 0;
12831284

12841285
return pm_runtime_force_suspend(dev);
@@ -1290,7 +1291,8 @@ static int __maybe_unused sysc_noirq_resume(struct device *dev)
12901291

12911292
ddata = dev_get_drvdata(dev);
12921293

1293-
if (ddata->cfg.quirks & SYSC_QUIRK_LEGACY_IDLE)
1294+
if (ddata->cfg.quirks &
1295+
(SYSC_QUIRK_LEGACY_IDLE | SYSC_QUIRK_NO_IDLE))
12941296
return 0;
12951297

12961298
return pm_runtime_force_resume(dev);

0 commit comments

Comments
 (0)