Received: by 10.223.176.5 with SMTP id f5csp246568wra; Tue, 30 Jan 2018 10:50:05 -0800 (PST) X-Google-Smtp-Source: AH8x225DVdxq7Ym/4QWLKVER3QqAvxcYmX1S9Pqo/Gs7wzxlvQrrzCnW0qnKKQEjchAcDmqhJgxT X-Received: by 10.99.43.73 with SMTP id r70mr7415391pgr.316.1517338205062; Tue, 30 Jan 2018 10:50:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517338205; cv=none; d=google.com; s=arc-20160816; b=V1T3YpKbz7FWzWImAVzTkh0QJJghKumHmyYQZwy9SjwlqlbKYR8wge3/f9XmQxziHM Ny216Lgkpb43GZ1GXJtJw13iVut4mj75tmnxPMRi3mddO071KdHoxW54FurS7w45ngj6 f0whh4BjltUBvAZ9ABBrd0WJwZqkVCJT9GU/Ql5Wgd0M2DDgRrOH93gXByQZtNUQ34HB p170Ax18VJRO1rRfRlqNd+OyPpgLTP7pQv2TYhH78163Bo6eX9fyDVyX53sU/ujO/Qgi Y/LSqApQKnxFeP3IFzMRoLiA+L7NN3lMUz8OIDcTDMjCPEfpYBk/S84L7fdGJzMct/hT /8Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=Vzdtc4+0cciTAzgV10FJNLtdW1Ey7Khi9C60zV7boW0=; b=Q2YIpDwxBOsj81r3Yn6fZBkB4a/RpPq6bbelMVF9dTHLuUPOrzB5B9y7e2tF/NcFAp 7jglZQN8umtT/SjeoO0kJtmCLy4WN6ChIFksvamS8HYeZKCPeID9uqAzlsokVCfbdSGh cOgLEeKea86fUbfBlUsZVW8hKsPnICEnNAWyvle6JOKLVKWWMckK8lzdui2ID7MSegLL 0qc6lQTMEbRSLgZOXbmDxoHgqtPSYfDN6NKzZ7119/6WzHVIXlDw5GnvhtnShpi0omt2 xZ0DSqUzs0O15k4PwfuICZW0R08xa8XZiyTUJHd7MLUEdm0wGEfCXjcvwo4yQSbdj3sT ZYmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w22-v6si156542plq.605.2018.01.30.10.49.50; Tue, 30 Jan 2018 10:50:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753188AbeA3Sdw (ORCPT + 99 others); Tue, 30 Jan 2018 13:33:52 -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 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) by saturn.retrosnub.co.uk (Postfix; Retrosnub mail submission) with ESMTPSA id AA21742D0F; Tue, 30 Jan 2018 18:33:45 +0000 (GMT) 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 Precedence: bulk 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 > > >