Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1869053rwi; Sat, 15 Oct 2022 04:33:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM72mXwPCdQyk9PEtpbgNFXyJUEB3BklEXzGmiZPa2uTMyQT2B9a0lFtjjM+t35lIKPPxRjV X-Received: by 2002:a50:fc0a:0:b0:458:73c0:7e04 with SMTP id i10-20020a50fc0a000000b0045873c07e04mr1920791edr.270.1665833603291; Sat, 15 Oct 2022 04:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665833603; cv=none; d=google.com; s=arc-20160816; b=RoyvlepbNi0ZfO+kYX6TIqUcqOXcPaM9sAjPByjbiB/rBx+ZxbwEZ48MXnrnEXFtir hqoqaSVXATnYLS4IwDQI6xaTpIZ3SSrnzo+dCHeRor1uodwtwPwYPet+NNYImHTEYYfz ryFpeQCFFZnWx46m80Ka8/Xa9aXEIdstNmegQncAROw2xpEetJEtt04z/sLWVk4FMPrN 2b2q/rfUnizr2ZgZ2PYJNrnVO3d6UF7W5UbtpsiySU4SleruidqWmv9VcJOVablUHhGg u+bqkRlBzJ36qvmeUATr6tyTe4y+iPnDaOjjxgfvt/CwgZEp3G6TF+oovHV0rn8ejo3S 4rxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=lWvE06mU5Pc9KF6Pp6f8jp+e5F5eXUO+pXB0tIYn4Xk=; b=mi+ftRM+tZsrhVfw+9pWd/BtsVI7pLPEsWEEtRSs6ar8wnJpZ6YKSQJjjG9aPEW+Q9 Wp56X+i46N4S1AqOSzXS3RumwMiwLk+OuH3WMRUxTXrdktpVabwr0KoKK4ooD0ivNait +uW4RhrNQvnHJEbV7fOE3ir1vYxsm9IMQo/Pz/63c3eM9i4/m6wlyatKEXQp6i/D0Y++ NVR3rj6PlpkIrJhe9px/+7i5UA51+izg9OTi/35cLZfIX0M1q4z1+lpYLEREYtdNkQ5I +fLkrOdQY5WMBgC593phuoVeXegK+pQRkdtjWNchEoNhRnVQ5Yep942y3tDEKisUWvKa x/BA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a1709065d0a00b0078277d265bcsi4366418ejt.204.2022.10.15.04.32.57; Sat, 15 Oct 2022 04:33:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229661AbiJOLPS (ORCPT + 99 others); Sat, 15 Oct 2022 07:15:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229622AbiJOLPR (ORCPT ); Sat, 15 Oct 2022 07:15:17 -0400 Received: from relay07.th.seeweb.it (relay07.th.seeweb.it [IPv6:2001:4b7a:2000:18::168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1144C31EC6 for ; Sat, 15 Oct 2022 04:15:11 -0700 (PDT) Received: from [192.168.1.101] (95.49.31.41.neoplus.adsl.tpnet.pl [95.49.31.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 010F13F311; Sat, 15 Oct 2022 13:15:08 +0200 (CEST) Message-ID: <517ccf1b-3ac4-6190-5039-4ef3f4de9840@somainline.org> Date: Sat, 15 Oct 2022 13:15:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH 2/2] soc: qcom: stats: Mark device as having no PM support To: Stephen Boyd , Andy Gross , Bjorn Andersson Cc: linux-kernel@vger.kernel.org, patches@lists.linux.dev, linux-arm-msm@vger.kernel.org References: <20221015004654.3930122-1-swboyd@chromium.org> <20221015004654.3930122-2-swboyd@chromium.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20221015004654.3930122-2-swboyd@chromium.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15.10.2022 02:46, Stephen Boyd wrote: > 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 Konrad > 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; > } >