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; }