From patchwork Mon Jun 24 12:46:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 1951548 X-Patchwork-Delegate: caleb.connolly@linaro.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=zcA3hguC; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W775t1zXLz1ydW for ; Mon, 24 Jun 2024 22:47:30 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2806C882B7; Mon, 24 Jun 2024 14:47:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="zcA3hguC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9556988373; Mon, 24 Jun 2024 14:47:25 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3AA4688137 for ; Mon, 24 Jun 2024 14:47:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-57ccd1111aeso5046920a12.0 for ; Mon, 24 Jun 2024 05:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719233242; x=1719838042; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TrNS0WrO3zxbqdcRWPPIG2l/xj57+RHQEACow0lNkVQ=; b=zcA3hguCtOqZP7IAY6LSSYL8FPnbh1KKhrEbG3SuKdBASpojm8zl4clBeGfM/NBFFz 10IPk8mRFOvvzzgnh/wug4prjbuYA+lstIvXifi2Hsjzb+aX89PPJ+TOdP3pRi6pM2xt VV7HqsD6m6bL1eJtMQfxoCSZbCWIVQVONYh78YB2pUtEde9UeNTzdu0DJjDOKOql2LIB TQVAbN75BlzqX/WwWGhdAHSZlXAWfmvxqyZpsbhb1OtIGyW7wjGDT+tmKL51HYBTMyBY 59Hk28qM3TP0swAHKBiYoS19AOofGltNQJFs1OvycpMycECf5OWCnqX3lvHXECFOJ5Xf tuhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719233242; x=1719838042; 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=TrNS0WrO3zxbqdcRWPPIG2l/xj57+RHQEACow0lNkVQ=; b=kiWcMcr34/UP+pnK0UQfsocT6JUgjiOeO32T+tFDRNjpDHw6S4Z/Ot9gybQNXyLQpU Z0kWaW2mEz9U0MyTZ2lv8LdnoU+l0QNOn6FsYJLUak+24SGimYkS15Sjo4AxFg7H+nZ+ TZr48EPOGtnbWh89kKLf3E/jZ5CirHfiJJvMxYuhn1mtRA85vN6rMZsOWA71obl3nooL fAHSiVy1JKL4N06q3kcIswgbFTfoU6bloRrqH8vCuJvPhexmnYFkAPPJYzqGTARoCq8t ErVfJMbLoq3erO32q7icdg//jdE2AzYvkj0t7W1aeCv68R5hqCg/XRvZeYG3BqNhrx1A j5QA== X-Gm-Message-State: AOJu0YyicyoiilY0nbC1Ic/aaMhy/zs1FQBTBXntiXIq5FNPSBuhZCz1 3qapYIsAvH2SMvmrCeD7AtAkUCF+QxWmiCCPNors8eFtr6Ji4qHBTOmTHXbpayE= X-Google-Smtp-Source: AGHT+IHOWoHI475Ye5bO+QjCW0EDDc//XvrhuW5fQvz3CLFI+Cb+Olcoxfygr1Xg9fadyV5witZ9jA== X-Received: by 2002:a17:907:a4c7:b0:a6f:e529:adb5 with SMTP id a640c23a62f3a-a7242cda444mr347601366b.59.1719233242571; Mon, 24 Jun 2024 05:47:22 -0700 (PDT) Received: from cymric.caleb.rex.connolly.tech ([2a02:8109:aa0d:be00::52af]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6fe0ec4fd4sm297669166b.200.2024.06.24.05.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 05:47:22 -0700 (PDT) From: Caleb Connolly To: Caleb Connolly , Mateusz Kulikowski , Neil Armstrong , Sumit Garg , Tom Rini Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io Subject: [PATCH v2] spmi: msm: demote to debug() Date: Mon, 24 Jun 2024 14:46:27 +0200 Message-ID: <20240624124716.2610961-1-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.45.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Most devices have buttons exposed via the PMIC, the button polling therefore triggers a log spam if debug logging is enabled. Demote these to debug() so that they aren't printed unless LOG_DEBUG is defined explicitly for this file. Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong --- Changes since v1: - use debug() instead of just commenting out - V1: https://lore.kernel.org/u-boot/20240607142229.50709-1-caleb.connolly@linaro.org --- drivers/spmi/spmi-msm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spmi/spmi-msm.c b/drivers/spmi/spmi-msm.c index b0d6226041e5..a35cb0ba01e4 100644 --- a/drivers/spmi/spmi-msm.c +++ b/drivers/spmi/spmi-msm.c @@ -118,9 +118,9 @@ static int msm_spmi_write(struct udevice *dev, int usid, int pid, int off, return -EPERM; channel = priv->channel_map[usid][pid] & SPMI_CHANNEL_MASK; - dev_dbg(dev, "[%d:%d] %s: channel %d\n", usid, pid, __func__, channel); + debug("%s: [%d:%d] %s: channel %d\n", dev->name, usid, pid, __func__, channel); switch (priv->arb_ver) { case V1: ch_offset = SPMI_CH_OFFSET(channel); @@ -185,9 +185,9 @@ static int msm_spmi_read(struct udevice *dev, int usid, int pid, int off) return -EIO; channel = priv->channel_map[usid][pid] & SPMI_CHANNEL_MASK; - dev_dbg(dev, "[%d:%d] %s: channel %d\n", usid, pid, __func__, channel); + debug("%s: [%d:%d] %s: channel %d\n", dev->name, usid, pid, __func__, channel); switch (priv->arb_ver) { case V1: ch_offset = SPMI_CH_OFFSET(channel);