Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4550674ybz; Tue, 21 Apr 2020 02:38:58 -0700 (PDT) X-Google-Smtp-Source: APiQypI6rHrOZy9HQCqzeFMRutAfG7dT5vFfPXgATi8tOJekfGhq2zT/NL9N5QPbRL2HKIRdvIWN X-Received: by 2002:a05:6402:129a:: with SMTP id w26mr17205816edv.254.1587461938651; Tue, 21 Apr 2020 02:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587461938; cv=none; d=google.com; s=arc-20160816; b=M2T0ZG+mc3ndw2kWJ1YZPcggTW1HPfQn97XLE1EV0+nedf2Dr9+c2CX+coPNaQneAA K6G5GI4qam8GIyMosVPgWLKl5zKjzR+EV3dRtZf18l/OZcZf7mXrYlG1vrSFL5TZ55FT l7HkAX9p9HrPpgpRExNQ1uubfUJFMv65JgtF4VdEh3i5PsAGFYtu+5Sj46azpyGSqYcL wZ5dMZZFBSXXYs22QgW2M5z1XzLOXA9qM57WpFEBA19qNCpetJZBl2wpYwR6N+d527wt ppOFl/7alZ/oapfnHEO7lpYkPMsTrw8dkXBYZxrjEXe6YZ1JVrQk/NGCA3GzW+6iH/yQ CEdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=J2BoDdsx0NgQMYZTdQ2j3xBO2APhwS9hEe+J8xDxF8w=; b=JXeSZf1Jiv0htVulekEZNKwS55GAorYcce6UTm08/IxE5awn8HiGsuKFN5KTM/DXmB hxVrLOk+hL/dnliaLstABY+P1hhFZTMH2Krw+RakqA8aXlSiZB7IbbDm6jlMfIl9ZbCF cE0JRG27abp5HnonDurhc3i3eKeSBYgEkNAC0CqxlUDGISmwWHM7UfXPTf80uhe+qIk2 u4Er37skf89Howv1Rrrh8ZmtfDZU2oJOkkQDQqLFfaeyHT51VvFHax+9Qow0inWvugf5 xHopU3lkwt0glm7j4TLYeOYGlm9Qyq2lthMAY6R/braBHkCqQFZZYX5FaL211eok+QRt Uc/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs4si1287261ejb.275.2020.04.21.02.38.36; Tue, 21 Apr 2020 02:38:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728450AbgDUJhR (ORCPT + 99 others); Tue, 21 Apr 2020 05:37:17 -0400 Received: from sauhun.de ([88.99.104.3]:58132 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726628AbgDUJhR (ORCPT ); Tue, 21 Apr 2020 05:37:17 -0400 Received: from localhost (p54B336C5.dip0.t-ipconnect.de [84.179.54.197]) by pokefinder.org (Postfix) with ESMTPSA id E25912C1FBE; Tue, 21 Apr 2020 11:37:15 +0200 (CEST) Date: Tue, 21 Apr 2020 11:37:13 +0200 From: Wolfram Sang To: Aishwarya R , "Erhard F." Cc: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Greg Kroah-Hartman , Kate Stewart , Richard Fontana , Thomas Gleixner , linux-i2c@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: powermac: Simplify reading the "reg" and "i2c-address" property Message-ID: <20200421093712.GA1241@ninjato> References: <20200408100354.17782-1-aishwaryarj100@gmail.com> <20200415131916.23555-1-aishwaryarj100@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: <20200415131916.23555-1-aishwaryarj100@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 15, 2020 at 06:49:14PM +0530, Aishwarya R wrote: > >> Use of_property_read_u32 to read the "reg" and "i2c-address" property > >> instead of using of_get_property to check the return values. > >> > >> Signed-off-by: Aishwarya R >=20 > > This is quite a fragile driver. Have you tested it on HW? >=20 > This change is not tested with the Hardware. > But of_property_read_u32 is better here than generic of_get_property. > This make sure that value read properly independent of system endianess. This driver is only used on PPC_BE. And it is *very* fragile. The gain is not enough for me to accept it without testing. Maybe Erhard (CCed) is interested. If not, you may find someone on the ppc lists. --T4sUOijqQbZv57TR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl6evsQACgkQFA3kzBSg KbZZew/9FFFtMHlcKTYHVgIyAJEHF4gXnOacFSvV02PMg4ZwajJfEatTog1WhMhU aHpK1kEpP6nwsFk1HXD6+NMeZUsTojUkYk4ipKclvJBydN4O7VJKYYyWhdvcKlNG T6q2bRsC3qI5QGAxaSumXIqT48HKGxM420yiJDySa8JeAQSDyoL3Q5NAzH04BQBF JPWfJyJmhB0rP+DLkXLD2ZG/DDnBMZWWmRHxMbzognRcYkeV1RB0svQTKtKsFbLs vfiTx2E+VvNtt1eoIOXapPnozbkOZUjAd+59JO59UMKORCf0HL393qsAyqMgfSQz unuzZ8ZRL8xhFv2ptHfi+9zpGt4WVSk8r1U2lvBgM5g1ais7+acRiLWvyBW4yGdJ TzsYE2x5eLW2bSQtaAo17VTF/cSC927DRvk0GRutj5+yxIqmWlJg6jGDZz8rS4WF 3S5JNkAdOYFWjsQpqOCBSEipY1YhinOlUtfw70bYUlJjUiKDN7nENuPtT5fAMEaj KhVoAI4pzrTPzz2I4/tBjlV3q6P8fLhVPORPxz4DNzOBGk40oSbgSWeLs6Nr2BKY J/uIFg5+9K9jdEnRDRWlDNx7fRgGxxozQV7tsGej+Sp/8Cn7kRg8gm4OTbwDlr8j LZ3cwigeiQYOe3aiCPNVkxWFDbJuhDeM4tnf/fAlbNcLNqhyOew= =SHDk -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--