aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Boyd <swboyd@chromium.org>2022-10-14 17:49:33 -0700
committerSteev Klimaszewski <steev@kali.org>2022-10-26 10:58:42 -0500
commit4a95a4e27f55e1e2f3ee7a5aaa6b4fc2ed45f050 (patch)
tree95aea5470fdac64d05aec685a7ce4109da9cb7de
parent5096834f94d11ccd2c5a5fbfe97acdd94e32cd1f (diff)
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. Cc: Konrad Dybcio <konrad.dybcio@somainline.org> Signed-off-by: Stephen Boyd <swboyd@chromium.org>
-rw-r--r--drivers/soc/qcom/cmd-db.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/soc/qcom/cmd-db.c b/drivers/soc/qcom/cmd-db.c
index 629a7188b576..33856abd560c 100644
--- a/drivers/soc/qcom/cmd-db.c
+++ b/drivers/soc/qcom/cmd-db.c
@@ -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;
}