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: 807019 Delivered-To: patch@linaro.org Received: by 2002:a5d:508d:0:b0:362:4979:7f74 with SMTP id a13csp1863813wrt; Mon, 24 Jun 2024 05:47:28 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUVskUvDjvqj5Rdu7crdFvK8w0V3lY6Nxuy3uyoWovHFUqWuKwr+QJCNLMqtggmMB9aZkxaf2QIV/zduvbbZhaP X-Google-Smtp-Source: AGHT+IGv0poony8B2PEXBQZBX8SMQ6z2tnK+/f3r0ZXDyevIN64h+tzqLQTzyjMDQcheNtrouF1R X-Received: by 2002:a2e:3e13:0:b0:2ec:5685:f05f with SMTP id 38308e7fff4ca-2ec5938a771mr35609871fa.49.1719233248273; Mon, 24 Jun 2024 05:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719233248; cv=none; d=google.com; s=arc-20160816; b=nm6eBmnBa/zJdYV/eNTUbq5UWRFTb+OQSE+mq291Amr0OFmkovvD8Q7M+mD7eatNyQ bpyQJE4KrRzLaKCi2zFd6RT3jwMmiQAzDTUh4bgqKWQZrQclGjYGGrsiJsxvqB8JcZ3+ abgrinzIrmQIOaYEfgr8NW0gn6HLBhkQV2EoCsHfU9n9VSfoO+pM8IhD/8hCe+C6sVRq 8EAf6LzGOPzhTHGK8hVIHrQJcWU8QY5cI+rqcNr+KBJOKnqmHtOtIbvO9qLbxP46AeCg 6D/+w2spMa1/cw0pQ4asc400DyWP7fLKGK7x58EX2SJtZFpefPBMdbY9y4hFdQgDv8Xw Ylsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=TrNS0WrO3zxbqdcRWPPIG2l/xj57+RHQEACow0lNkVQ=; fh=nhPbArcQT7goT4gR3VvBSAyvRRMItm8/IpBouDHK8kA=; b=vZvu4O6w3rjOvNZU2/XA0UKSUTRZw0Fc4zYke0NN9XYRqc8c50nt3WalsUKOOWJcFE CkR4XM9vnahSKbL615v8TwFb59egAd0YgCe1gp5MZXwrwpQ6H2Fyamy6nTjOq+Sv9TM9 SLE+WqROCZ/BfKqkEkEhQNECIohjMweQx8Oa3ypk7VmcEycgVVNwsP+dexQu+o3aDnic 5RzPIE5DVLmbudCmydXRlGkRA13qJEgwfomtqXYgp/ba9q0nvhk1q6oOXXu0kYyc/Cwh TndmrAFBwuHqif5KFX2ndCtcm+eCJrtOj/lZ8VeZIEk0sLSoNjCVqwnqCq8ctBKBeEk5 kqNg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zcA3hguC; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57d306b624asi3579242a12.286.2024.06.24.05.47.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 05:47:28 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zcA3hguC; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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-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);