From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A6652C433F5 for ; Sun, 8 May 2022 15:10:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 64EA483D9C; Sun, 8 May 2022 17:09:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="W/PQwb6b"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5353D83DC2; Sun, 8 May 2022 17:08:51 +0200 (CEST) Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (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 4891883DBF for ; Sun, 8 May 2022 17:08:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jbx6244@gmail.com Received: by mail-ej1-x62f.google.com with SMTP id kq17so22499670ejb.4 for ; Sun, 08 May 2022 08:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=L707ketXnLU0JSaaubQ+pe/51B0xnJjzqx/vrQLVukE=; b=W/PQwb6b9hsvY+3rvy00bPY5RjWzRzwy+xwQf/HNbnbB2BTQnqn/RZkuNmpVfWRubg gkY6ElPeimVmgY/+Ox9Ob83yEhF7ZBRG5opSARmK+igLeFRdzIsWFoU7ybpbIHSSjzme On+nw7LtXZIzmJ4ZYav7ocSdoyoXpwQzGPBxu27MKozXRzk+m/K/6vrcunsm5TAl+Hlh YrUR+dV4cHQa8TBSRuu7S2CnRUFMNpYxaPjk29Ej7Nlar1AWJxOCqgiVUHVoIf5waqZZ TK3GqD0MUtYzwiY4/b3UVavKzU+kz90hfimSjHMRQJFfEupQZCEW7+RPGnqJ3evOBVKR aTTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=L707ketXnLU0JSaaubQ+pe/51B0xnJjzqx/vrQLVukE=; b=QpLT3T7Otv0oojP690+dZsPCcet/TMfvCRHnd6rbDg+WZ3KXtXMNpKBbOVSf9PHVHp gGjkhmOl3TIoovdWXmaJ1yafu39Cb+LqaYoR/Ztlmeqdncx7CxWMmRq+3hZncgXkk9S/ 5tGnfLnGUU399hkT25NfkjobqKk53LhaDLsRTNG71m+upqexAJP6O7/mzfr9/2M/FKHe P3qzVpPOy7a3L7InHAMvAux4t0Q3001jv7oYeLktR5+X6h88Q30CUBPslG6vuJpYnZpa L9Mlzl8Rg5bRi34xDKWUDHclt9YSYgEpj/joZNIcAYmCLQ5I8SOF6I7jWjJD0H3Uqfza il5A== X-Gm-Message-State: AOAM53139n/k6IZs+Kyte7FscR/6L41vZWH7ZcOQ73+DVn4IPuu6KJp1 QBX/Te8czIl3xwZKyHUdqu8= X-Google-Smtp-Source: ABdhPJzGQGltrq43o3bnFvPEOvwFSQnaDv+m7Icxdmlv2EANjOuhRz2x/SLN5QOKhvEl2cTjuecMQA== X-Received: by 2002:a17:907:3e04:b0:6f5:1132:59de with SMTP id hp4-20020a1709073e0400b006f5113259demr11607767ejc.755.1652022518802; Sun, 08 May 2022 08:08:38 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id yl26-20020a17090693fa00b006f3ef214dc2sm4102721ejb.40.2022.05.08.08.08.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 08:08:38 -0700 (PDT) From: Johan Jonker To: kever.yang@rock-chips.com Cc: sjg@chromium.org, philipp.tomsich@vrull.eu, lukma@denx.de, marex@denx.de, u-boot@lists.denx.de Subject: [PATCH v1 09/17] rockchip: adc: reduce error notifications from class driver Date: Sun, 8 May 2022 17:08:17 +0200 Message-Id: <20220508150825.21711-10-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220508150825.21711-1-jbx6244@gmail.com> References: <20220508150825.21711-1-jbx6244@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.5 at phobos.denx.de X-Virus-Status: Clean The adc class driver reads optional "vss-supply" and "vdd-supply" properties. The SoC adc driver can parse for vref, so reduce error notifications when not found. Signed-off-by: Johan Jonker --- drivers/adc/adc-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/adc/adc-uclass.c b/drivers/adc/adc-uclass.c index e8ce638d..3dbdfa6f 100644 --- a/drivers/adc/adc-uclass.c +++ b/drivers/adc/adc-uclass.c @@ -446,12 +446,12 @@ static int adc_pre_probe(struct udevice *dev) /* Set ADC VDD plat: polarity, uV, regulator (phandle). */ ret = adc_vdd_plat_set(dev); if (ret) - pr_err("%s: Can't update Vdd. Error: %d", dev->name, ret); + pr_debug("%s: Can't update Vdd: %d", dev->name, ret); /* Set ADC VSS plat: polarity, uV, regulator (phandle). */ ret = adc_vss_plat_set(dev); if (ret) - pr_err("%s: Can't update Vss. Error: %d", dev->name, ret); + pr_debug("%s: Can't update Vss: %d", dev->name, ret); return 0; } -- 2.20.1