Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25292rwd; Wed, 24 May 2023 13:34:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6vzycZ+droNOXpNayw363AL8xfxAwLafQrI4iar9UnE1egCSPd4PHMZ2nathV7bCIyLkXN X-Received: by 2002:a17:902:d2ce:b0:1a9:90bc:c3c6 with SMTP id n14-20020a170902d2ce00b001a990bcc3c6mr19704607plc.16.1684960442434; Wed, 24 May 2023 13:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684960442; cv=none; d=google.com; s=arc-20160816; b=Azv80lCOeDqS/2A1nIZZ80pRNWKQJJWNIS1XDEE/aL9AHUUhq7zxBSiBt4OzTVwzzR PKmB0V6ksd3qk1ViQOFZSbkvwI5ZCLaY5N1SpnF2IP3BrOMemrM3TuVFXX4L1jFaEhKH MOWPDOt/Hiorzx+xxrhP16Q0RGQG2myWmQGI+/26hZugHlxetEY22D8EJgAjZ1oliNf1 MBv0ON9nhZ4Ff/PGLirYGeWFVOjMergjv20oMlzifYo5E07ueYl3pfNmNCG844kroYXV TdIqAm5frvlhZGXemxU8w+itS3V0zmqRFi6AW8msvrbEXVskeEKL/dvmZiNp2UuFOsvq 3Fpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=dVXrSa9eps6197mlhDW0wlvhygfqywDXFbK8GDGZ+pM=; b=sLjijDTSnemq0Ft+EO/+VYWnkfoXBeHjl+Zbl5W9eOPzDPLWSEs3m7/aHgBN6tbXl2 /dgt0WsWnu8BwFSPPaO+AWGFU2+NKN59bJ79rA3ZTQwmxdrDdkx3XPkcKFOeUXpsBsFj zUyJwy68kyn6oVV2JDDXoDdkNzU71XUwzJJngbKcKppNeTdHn3Xp5h3DNJ9Ji0vXsx0x 6b9tzCpRmVfUIbS1UHN/hnbbZmjHbCCVTgf5ZfYa6J+6xox7HY5WisVsY08LI2YGR4z1 syg8f4CJE3suLht+x62faULmK/Y262iSiAjl/7jdqkUvKyqD5Sb6/OoWvD1FC+vKbnBs djhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=dfMXzQ7D; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a170902e98900b001a94429df88si145981plb.123.2023.05.24.13.33.49; Wed, 24 May 2023 13:34:02 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=dfMXzQ7D; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235952AbjEXT6f (ORCPT + 99 others); Wed, 24 May 2023 15:58:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233435AbjEXT6d (ORCPT ); Wed, 24 May 2023 15:58:33 -0400 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AAD6199; Wed, 24 May 2023 12:58:19 -0700 (PDT) Received: by mail-qk1-x736.google.com with SMTP id af79cd13be357-75b08ceddd1so19101485a.1; Wed, 24 May 2023 12:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684958298; x=1687550298; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dVXrSa9eps6197mlhDW0wlvhygfqywDXFbK8GDGZ+pM=; b=dfMXzQ7D7gXj0Wg/xJwb7g6XusaR2UShrQkjH9QTED5eN/ocr/Wt31vUZXzr2MTnrH KVA5Qk/SVBX8Cirt0GlaNW/W8N9H/IHjoNnbCOZHYAjg2B1+r//1ykdVJKWMVM4kW2Ir zoTV1CNMxlC20v74mkAph3q3+ErWDSsWmuzE++sfdd4zz6UpHTtl6XI1cPz+ZviBJ1GY l//Q3ZZPx2vfURG+txB/pyif4pgZBVT0l141HD04nP/f0LbphI+6CU1f/kDb5T82ANho 9wSoN7DSK60mRnictRdNdMC9w18eC/EEOJr3A4SA4PgBhc2vWcLnalYDmbaZ3vujeyfD sc4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684958298; x=1687550298; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dVXrSa9eps6197mlhDW0wlvhygfqywDXFbK8GDGZ+pM=; b=Iq9Aj/q3+oiO7fB8p2Qk6wS9nXI5vv9H6f20oN+hYVCjsYHAmRNPLjYzCmicclPrkx 93V7cchYy4JKBmXdd361KVEr0sYY92UK4Nj46+k3BysFIcKWTDl9iE9+JGQSJgdcnfKd eWhTDDW4mzKVt5KfgZ6PI8C6SoVThWo89NtUlV7cOiSA3XgWZBl6TYhu2emWhdYuTuLo g/hqJt7gCaP0rtFKMzXgtxoFh5NuF0E3yvOEs6epqqHvAc6m+zufArcg7xF1/UYOCLFc TCSU+9S2ERCA0BSmqryxP60UPimflzJDWZ2Tb9POim6Nxylg2khsHDj98ucciOoI5snz 9Sjg== X-Gm-Message-State: AC+VfDw+FoP9CsvRWnWFqkb9XInYvz5O2u5EEE8Iu4oLuz1oy+SwekSS AIN35NJAVbhDPTotE0R32sAcAtBmrsNZJh0TkhEVxFUS98SbeA== X-Received: by 2002:a05:6214:d02:b0:61b:5afc:d4be with SMTP id 2-20020a0562140d0200b0061b5afcd4bemr31110518qvh.7.1684958298520; Wed, 24 May 2023 12:58:18 -0700 (PDT) MIME-Version: 1.0 References: <20230522200033.2605-1-mario.limonciello@amd.com> <20230522200033.2605-3-mario.limonciello@amd.com> In-Reply-To: From: Andy Shevchenko Date: Wed, 24 May 2023 22:57:42 +0300 Message-ID: Subject: Re: [PATCH v2 3/4] pinctrl: amd: Use pm_pr_dbg to show debugging messages To: "Rafael J. Wysocki" Cc: Mario Limonciello , hdegoede@redhat.com, linus.walleij@linaro.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-pm@vger.kernel.org, Shyam-sundar.S-k@amd.com, Basavaraj.Natikar@amd.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed, May 24, 2023 at 9:28=E2=80=AFPM Rafael J. Wysocki wrote: > On Tue, May 23, 2023 at 6:55=E2=80=AFPM wrote= : > > Mon, May 22, 2023 at 03:00:32PM -0500, Mario Limonciello kirjoitti: ... > > > - dev_dbg(&gpio_dev->pdev->dev, > > > - "GPIO %d is active: 0x%x", > > > - irqnr + i, regval); > > > + pm_pr_dbg("GPIO %d is active: 0x%x", > > > + irqnr + i, regval); > > > > Regression 1: The device is now omitted from the output. > > Right. > > > Regression 2: See https://stackoverflow.com/a/43957671/2511795 > > Care to elaborate? I'm not sure what you mean exactly. dev_dbg has 3 cases how it prints its content: 1/ With dynamic debug when it's enabled. 2/ With -DDEBUG if it's defined for the certain file(s) in the Makefile. 3/ No print. pm_pr_dbg relies on CONFIG_PM_SLEEP_DEBUG, pm_debug_messages_on and not on -DDEBUG. I haven't checked all relations between those 3, but it seems to me that DEBUG is not equivalent to the others. CONFIG_PM_SLEEP_DEBUG=3Dn prevents printing with the dynamic debug on. OTOH I dunno how this is relevant to the functionality of the driver in question. Maybe it's okay to have such changes. --=20 With Best Regards, Andy Shevchenko