From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753206AbeA3Sdx (ORCPT ); Tue, 30 Jan 2018 13:33:53 -0500 Received: from saturn.retrosnub.co.uk ([178.18.118.26]:54752 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751584AbeA3Sdu (ORCPT ); Tue, 30 Jan 2018 13:33:50 -0500 Date: Tue, 30 Jan 2018 18:33:43 +0000 From: Jonathan Cameron To: Andy Shevchenko Cc: Steve Presser , Hans de Goede , Hartmut Knaack , Jeremy Cline , Jonathan Cameron , Lars Kellogg-Stedman , Lars-Peter Clausen , Linux Kernel Mailing List , Mika Westerberg , Peter Meerwald-Stadler , Wolfram Sang , linux-iio@vger.kernel.org Subject: Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200 Message-ID: <20180130183343.2bf379d0@archlinux> In-Reply-To: References: <010001602cf53153-39ad69f1-1b39-4e6d-a748-9455a16c2fbd-000000@email.amazonses.com> <20171210182152.70ad8fbf@archlinux> <01000160dccefcb4-25edfd89-56f3-486f-88a4-cb8c07253974-000000@email.amazonses.com> <20180114104330.2aa7c1fd@archlinux> <20180128094021.572ab366@archlinux> <20180130160107.000006df@huawei.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 30 Jan 2018 20:08:19 +0200 Andy Shevchenko wrote: > On Tue, Jan 30, 2018 at 7:38 PM, Andy Shevchenko > wrote: > > On Tue, Jan 30, 2018 at 7:25 PM, Steve Presser wrote: > >> Andy, > >> > >> Where did the assertion the second device is a magnetometer come from? Just > >> the data sheet? > > > > Yep. See chapter 8.2. Isn't enough proof? Or you believe in two > > accelerometers with off-by-one conflicting address on a cheap laptop > > with left unused two magnetometers on the same time? > > > > And we have a driver for magnetometer separately. > > > > So, it looks like we need to move ACPI ID to a new "kinda I2C mfd" IIO > > driver under drivers/iio/imu/bmc150_i2c.c > > Even Kconfig for one of the driver states so. > > Looking more to it, I think the patch should be reverted and new > driver is created instead. Whilst the question is still open I have dropped the patch. Was not yet in a non rebasing tree (just in a build test one) so fine to drop it. > > I'm on it. > > >> Steve > >> > >> > >> On Tue, Jan 30, 2018, 12:05 PM Andy Shevchenko > >> wrote: > >>> > >>> On Tue, Jan 30, 2018 at 6:40 PM, Andy Shevchenko > >>> wrote: > >>> > On Tue, Jan 30, 2018 at 6:01 PM, Jonathan Cameron > >>> > wrote: > >>> >> On Mon, 29 Jan 2018 16:07:02 +0200 > >>> >> Andy Shevchenko wrote: > >>> > > >>> >>> > But that would take much longer. Feel free to propose it and a > >>> >>> > patch > >>> >>> > removing the ifdef fun if you like! > >>> > > >>> >>> Where can I see the patch? > >>> > > >>> >> Doh. I clearly forgot to push out. Should be able to push to > >>> >> iio.git on kernel.org later. > >>> > > >>> > Thanks, I can see it now. > >>> > > >>> > This patch almost wrong. Not by functionality it brings, but by style. > >>> > >>> Oy vey, the second device is *not* accelerometer, it is a magnetometer > >>> [1]. > >>> > >>> [1]: https://www.mouser.com/ds/2/783/BST-BMC150-DS000-04-786477.pdf > >>> > >>> > I'll send soon a series of fixes to the driver (compile tested only) > >>> > to provide my view on the matters. > >>> > > >>> > P.S. In the future (I have some kind of deja vu I have told this > >>> > already to someone), please, Cc one or more of Rafael, Mika and/or me > >>> > for ACPI matters. > >>> > >>> -- > >>> With Best Regards, > >>> Andy Shevchenko > > > > > > > > -- > > With Best Regards, > > Andy Shevchenko > > >