Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1946051rwb; Tue, 29 Nov 2022 23:25:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf7vGUuw5+HrgQ3TX61o1M9DCMakJMThpv6z/63lgqywZRffIbGR7P6HDuElA4FBRL9mkfs4 X-Received: by 2002:a17:906:2552:b0:7ad:917b:61ec with SMTP id j18-20020a170906255200b007ad917b61ecmr37203217ejb.513.1669793126090; Tue, 29 Nov 2022 23:25:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669793126; cv=none; d=google.com; s=arc-20160816; b=MSRUz4RV9HiC7bqjp7zws3nTB/nop5SKxfolUgvgjFu0to9jBFDSu3fBQ8PvUN+xHl Xf7x9/lWtTvyqHa9U12pILnTJwTIIjld97vEe74yemhcV2EzHXvmufaK4XWCaecy9i62 P6RI8cefoZ/KisbhKYedXiAG3lo2bxgKW4BfqKiSHX0w5KzFbp0zKeBaPefq+KxL9rd3 I/svHwH/Q2LrqLcoFNifLV15u9NCjt5+Bbp8IQDe4C8fNaYNja8E/YGwgJAsPPOqQRbO D8v24TWMtaxeo76Yp9tyzRD3bRf0djqKCqzeOeSnxsQ5xwV2ZB04LVVYs6TeVSLA4s7y Pd9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=THX7z2vD75lkPLJc1ngzuoxJh3RbKc75nWhqhgmxF/M=; b=zwNH11a7X3S/DhzbGxVGoNe8BJEuGR7YR7iTfHV3SnK01XGIOOnWUzL3xyryLnmkFU A9QQmVqkZjVf873uSclJvmug5yaKbFEu/yC7/mifuGv3bInc7s7aUCraRasUyh0vhD4a pi9eSUnwJZ5xE4ay3NVCnRtYdQlGECUyYGD9JfBo50BqoJUwp88jowITW9euMJIoUazD kZsxU2mczlpWBQxYcyOU2UpPDcBspBml4gLNqhLoN3bPDMdK2AtgX2qX3Uue+muEA16P oMq8D6U0FfOendMzlrAKvz/mcbaBsKp2tao653c4E+ZzB/Rdc/BkeLBGRnTDOw6ftnQR CT2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FkGfwcnD; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w18-20020a50fa92000000b00463a83ce065si659663edr.420.2022.11.29.23.25.06; Tue, 29 Nov 2022 23:25:26 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=FkGfwcnD; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232771AbiK3G6n (ORCPT + 84 others); Wed, 30 Nov 2022 01:58:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbiK3G6j (ORCPT ); Wed, 30 Nov 2022 01:58:39 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3871C45EDA; Tue, 29 Nov 2022 22:58:39 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9B407619FF; Wed, 30 Nov 2022 06:58:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5AF6C433C1; Wed, 30 Nov 2022 06:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669791518; bh=UPn87SuCEaBIS5BcR3nzG+AStBcEMcDjQCg0b/Pfris=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FkGfwcnDyw54vqozJHYqlMT7Siv1hrXyXBCYM4IYqISraXT0Q/fXwH/g9yJ63Wnx1 XRBHgB1qxrACQCw0YFZFl5J5NekrTfYDlFkiNRNVrCAG0aByEbF0cJX0lV3F+AaBVF OPNGv2mo1ivIhWOQXb6VnrVEZ+0fvp4AOEDWyGQEIYhT/k9xUgL2YsHgF2AUuE48FM j3aDE0HMRD0LA9OuvRF0bOrEv09/JyKHSMxcgVeEcGuu/VMica32ug1LDohpZXgXE7 XN7XUBLFuahhnmmMrHab55JBKixLyBRTkjCrRWLUAmCLf3l1qkYrNUnq+Nwzd5lZOW W6iSyWnxANjqA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1p0H3I-0007jD-1p; Wed, 30 Nov 2022 07:58:40 +0100 Date: Wed, 30 Nov 2022 07:58:40 +0100 From: Johan Hovold To: Daniel Lezcano Cc: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , Konrad Dybcio , "Rafael J. Wysocki" , Zhang Rui , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] thermal: qcom-spmi-adc-tm5: suppress probe-deferral error message Message-ID: References: <20221102152630.696-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221102152630.696-1-johan+linaro@kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Wed, Nov 02, 2022 at 04:26:30PM +0100, Johan Hovold wrote: > Drivers should not be logging errors on probe deferral. Switch to using > dev_err_probe() to log failures when parsing the devicetree to avoid > errors like: > > qcom-spmi-adc-tm5 c440000.spmi:pmic@0:adc-tm@3400: get dt data failed: -517 > > when a channel is not yet available. > > Signed-off-by: Johan Hovold > --- > drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c > index a3310bf061cb..c70615d2d771 100644 > --- a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c > +++ b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c > @@ -1031,10 +1031,8 @@ static int adc_tm5_probe(struct platform_device *pdev) > return irq; > > ret = adc_tm5_get_dt_data(adc_tm, node); > - if (ret) { > - dev_err(dev, "get dt data failed: %d\n", ret); > - return ret; > - } > + if (ret) > + return dev_err_probe(dev, ret, "get dt data failed\n"); > > ret = adc_tm->data->init(adc_tm); > if (ret) { Daniel, I noticed this one hasn't been picked up yet (at least it's not in linux-next). Is this something you can do? Johan