From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: [PATCH v3 1/3] nvmem: sunxi-sid: read NVMEM size from device compatible Date: Mon, 6 Feb 2017 09:48:28 +0100 Message-ID: <20170206084828.s33k4fg6n7mcivb2@lukather> References: <20170202131338.20234-1-icenowy@aosc.xyz> Reply-To: maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jiqshnfefqtew2i4" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: <20170202131338.20234-1-icenowy-ymACFijhrKM@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Icenowy Zheng Cc: Srinivas Kandagatla , Rob Herring , Chen-Yu Tsai , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Id: devicetree@vger.kernel.org --jiqshnfefqtew2i4 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline On Thu, Feb 02, 2017 at 09:13:36PM +0800, Icenowy Zheng wrote: > Sometimes the SID device have more memory address space than the real > NVMEM size (for the registers used to read/write the SID). > > Fetch the NVMEM size from device compatible, rather than the memory > address space's length, in order to prepare for adding some > registers-based read support. > > Signed-off-by: Icenowy Zheng Acked-by: Maxime Ripard Thanks, Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com --jiqshnfefqtew2i4--