From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752595AbdLELyr (ORCPT ); Tue, 5 Dec 2017 06:54:47 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:11510 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752457AbdLELyp (ORCPT ); Tue, 5 Dec 2017 06:54:45 -0500 Date: Tue, 5 Dec 2017 11:54:13 +0000 From: Jonathan Cameron To: Mika Westerberg CC: Jonathan Cameron , Jeremy Cline , Hartmut Knaack , Lars-Peter Clausen , "Peter Meerwald-Stadler" , Hans de Goede , Lars Kellogg-Stedman , Steven Presser , , , Wolfram Sang Subject: Re: [PATCH 2/2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200 Message-ID: <20171205115413.00007e64@huawei.com> In-Reply-To: <20171205113801.GU22431@lahna.fi.intel.com> References: <20171129223016.17848-1-jeremy@jcline.org> <0100016009e7c30a-407c2980-d8d5-4506-ab47-d0fb2fed481d-000000@email.amazonses.com> <20171202121927.3b7aa028@archlinux> <20171204095819.GY22431@lahna.fi.intel.com> <20171205112738.00006ffd@huawei.com> <20171205113801.GU22431@lahna.fi.intel.com> X-Mailer: Claws Mail 3.15.0 (GTK+ 2.24.31; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.233] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090204.5A2688FF.0285,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 55607aa677f2a80174b1822c6f88d447 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 5 Dec 2017 13:38:01 +0200 Mika Westerberg wrote: > On Tue, Dec 05, 2017 at 11:27:38AM +0000, Jonathan Cameron wrote: > > Why does it not make sense to just create them all from the ACPI/I2C core? > > How do you know in ACPI/I2C core what is the right thing to do? Is it a > single device, like EEPROM with multiple addresses, or is it multiple > completely separate devices like in case of many sensors? Fine, though this seems like a flaw in the ACPI description as it isn't possible to tell the difference. Why it allows on ACPI description for multiple devices in one ACPI device is beyond me... More ACPI specific driver code that may eventually end up in every driver. Goody. Perhaps we can define a helper function to at least make this trivial and minimize the burden. Ultimately if this happens enough we could probably figure out how to move it into the I2C core entirely - flag in the i2c_driver structure for example. Jonathan