Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5125432rwb; Mon, 8 Aug 2022 12:37:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR5oB833ilYTfIOn4KhqpNNd6CKeTHUJyLKX1+ZSQC2IAQoRfWj+oDLax+GK4V5dyrK5uKss X-Received: by 2002:a05:6402:916:b0:440:9bc5:da7a with SMTP id g22-20020a056402091600b004409bc5da7amr6686012edz.323.1659987472581; Mon, 08 Aug 2022 12:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659987472; cv=none; d=google.com; s=arc-20160816; b=ua0w8nLMDjhLnakokTS4PwuyPZeUZswBf4CpM+W5VcHv1ZjdZGDQ+EkPu8QSEUWVoS O17YRmZvQymQCiuyXYcY3jaW2CHqLseytL5xoYuS2Ufm83pGuu0xyzfizuPK+hoJaPfW zwfLazEe1hgdf3MY9CsIJgd375AKKvqT/pZwyQgwjj/c24jtIwbfiTVDV7gBEstQpg0g uMm+QAwD4EcmykKcsnYzlWXwoFDVVlvOy6P1JMtgC/trjb3OeJ3zCR16fB9a9M6tfH5h lSdyALeqLCe05Bns9ZG+JVp+GF2ShkL81gtkZvqU8+RnqLDDKwa8xr1rAyOltkwyJSp3 GC2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=cjApsE527+vjxy7MifBLDB/wEE1m9NLBNYusyTH6zIM=; b=Wh1HaMl4W8LsbGDYY+JM+4ZV/xTv5fNC9sOcPhoS5ZgVR0NQeR6nA2tg9IFgAssOFN HlYoh8UWyxZ2VGCqehJQk2845zaymRABKiczr8E33EKylK5khlK3LQHIxaoj0lmBnL6r T5DrjFUuQ04Fscw2byTS8CnhUmff4iYxN5sGw0HDktxw3CKLSXxw/3TvRUo2QhTQQJ5J yTNzXZ5uVPUybsK4B5bRULZfsAoQoIi2vCBFHEi896OLPFqzmbR7GXrasxvPG5xmS7VI +cLudKWYU6ve6Spiwv5S73pi8mIDJCl8p6bKiYWDkdcFQ1xzZeJIK4W0iBcNqOLtv21e tVCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=YY5Cqyqi; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd19-20020a170907629300b00711f63ebdb3si338887ejc.565.2022.08.08.12.37.19; Mon, 08 Aug 2022 12:37:52 -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=@walle.cc header.s=mail2016061301 header.b=YY5Cqyqi; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244143AbiHHTDF (ORCPT + 99 others); Mon, 8 Aug 2022 15:03:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238332AbiHHTDD (ORCPT ); Mon, 8 Aug 2022 15:03:03 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 954461151; Mon, 8 Aug 2022 12:03:02 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 216A72224F; Mon, 8 Aug 2022 21:03:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1659985380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cjApsE527+vjxy7MifBLDB/wEE1m9NLBNYusyTH6zIM=; b=YY5Cqyqi2EXeYlfcC9qpn/yJNyvMbXG3M2UtWZJSeo25KELerGFutoO+3mf3N9CtQFu8Qm G8StE/1G12VyjBwrLSY/LEvnRJYkaMMx9d9kwsVQ5xb1zzqbrvqpDx9btq0TShItZ33jID WHEAZutf0MGGyXpnbNjjerL7fw/BCz8= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 08 Aug 2022 21:03:00 +0200 From: Michael Walle To: Daniel Lezcano Cc: rafael@kernel.org, dan.carpenter@oracle.com, linux@roeck-us.net, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Amit Kucheria , Zhang Rui Subject: Re: [PATCH 2/4] thermal/of: Return -ENODEV instead of -EINVAL if registration fails In-Reply-To: <20220808180915.446053-2-daniel.lezcano@linaro.org> References: <20220808180915.446053-1-daniel.lezcano@linaro.org> <20220808180915.446053-2-daniel.lezcano@linaro.org> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <0b684e5cb8b97227cf2f5e2c2dc6d039@walle.cc> X-Sender: michael@walle.cc X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Am 2022-08-08 20:09, schrieb Daniel Lezcano: > The previous version of the OF code was returning -ENODEV if no > thermal zones description was found or if the lookup of the sensor in > the thermal zones was not found. > > The backend drivers are expecting this return value as an information > about skipping the sensor initialization and considered as normal. > > Fix the return value by replacing -EINVAL by -ENODEV > > Signed-off-by: Daniel Lezcano Tested-by: Michael Walle