From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8864F346AE8; Tue, 17 Mar 2026 21:09:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773781794; cv=none; b=N1PXU8RXwKrpW9YZj2dUk5m9JrGJSI/Bfw40MAzSq0pnk55hehzUINz9aaLdJaI3nM47oAj8j12nZiWSzO+i+BtYDvxUJ3v31FuVWrCSw3lTjvrYBJafp6u2RwtXoeo6ZsqY4qx8X8PWQWLz1bLIAupuh5RBiG4OPElnm+HVVCk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773781794; c=relaxed/simple; bh=MnWGC7HeMn0onQGdlxyusL98lBFK6f+bwyuj7KV5zBg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cfNgxQlqpTb5AKC4DBLiph6oOwZdDWHqzwrLTAqQ4AqaM7TK8wfzWHjo1mYIkxkcpud+tAiI+aools6jWfYF3Qcss3EhhXJ4YbkThgGHy0eqhlkCZPL6x99NeNt/a7OoQnGQM/MAK+iCeytpOSAsG0Ckv+Rx/JCJawUgRPd/eh4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=PJAbZ52j; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="PJAbZ52j" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1773781794; x=1805317794; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=MnWGC7HeMn0onQGdlxyusL98lBFK6f+bwyuj7KV5zBg=; b=PJAbZ52jet52i/7guvv2ZWg4f77JvkYLwAdHc8USAK5IS2ZrR69UZ/uF VQR9mw+JCLeTbmoiNUzqL/4EgP9NCsK09e1BmtFfMf7144NB3zf7qjwod f4hzQxB+ALHu6FmoY69n/AOiDcZB2q9XaWUhuqrr3l3hudMczo3rHYo+T /ttTTrrKi5xwxeMy1Kd5DmWV7kIbaxLgtNmzE5eR2m4ZdlH6UL1Um+89t 7KeP3ZUo997DVwNncHS3W4WtoRNZrRIbVEWBXHIHU+eNlORZmAV1xYlGj JEW/FhoSeAtwYqLebnBCRSdybNzTtiGq5kZfmnWIrDFVvv1JBPrBKgjXt A==; X-CSE-ConnectionGUID: qxDFp6IhREWHgeoLM0NqrA== X-CSE-MsgGUID: 9KfeBDPrQ6u5Zc39JSltEA== X-IronPort-AV: E=McAfee;i="6800,10657,11732"; a="74527868" X-IronPort-AV: E=Sophos;i="6.23,126,1770624000"; d="scan'208";a="74527868" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2026 14:09:53 -0700 X-CSE-ConnectionGUID: oDXPjczDS/iIXulXJNalJA== X-CSE-MsgGUID: 26dPCyrGTAOavifEgRFBXA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,126,1770624000"; d="scan'208";a="226535489" Received: from abityuts-desk.ger.corp.intel.com (HELO localhost) ([10.245.245.97]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2026 14:09:51 -0700 Date: Tue, 17 Mar 2026 23:09:48 +0200 From: Andy Shevchenko To: Geert Uytterhoeven Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Carsten =?iso-8859-1?Q?Spie=DF?= , Guenter Roeck , Geert Uytterhoeven , Magnus Damm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Subject: Re: [PATCH v1 1/1] hwmon: (isl28022) Don't check for specific errors when parsing properties Message-ID: References: <20260219140532.2259235-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Thu, Feb 19, 2026 at 03:21:29PM +0100, Geert Uytterhoeven wrote: > On Thu, 19 Feb 2026 at 15:06, Andy Shevchenko > wrote: > > Instead of checking for the specific error codes (that can be considered > > a layering violation to some extent) check for the property existence first > > and then either parse it, or apply a default value. > IIRC, we have removed superfluous presence checks all over the tree > during the past few years? E.g. of_property_read_*() is documented to > return -EINVAL if a property does not exist. Implementation detail and actually not accurate. > So this patch looks like a step back to me... Not to me, just sent 20260317210828.2117631-1-andriy.shevchenko@linux.intel.com to clarify in the documentation what's this about. -- With Best Regards, Andy Shevchenko