From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755815AbdKBPEK (ORCPT ); Thu, 2 Nov 2017 11:04:10 -0400 Received: from sauhun.de ([88.99.104.3]:34331 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754980AbdKBPEJ (ORCPT ); Thu, 2 Nov 2017 11:04:09 -0400 Date: Thu, 2 Nov 2017 16:04:07 +0100 From: Wolfram Sang To: Jonathan Cameron Cc: Marc CAPDEVILLE , Kevin Tsai , Jonathan Cameron , Peter Meerwald-Stadler , Hartmut Knaack , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada Subject: Re: [PATCH v4] iio : Add cm3218 smbus ara and acpi support Message-ID: <20171102150407.bparxxskfo5pzvvs@ninjato> References: <20171027161426.m27e52jvnpgembsu@azrael> <20171102143550.00005a66@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cev3sz73hn4q3cvy" Content-Disposition: inline In-Reply-To: <20171102143550.00005a66@huawei.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cev3sz73hn4q3cvy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 02, 2017 at 02:35:50PM +0000, Jonathan Cameron wrote: > On Fri, 27 Oct 2017 18:27:02 +0200 > Marc CAPDEVILLE wrote: >=20 > > On asus T100, Capella cm3218 chip is implemented as ambiant light > > sensor. This chip expose an smbus ARA protocol device on standard > > address 0x0c. The chip is not functional before all alerts are > > acknowledged. > > On asus T100, this device is enumerated on ACPI bus and the > > description give tow I2C connection. The first is the connection to > > the ARA device and the second gives the real address of the device. > >=20 > > So, on device probe,If the i2c address is the ARA address and the > > device is enumerated via acpi, we lookup for the real address in > > the ACPI resource list and change it in the client structure. > > if an interrupt resource is given, and only for cm3218 chip, > > we declare an smbus_alert device. > >=20 > > Signed-off-by: Marc CAPDEVILLE >=20 > Wolfram - this needs input from you on how to neatly handle > an ACPI registered ARA. ACPI is really not my field. Try asking the I2C ACPI maintainers or Benjamin Tissoires who did work on SMBus interrupts recently. --cev3sz73hn4q3cvy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAln7M+MACgkQFA3kzBSg KbZbDQ//QE1QuoCCb+3SBCa+7I4cO8un7u7yloHkGkYi7pWc57XLCbEX3pKYrcLK eqV494XwAErDB7IGS8oA6zK40LiWGL2JHVYrWFYwvMiO5wV1mAN73MN0mMIdky2J tCU9Km8N2r41xSO6D8zcpcgqyt9DH4qINaHWMq56jxNcVuSxe8HVLHntJDxLlvMn Va3pxL4vXE5V/Uls77YVnPir99jQtQOf0TrLELFURCBiuvjCOm9XgPRC1ULXjbUl pAPp2WkFeYY3lfe47ynW5ISQZQFjrg5G7/6mpWnDFXD2nFlc2uLPcQnNQQVmqkEN Y4F5fcEdqaY3OPuQqgpkUs8UJChbq1dsgVYbLWpD4K1b5To/pxoWGC2RqT8Mo5Wp YozZvC9rT7XroD0dAyCmEEdm/ACwJMktLHNRwpQI88vO1xR7GkrXC2wbswFP58NF uKADPNDBcTCRHFFb6CUhQzxCnZsv8YCXQ3eoPODlGVPf+WZ/XGMbDx0s25Gtv39U XCrtD40yLP4QpMRw39HDSxuWpsZVCJCBtSKTy5+VTPu76gB2Cv977ox5siq88EDc BhzpVoDyFX3GUv5vb/a/T+mOFw2CryepeLHDnC+WIOTZ49OskoJYBNm62ON7R7YB XhnVQZL5yuDiVOzQju7NcDKKsqCPpmDPid8ZBWnaxSVBsvKg358= =EjH2 -----END PGP SIGNATURE----- --cev3sz73hn4q3cvy--