soc: qcom: stats: Mark device as having no PM support
authorStephen Boyd <swboyd@chromium.org>
Sat, 15 Oct 2022 00:49:34 +0000 (17:49 -0700)
committerBjorn Andersson <andersson@kernel.org>
Mon, 17 Oct 2022 22:58:15 +0000 (17:58 -0500)
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>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221015004934.3930651-2-swboyd@chromium.org
drivers/soc/qcom/qcom_stats.c

index 121ea40..6228af0 100644 (file)
@@ -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;
 }