Skip to contentSkip to conversation

drm/bridge: ensure bridge suspend happens during PM sleep

PATCH Superseded Harigovindan P 3 participants 3 messages Apr 22, 2020 – May 28, 2020

Subsystems (5)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/bridge: ensure bridge suspend happens during PM sleep

ti-sn65dsi86 bridge is enumerated as a runtime device.

Adding sleep ops to force runtime_suspend when PM suspend is requested on the device.

This change needs to be taken along with the series:
https://patchwork.kernel.org/patch/11494309/

---
 drivers/gpu/drm/bridge/ti-sn65dsi86.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/bridge/ti-sn65dsi86.c +2 -0
index 6ad688b320ae..2eef755b2917 100644
@@ -159,6 +159,8 @@ static int __maybe_unused ti_sn_bridge_suspend(struct device *dev)
 
 static const struct dev_pm_ops ti_sn_bridge_pm_ops = {
 	SET_RUNTIME_PM_OPS(ti_sn_bridge_suspend, ti_sn_bridge_resume, NULL)
+	SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
+				pm_runtime_force_resume)
 };
 
 static int status_show(struct seq_file *s, void *data)
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

The subject is not specific enough. I'd expect it to be something like:

drm/bridge: ti-sn65dsi86: ensure bridge suspend happens during PM sleep

Quoting Harigovindan P (2020-04-22 02:04:43)

Quoted 7 lines

ti-sn65dsi86 bridge is enumerated as a runtime device.

Adding sleep ops to force runtime_suspend when PM suspend is requested on the device.

This change needs to be taken along with the series:
https://patchwork.kernel.org/patch/11494309/

Why? It doesn't seem like it should be required to go along with a qcom specific driver patch.

Quoted 3 lines

---

Besides the subject:

reviewer
#2 lore raw

Hi,

Quoted 18 lines · Stephen Boyd

The subject is not specific enough. I'd expect it to be something like:

drm/bridge: ti-sn65dsi86: ensure bridge suspend happens during PM sleep

Quoting Harigovindan P (2020-04-22 02:04:43)

Quoted 7 lines

ti-sn65dsi86 bridge is enumerated as a runtime device.

Adding sleep ops to force runtime_suspend when PM suspend is requested on the device.

This change needs to be taken along with the series:
https://patchwork.kernel.org/patch/11494309/

Why? It doesn't seem like it should be required to go along with a qcom specific driver patch.

Quoted 1 line
Quoted 6 lines
Quoted 2 lines

---

Besides the subject:

Are you planning to re-post with the changes Stephen requested? Maybe CC Sam too who was nice enough to help land some of my recent changes to this driver.

-Doug
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel