Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp88731ybz; Tue, 21 Apr 2020 05:18:48 -0700 (PDT) X-Google-Smtp-Source: APiQypJaUVscElWEd4c4EGT2x6NjGsp7EdPSYhlv6IosGMYHpLyKVm3oeE8aDVbyQfCOXQE90tFc X-Received: by 2002:a17:906:3e96:: with SMTP id a22mr12204353ejj.232.1587471528804; Tue, 21 Apr 2020 05:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587471528; cv=none; d=google.com; s=arc-20160816; b=HPOpeGInqePI15wMJLSuHfLN2Wi9nxuAMbZZWt+IqjyORCfeJBPvJL60EOIuSri9Vt 41Q3FBP7DfQRD3itK3Ecq+i1F8OBkWgu2eE2yFpQy0Ttl61toaC9wgIFZXHAaYvTlgLc nGPyiPpDSolUFQ4Z97aKBtLy+c7pNTK+ap7EylTqSOTfX86H7EhPCAegTajjMzx7yPlP Lp+dem+nEz9x77OZnZs5HZAIF3KkxrXFkb8e6DixcnUaQzEF1gHVsApqhWMSpxVmOyYD NKqjJUHRLmuCJZlM2swn6ruLZUYy2M61FQQOLRdAvkbeVonXM/TaHraLZFDoO5+mHJU3 9XQg== 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=llx/btmDBpchbC55qk30NbCjh4Ee852iQui235Nu8EI=; b=wtiFkYxk7v0NXJJpF/z0L5HvgtFP1k0kk+iu8pLbqjl7Xaqgg6lkpZAdsuKIYyx/f8 mHaTCkFtVAzN++yz0XYll3iqs8wzR5mQd8u/jz7+CEQ6lXgPMQEHBDH7RcJBwdE5e18p ATWr4Eq1MvjUucWeMAkLiyNpe1VF6OjR7MMFbYt2HPHKJO3TIH5mGpBwpraTmKImK1P2 Z7A+OTeI7UxiYQ05hPRqMRwLeIYIadfkJrwBScgGoaN7PFeOF78Rb6JiftyOCUIN61ix MljNZdOyJuPd3dpSEEM4Ju8LMT7OaeHVGoV6w4SJnzLpx032wSmongHGN4v0fv3OFGHf 4NWw== 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 h4si1540328ejo.186.2020.04.21.05.18.24; Tue, 21 Apr 2020 05:18:48 -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 S1728745AbgDUMRC (ORCPT + 99 others); Tue, 21 Apr 2020 08:17:02 -0400 Received: from sauhun.de ([88.99.104.3]:60144 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726018AbgDUMRC (ORCPT ); Tue, 21 Apr 2020 08:17:02 -0400 Received: from localhost (p54B336C5.dip0.t-ipconnect.de [84.179.54.197]) by pokefinder.org (Postfix) with ESMTPSA id AE2412C1FBE; Tue, 21 Apr 2020 14:16:59 +0200 (CEST) Date: Tue, 21 Apr 2020 14:16:59 +0200 From: Wolfram Sang To: Bjorn Ardo Cc: Patrick Williams , =?utf-8?B?QmrDtnJuIEFyZMO2?= , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] i2c: slave-eeprom: initialize empty eeprom properly Message-ID: <20200421121659.GE1241@ninjato> References: <20191001164009.21610-1-alpawi@amazon.com> <150599be-9125-4ab9-e2a6-e792b41910e6@axis.com> <20200420164349.GD3721@ninjato> <20200420203146.GC95151@heinlein.lan.stwcx.xyz> <20200420205325.GA1693@ninjato> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vmttodhTwj0NAgWp" Content-Disposition: inline In-Reply-To: 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 --vmttodhTwj0NAgWp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > Yes, it might be easiest if he merges your patch (with attribution) into > > the else branch of his fw-load patch. > >=20 >=20 > OK, so to summarize, I should update my patch to use > device_property_read_string() instead and also init the memory to 0XFF if= no > file is present. And change name of the function to Or something else went wrong. > i2c_slave_init_eeprom_data. Yes, that is my idea. You also need to replace checking for an of_node with some equivalent for device properties maybe, but that should be easy to find out. > I will look into that and let you know once I'm done. Thank you! --vmttodhTwj0NAgWp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl6e5DcACgkQFA3kzBSg KbbQDBAArMsUqUxWgqSrbwcIRt/Gr1cw3ADl+WmjfVx86o4L2zXR6pxtLqd3XZlw ETCYwyuI3wd1o67wtJTES/XurkgGa1QjgKuLEkbPW/G5dU+A9bDdjYbiJfzFJZmb N45BlhIjEa4mf9d6r7387sGtApMkjQhsTWQxjn1tuzPvzvB26ntJ6q7hM+M5JldV 1JYwin5YkcgvuFp4cECIO92jyvvupIWtJTxMaMlsHJFeicLWKPaXI/We7vC4W7Z9 aAZmc5NNrpNiT2ffkR4sGveVT2D0KckPHPsgoEWP+1FI3QrV72NAo6gTxbuJKbcp dlDDIGt8f5nU/ubUG21zy0RzWraX+pzXd+/bOkh5H9jeY7Z4VjBCepbEj+ekn6eX 4GpVNz2Eav3+N8aCRWcv8bwW9U5ww/cQoOlkjh+aI3AIlwOXzG24IC3LLXyjtTt1 xXDNOubCHZa3RGcmfduhEue25trD/+05kxcFe5zvEC4c6JP9GaiQC2w4f6FtJmHf pOzGKkowDO3rV8OpBqyyWTSjELG/icW/yOGFbqe1haP0akor3eiad8aiGFfwvMkA CDm/h0S6NWR7XYpLTwYy1/TyjTpX+d9fqAiPOROrc4T/LzNUjfLNkvwvLjAiqXUJ UxWdgMA26T+ui1/dZi6XcWt+sZs5r4DUjbEWJZVXCM+NmdHTZ+o= =jvL2 -----END PGP SIGNATURE----- --vmttodhTwj0NAgWp--