Skip to contentSkip to conversation

soc: qcom: cmd-db: Mark device as having no PM support

PATCH Superseded Stephen Boyd 2 participants 4 messages Oct 15, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 soc: qcom: cmd-db: Mark device as having no PM support

This driver purely exposes information from memory to the kernel. Let's mark it as not having any device PM functionality, so that during suspend we skip even trying to call a suspend function on this device. This clears up suspend logs more than anything else, but it also shaves a few cycles off suspend.

---
 drivers/soc/qcom/cmd-db.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/soc/qcom/cmd-db.c +2 -0
index 629a7188b576..33856abd560c 100644
@@ -338,6 +338,8 @@ static int cmd_db_dev_probe(struct platform_device *pdev)
 
 	debugfs_create_file("cmd-db", 0400, NULL, NULL, &cmd_db_debugfs_ops);
 
+	device_set_pm_not_required(&pdev->dev);
+
 	return 0;
 }
 

base-commit: 4fe89d07dcc2804c8b562f6c7896a45643d34b2f

Signature · 1 line
https://chromeos.dev
#1 lore raw

PATCH 2/2 soc: qcom: stats: Mark device as having no PM support

This driver purely exposes information from memory to the kernel. Let's mark it as not having any device PM functionality, so that during suspend we skip even trying to call a suspend function on this device. This clears up suspend logs more than anything else, but it also shaves a few cycles off suspend.

---
 drivers/soc/qcom/qcom_stats.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/soc/qcom/qcom_stats.c +2 -0
index d6bfd1bbdc2a..d89453a77408 100644
@@ -217,6 +217,8 @@ static int qcom_stats_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, root);
 
+	device_set_pm_not_required(&pdev->dev);
+
 	return 0;
 }
 
Signature · 1 line
https://chromeos.dev
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] soc: qcom: stats: Mark device as having no PM support

Quoted 9 lines · Stephen Boyd

This driver purely exposes information from memory to the kernel. Let's mark it as not having any device PM functionality, so that during suspend we skip even trying to call a suspend function on this device. This clears up suspend logs more than anything else, but it also shaves a few cycles off suspend.

---

Konrad

Quoted 16 lines
 drivers/soc/qcom/qcom_stats.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/soc/qcom/qcom_stats.c +2 -0
index d6bfd1bbdc2a..d89453a77408 100644
@@ -217,6 +217,8 @@ static int qcom_stats_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, root);
 
+	device_set_pm_not_required(&pdev->dev);
+
 	return 0;
 }
 
Reviewed-by on v1 1/2
#3 lore raw
In reply to Stephen Boyd
Quoted 9 lines · Stephen Boyd

This driver purely exposes information from memory to the kernel. Let's mark it as not having any device PM functionality, so that during suspend we skip even trying to call a suspend function on this device. This clears up suspend logs more than anything else, but it also shaves a few cycles off suspend.

---

Konrad

Quoted 18 lines
 drivers/soc/qcom/cmd-db.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/soc/qcom/cmd-db.c +2 -0
index 629a7188b576..33856abd560c 100644
@@ -338,6 +338,8 @@ static int cmd_db_dev_probe(struct platform_device *pdev)
 
 	debugfs_create_file("cmd-db", 0400, NULL, NULL, &cmd_db_debugfs_ops);
 
+	device_set_pm_not_required(&pdev->dev);
+
 	return 0;
 }
 

base-commit: 4fe89d07dcc2804c8b562f6c7896a45643d34b2f