From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934596AbcLMQsF (ORCPT ); Tue, 13 Dec 2016 11:48:05 -0500 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:52266 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934545AbcLMQr5 (ORCPT ); Tue, 13 Dec 2016 11:47:57 -0500 Date: Tue, 13 Dec 2016 16:47:42 +0000 From: Mark Brown To: Lee Jones Cc: Chen-Yu Tsai , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com Message-ID: <20161213164742.4ztisstxifatlm5a@sirena.org.uk> References: <20161123031616.10114-1-wens@csie.org> <20161123031616.10114-3-wens@csie.org> <20161209112018.GL3625@dell.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rrmlu6xkvc4vhe3z" Content-Disposition: inline In-Reply-To: <20161209112018.GL3625@dell.home> X-Cookie: I represent a sardine!! User-Agent: NeoMutt/20161126 (1.7.1) X-SA-Exim-Connect-IP: 2001:470:1f1d:6b5::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH v2 2/2] mfd: axp20x: Fix AXP806 access errors on cold boot X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: No (on mezzanine.sirena.org.uk); Unknown failure Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --rrmlu6xkvc4vhe3z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Dec 09, 2016 at 11:20:18AM +0000, Lee Jones wrote: > Is the following valid/necessary? > On Wed, 23 Nov 2016, Chen-Yu Tsai wrote: > > The AXP806 supports either master/standalone or slave mode. > > Slave mode allows sharing the serial bus, even with multiple > > AXP806 which all have the same hardware address. > > This is done with extra "serial interface address extension", > > or AXP806_BUS_ADDR_EXT, and "register address extension", or > > AXP806_REG_ADDR_EXT, registers. The former is read-only, with > > 1 bit customizable at the factory, and 1 bit depending on the I don't really know anything about the details of this chip, sorry. > > This patch sets AXP806_REG_ADDR_EXT to 0x10, which is what we > > know to be the proper value for a standard AXP806 in slave mode. > > Afterwards it will reinitialize the regmap cache, to purge any > > invalid stale values. If the chip has been reset then you'd want to reset the cache too. I've no idea if that's needed here or not though, it depends what happens to the global state of the chip when this reconfiguration happens. --rrmlu6xkvc4vhe3z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEyBAABCAAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlhQJi0ACgkQJNaLcl1U h9BeLwf41OPdSengGW9mH4kFCRCYZvE7gyvGLLDkIIi2HYgAuf2HVRM4/Y5iN+0w HT0K/3FSlLv//CYySoYtTOFK4N2zZ1+V+zFfzRdubMbwNlwVMi+gVo8Bn96N9BJh JVVDQlFL2Ybc1ZUFx8iJe2DLU5+Y8ksdFXXiv/1Nz/rncnWHNKNUg12LmQoryCh1 G1HNvToLQ9vNbYjQ4oq6xCrFTcP/YnVnEZzECX4j71VfFA/MdJ+/HVxKUEzPI2mk pFALTsjpxOmwca/fiptRzMi6npi6W8eZSiAFLxLsPMswCfIamCeOYFSmEIuz3Tnr F0A9pvV68j5a6Pb2W0SXq8Xz9GhL =o391 -----END PGP SIGNATURE----- --rrmlu6xkvc4vhe3z--