From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com ([192.55.52.115]:11232 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752107AbdKCSI2 (ORCPT ); Fri, 3 Nov 2017 14:08:28 -0400 Message-ID: <1509732504.10233.205.camel@linux.intel.com> Subject: Re: [PATCH v1] iio: magnetometer: ak8975: Remove wrong ACPI ID From: Andy Shevchenko To: Jonathan Cameron , linux-iio@vger.kernel.org, Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Cc: Srinivas Pandruvada Date: Fri, 03 Nov 2017 20:08:24 +0200 In-Reply-To: <20171103175640.33403-1-andriy.shevchenko@linux.intel.com> References: <20171103175640.33403-1-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org List-Id: linux-iio@vger.kernel.org On Fri, 2017-11-03 at 19:56 +0200, Andy Shevchenko wrote: > The ID is added to proper sensor by the commit 6ed5ac50a3e0 > ("iio: imu: inv_mpu6050: ACPI enumeration"). > > Remove it from wrong place, otherwise user will get: > > ak8975 i2c-INVN6500:00: mounting matrix not found: using identity... > ak8975 i2c-INVN6500:00: Unexpected device > After applying I have got inv-mpu6050-i2c i2c-INVN6500:00: mounting matrix not found: using identity... ... i2c i2c-4: Added multiplexed i2c bus 14 ak8975 14-000c: mounting matrix not found: using identity... Nevertheless, I didn't try before with both drivers enabled. It might be that my fix is not needed. Shrinivas, can you comment on this? > Fixes: 6ed5ac50a3e0 ("iio: imu: inv_mpu6050: ACPI enumeration"). > Cc: Srinivas Pandruvada > Signed-off-by: Andy Shevchenko > --- > drivers/iio/magnetometer/ak8975.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/iio/magnetometer/ak8975.c > b/drivers/iio/magnetometer/ak8975.c > index 42a827a66512..f29a00729fa0 100644 > --- a/drivers/iio/magnetometer/ak8975.c > +++ b/drivers/iio/magnetometer/ak8975.c > @@ -787,7 +787,6 @@ static const struct iio_info ak8975_info = { > static const struct acpi_device_id ak_acpi_match[] = { > {"AK8975", AK8975}, > {"AK8963", AK8963}, > - {"INVN6500", AK8963}, > {"AK009911", AK09911}, > {"AK09911", AK09911}, > {"AK09912", AK09912}, -- Andy Shevchenko Intel Finland Oy