From patchwork Sat Oct 15 00:46:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 13007553 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06288C4332F for ; Sat, 15 Oct 2022 00:46:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229541AbiJOAq7 (ORCPT ); Fri, 14 Oct 2022 20:46:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiJOAq6 (ORCPT ); Fri, 14 Oct 2022 20:46:58 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32FC273310 for ; Fri, 14 Oct 2022 17:46:57 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id f140so6353560pfa.1 for ; Fri, 14 Oct 2022 17:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=R97F6tafPKuH3Wb7fiZxQjJXQ8j8fICZkLtVUZ7PMKs=; b=QLOUkKXyXKxnryU68yEhMzW1PSO+tRC1EVQ8JePXkfSzUNUQJ0RadH5pPzjAzQTFIT X+zIARW2wZiFSM0322qGBZ8JMTApMuHr87RSSBerUKjjkwMjN6cySAwNasjkY+rfRB6g FH8xHUljGnHr+qyB3oOQFLvZTK5dme12KdxQQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=R97F6tafPKuH3Wb7fiZxQjJXQ8j8fICZkLtVUZ7PMKs=; b=iInU/3fU/tS82q4APzO6eCAr08uyq9iBFJ/vZx9Dgu/uQW1k/2inOStsHUqBHsjh4y KYkeltnNsLUsQX0kct1bjwLFdznOaZZL/MURWK+6v98Rhtj9XbNfEa5/FkDEdWWfAFIU ysApRXXtwsGSDNqWPwXCFAZhhtjQm5QzLAqH8IZ6pwEAfOyKNEUh9ym+Z4jpb1pQl3Ag V1oT0JMmYeBuua/sxchMU/o4DWWZJ4ZjHnA1+vGX+xePm5Ysjt9dNNHiV+iFofkogz4V O0y56OMPJZl9C40Sdw5dF4MIIHvjWGz5Q4mUaAcvOc9jj+WTfaZ6jFWZ6MITNeD4ohCe CBbQ== X-Gm-Message-State: ACrzQf0D8SJMyQytQFSKaE+z/20k8Q/KCw+e9DQkowZH0gmJ27XSIs+f COhUmHdbNQc3125uFvXkWKeIrQ== X-Google-Smtp-Source: AMsMyM5BFZx0QDc7pR9+g4YFHVAhun5z2HILPgjazDPHaBjdjuDPXO1Gf0dWyqcBdWzhp7aXYiemcg== X-Received: by 2002:a63:1145:0:b0:46a:e00c:579c with SMTP id 5-20020a631145000000b0046ae00c579cmr479334pgr.279.1665794816651; Fri, 14 Oct 2022 17:46:56 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:9d:2:9f6e:fc87:d13f:1fa6]) by smtp.gmail.com with ESMTPSA id b4-20020a170902bd4400b0016d72804664sm2230802plx.205.2022.10.14.17.46.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 17:46:55 -0700 (PDT) From: Stephen Boyd To: Andy Gross , Bjorn Andersson Cc: linux-kernel@vger.kernel.org, patches@lists.linux.dev, linux-arm-msm@vger.kernel.org, Konrad Dybcio Subject: [PATCH 1/2] soc: qcom: cmd-db: Mark device as having no PM support Date: Fri, 14 Oct 2022 17:46:53 -0700 Message-Id: <20221015004654.3930122-1-swboyd@chromium.org> X-Mailer: git-send-email 2.38.0.413.g74048e4d9e-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Signed-off-by: Stephen Boyd Reviewed-by: Konrad Dybcio --- drivers/soc/qcom/cmd-db.c | 2 ++ 1 file changed, 2 insertions(+) base-commit: 4fe89d07dcc2804c8b562f6c7896a45643d34b2f 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; } From patchwork Sat Oct 15 00:46:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 13007554 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20941C433FE for ; Sat, 15 Oct 2022 00:47:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229540AbiJOArA (ORCPT ); Fri, 14 Oct 2022 20:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbiJOAq7 (ORCPT ); Fri, 14 Oct 2022 20:46:59 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 864A4760E0 for ; Fri, 14 Oct 2022 17:46:58 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id 70so6337293pjo.4 for ; Fri, 14 Oct 2022 17:46:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZQKr6gxcoyxbVjA/4utImOsMAnHB8ip1bwqG26rMhL0=; b=EWIIqrjn5mCAhLJM9VhfqrSQSfuHVkDTsVSgY/QN7vgNwzOFewGxxedSAVqzUWWaF5 5WTBxM5EpiZ2+QfWi0l+6KNhgjao1+6+zW3Qm7lvVIr7TN5TfyZqnD7Mgm0dGXdiejKG Tyluw59VaUDWZG2fI3MirIJt19Y743wDnGfMI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZQKr6gxcoyxbVjA/4utImOsMAnHB8ip1bwqG26rMhL0=; b=vV+l3yBXLLtSHOZckfd+OWMxt90cRADPSBkprobUDn5y2/kHIrlsQcaVG405GHxJ+V JJttGLT2w5gRzO0egyJZ0MTcImJiBk1adLFnHD9IdhCUNu6xjxR6xkfp7hf95xYUo1fz VblVYVonPTEsT+pZa/pAN8KZYutmqCyK7JgM3+zsSGadtG2KKfh27knQtBWLnN2wTcmB xEWI2kHFWKlL/OsSEAeoc2ZFhV+IOl4QW+W03Pot3d+LvduciHxedDO5b3Rlnt0SrsWC peTv3+idvyZLNLP0tOvu1BpqMHzyuOq3koV69F3EcgjMlKvtUF/UgPxE5jPA2WUUt0iY w2OA== X-Gm-Message-State: ACrzQf30Nz3QOM2oZ/p0LQRVtQuioCI1zdrtg8QUAOyoEJ83zkyrdGIi xzV3I51MblPw6jxUbuO6Re4Iu/aazIE96g== X-Google-Smtp-Source: AMsMyM7r29oBpMR7H67b79mXzxvDdQ1x+Np6mKFbOgC+l7l79oMFiIig5TI4oJF8rpKPcfykzgpfLw== X-Received: by 2002:a17:90b:390c:b0:20d:a662:dac2 with SMTP id ob12-20020a17090b390c00b0020da662dac2mr12830551pjb.5.1665794818059; Fri, 14 Oct 2022 17:46:58 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:9d:2:9f6e:fc87:d13f:1fa6]) by smtp.gmail.com with ESMTPSA id b4-20020a170902bd4400b0016d72804664sm2230802plx.205.2022.10.14.17.46.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 17:46:57 -0700 (PDT) From: Stephen Boyd To: Andy Gross , Bjorn Andersson Cc: linux-kernel@vger.kernel.org, patches@lists.linux.dev, linux-arm-msm@vger.kernel.org, Konrad Dybcio Subject: [PATCH 2/2] soc: qcom: stats: Mark device as having no PM support Date: Fri, 14 Oct 2022 17:46:54 -0700 Message-Id: <20221015004654.3930122-2-swboyd@chromium.org> X-Mailer: git-send-email 2.38.0.413.g74048e4d9e-goog In-Reply-To: <20221015004654.3930122-1-swboyd@chromium.org> References: <20221015004654.3930122-1-swboyd@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Signed-off-by: Stephen Boyd Reviewed-by: Konrad Dybcio --- drivers/soc/qcom/qcom_stats.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soc/qcom/qcom_stats.c b/drivers/soc/qcom/qcom_stats.c index d6bfd1bbdc2a..d89453a77408 100644 --- a/drivers/soc/qcom/qcom_stats.c +++ b/drivers/soc/qcom/qcom_stats.c @@ -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; }