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