Received: by 10.223.176.5 with SMTP id f5csp249607wra; Tue, 30 Jan 2018 10:53:00 -0800 (PST) X-Google-Smtp-Source: AH8x224rTO5s0EGd/R8JgvYrXWtkzcAuq6htYDiKM4z8EaZbsM180DoePza/suwZo3cPGyDIXRti X-Received: by 10.99.186.87 with SMTP id l23mr23924073pgu.83.1517338380044; Tue, 30 Jan 2018 10:53:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517338380; cv=none; d=google.com; s=arc-20160816; b=Q2undEbyM2yuMyslzZBzf6yAG1YgI3VzCSSUR+BIVQI+nSN5wf3jH4MMancz2WF5M4 yoYO9tbmaTeCxhB/kIqDFI6ApovBfZXOHxUWYFXUsLd/bEjToheqtiNfBAAIgbsk6cz3 kjGgGm9RQakw7+cMLBpXrrRkd5UZUDvQUAiHQOa814YbdLjIrsUNVjh+fNxdN7WfJtQ5 uMamf9wCzpAOSCTvgnF163FAkTasFReXqNUBxV9qu/3msS2oCWQxB0lWjGOKazzLmdXZ VYaywcGH4KVIRsOEqV6lB2srLMfsfdGr2rhh2uE5N94DAGLQHW3pRayhlql/anZx+p+/ Greg== 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=lo7twkeW3AHCEJMJ14IAJLtXwzax9WnawkDiwj9WTO8=; b=JKthBVP3qt9Cql8J49olQmwFNCVlJ8oxmq3cIwHbc4WIN4IySkhoNgzmdAOgPRNa70 YBwX7Z1WSdh7yhWrGAiRRZnQyKpHSgw1y+XTbf0+r1pnw2ayZbsSog0HUsdwVOl9ny3D t8FvdcoPF71yRjSLP38+nQn+sdu4c6+H3vobF0utblLdCFg9VBImrpRVd20iJxcjg2h2 Yeb4+brHi9siE6HLxyWwdUPi5XMnCNNCQMUIFbgj7gOMQigIpLcxNRGOpT/Z71wS7y0l z/VVwBTHcgxA8D0ClQA+eFDLBqlAGVP3GYsoh3Lu1D6NvNfY191GkeBY0FsCRcz9rtbE 0IpA== 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 q25si9754062pge.457.2018.01.30.10.52.45; Tue, 30 Jan 2018 10:52:59 -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 S1752813AbeA3Sq3 (ORCPT + 99 others); Tue, 30 Jan 2018 13:46:29 -0500 Received: from saturn.retrosnub.co.uk ([178.18.118.26]:54908 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751410AbeA3Sq1 (ORCPT ); Tue, 30 Jan 2018 13:46:27 -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 B683942A4E; Tue, 30 Jan 2018 18:46:25 +0000 (GMT) Date: Tue, 30 Jan 2018 18:46:25 +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: <20180130184625.3ca09e82@archlinux> In-Reply-To: <20180130183343.2bf379d0@archlinux> 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> <20180130183343.2bf379d0@archlinux> 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 18:33:43 +0000 Jonathan Cameron wrote: > 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. Should have said this isn't the final decision or anything, but whilst there are open questions we should take the time to sure of the answer! > > > > > 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 > > > > > > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-iio" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html