From patchwork Sat Oct 15 00:49:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 13007556 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 C81BBC433FE for ; Sat, 15 Oct 2022 00:49:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229560AbiJOAt4 (ORCPT ); Fri, 14 Oct 2022 20:49:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbiJOAtt (ORCPT ); Fri, 14 Oct 2022 20:49:49 -0400 Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 453E31EEFC for ; Fri, 14 Oct 2022 17:49:48 -0700 (PDT) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-132b8f6f1b2so7721933fac.11 for ; Fri, 14 Oct 2022 17:49:48 -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=pfHTz2OiIbmF5iJHdVMyVQbaziXuWRN/1ILDt+PkeHY=; b=MrSYbcpuKKcBRkcAzlV3l7P6XU9wDVllDs/MR3NbeWINr715oJSEWn6iEsPc1CSQWj MI0zrDOx6A/wPXt2bIf3TQMUhIEyDYJPQCI6ZBYGqK0zBlJE03t0IEeb+wHG/5oobp6/ VXIGFF063PHMRaDxv9u4jZuxjaQl23euz1tdU= 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=pfHTz2OiIbmF5iJHdVMyVQbaziXuWRN/1ILDt+PkeHY=; b=JdkTXkCX2WYSO0wLhuArxcAsoIBRgO/8pi26bT7RsrS8/dT/NYZaX/ePSPoocw61Lu 6VFePvKj6/R4kJyzicwJcO8n5itHU4SxBgLitUcYcltnsDr21hS+SB6lLE7oTpdzfmV7 KDHxqR1dtBZxge0WcwZ8S5gYDtKEDGPLtKLMPuyuF9NsUjhrTtzAw2RWh8190jCQd6u6 ap+Fu2RES88BY/spbqmFkxa3/FkkqpBOdiFEnwRkpsP9OS6HJopyLyg28U6z2rX9cq+t jc8ZhV0E0m3Cnv/591gyX0acgtqcARZk7IyK5NWxe42YdVsBAzgMtWuZbtmbrbixMwIQ i2lA== X-Gm-Message-State: ACrzQf3Oz2qqZaMGXOfw4+fCqzdSaWyWdbkNNaTW8XvhbFfSks8NZ1lZ gMiX0Qhf6uXJARbKVJnU9rp5h0BkQiVMLA== X-Google-Smtp-Source: AMsMyM4VVo6qGwJQySMZ7zlfLU0Fq5lgz4oc223JraE6Pou5fDW6iQi7VlQERJsrU1YszVLxPDT9sA== X-Received: by 2002:a17:90b:4b49:b0:20d:3e36:3c7d with SMTP id mi9-20020a17090b4b4900b0020d3e363c7dmr20717121pjb.52.1665794976652; Fri, 14 Oct 2022 17:49:36 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:9d:2:9f6e:fc87:d13f:1fa6]) by smtp.gmail.com with ESMTPSA id i10-20020a170902c94a00b00179f370dbe7sm2256142pla.287.2022.10.14.17.49.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 17:49:36 -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 RESEND 1/2] soc: qcom: cmd-db: Mark device as having no PM support Date: Fri, 14 Oct 2022 17:49:33 -0700 Message-Id: <20221015004934.3930651-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 --- Resend to fix Bjorn's email. 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:49:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 13007555 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 6FC09C4332F for ; Sat, 15 Oct 2022 00:49:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229491AbiJOAtn (ORCPT ); Fri, 14 Oct 2022 20:49:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiJOAtm (ORCPT ); Fri, 14 Oct 2022 20:49:42 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D9A2219A for ; Fri, 14 Oct 2022 17:49:38 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id d7-20020a17090a2a4700b0020d268b1f02so9381886pjg.1 for ; Fri, 14 Oct 2022 17:49:38 -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=UNaV+xml2akMbPhD2QHmFAA8pfCMe+3CkGKIM72CP1hO+V/OAyZ9/cBQxOEE7dgQq4 v5KaiMedRXdVjRLj2/4q03YlrRHnmyBYA05i4epji0U1mO7XL00ry82NsBb5slWwEPrG ohpL4iEFpvBjbupLCA/wiaAvRHB12BMZEisx0= 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=WFqRZxXqHckJeW2p60uFr6eo9u0oLjfxhMzIlD3fZM7zSDIhRHZVmJ9fkN0x+ZiChR Dhxoul7P9UHtrWiW0fPsFRVwJUuMOZtsm/BzZHLiLEYLGdYBr1ITKuMQUyOKjw4jKuLK WsUpoRBkx0d1n8jhVtSxauUED6+6dTmpp3N7XdmKKgoB9Ud+i10UlFmOKq9pAU/c9O+4 oDYM/SugJwHrRMQbmZQuBlfniJ147YYj9BF7mnZajXeUgRckGHPCFBzCPhZGMz+E6PhR RFuAWUzJRQmNg+hKsH/UbvoJsONrzG5KFV9pIZSUZUOdiaSijLgBnjp5mLuNnhvTpnN6 WC5Q== X-Gm-Message-State: ACrzQf0TSBmCIu4QylJ0nJCpZQp4k8hmHlDUAfc9CbtzbbHuu4HblgE1 J8U6R4Pw+E+J6Rp0NwINrtw5ow== X-Google-Smtp-Source: AMsMyM5M+YvV5wFht/uuppEYJ/Zz+P9fRYkhf/H0EYK2VZM6XBBCA5PfpfebdJ8em7GzUb7eg+YdAA== X-Received: by 2002:a17:90b:17c4:b0:20d:4d79:55b1 with SMTP id me4-20020a17090b17c400b0020d4d7955b1mr631817pjb.125.1665794977885; Fri, 14 Oct 2022 17:49:37 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:9d:2:9f6e:fc87:d13f:1fa6]) by smtp.gmail.com with ESMTPSA id i10-20020a170902c94a00b00179f370dbe7sm2256142pla.287.2022.10.14.17.49.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 17:49:37 -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 RESEND 2/2] soc: qcom: stats: Mark device as having no PM support Date: Fri, 14 Oct 2022 17:49:34 -0700 Message-Id: <20221015004934.3930651-2-swboyd@chromium.org> X-Mailer: git-send-email 2.38.0.413.g74048e4d9e-goog In-Reply-To: <20221015004934.3930651-1-swboyd@chromium.org> References: <20221015004934.3930651-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 --- 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; }