Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3105003pxb; Mon, 18 Oct 2021 08:19:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRa70W3tBNXLhwSCYSLTFHVoZifNsTyOmI/ZI6pwcjFfqov/sY1hGCIlsUSxD2Rlrln+bl X-Received: by 2002:a63:3e4f:: with SMTP id l76mr17314108pga.65.1634570342527; Mon, 18 Oct 2021 08:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634570342; cv=none; d=google.com; s=arc-20160816; b=FYwjuppd++Uzq63ju7g5cLqcmO9iNTTr1CqBRxPjjOPVA/X3U0Vdk3Iey7o6lRO3nN Q7fDcuFqdIGnJe2yLOPU/4h3h2RW0qdeWr8AI0NXOSQelHQ3yYlpxcz8rUcK7wdjBsHF sYxdd7IHCFEqmKQn95cXti1h59Pm/Ubw+b3etFgmP+ZeIrQTpq6Ifw03hvAqRitgJe83 HR3fpkmWC1xRbDTt1DSDyVCdxhN2Ie7I54fJO+JpWDi0f2UkvR9QFVOWqetZ8Ic2y+ay rrUveBKlhRLgQzQgTytXuuOHq3wtI9yctifAGuV4+E7Z5dbGpVpwhQbH/vIHM9Nazbdc AybQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=FFSkiYyLcDIqzACwM+o8dXPx1oMYZSNPKKuMG13tEBs=; b=I2AWjklCX3zkeXGc0lD/EYK1o8adpN6W8CuZTk/loPv5RGmwJGQeM8IikAPFSNAtis yg8ghlqJoOpf8GBQP7KAHqLg+qs6Br2YrY6dn5QOV+gDFv3UkMo9eTeJGsI5d8ccwTKT r/SDvTPXDij9sJXKmGB/Fs/xWDSHunWtkymIeaGjRNzLX6tuBFDV4mzk1f28fZNg8Rgn czauCtgZiY0oFmuMLBAYfx3LnDmusQUSCYvpi34lW0e9niaWbRcZdinkslokL8Krv+Od mzKwid3cAmUEo59Tc3wfTeF403l+1164gYaJkOu/3c3DF4+a19Dgh5Rs7kSxGsWBpBI6 jTtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p15si1520666plw.13.2021.10.18.08.18.48; Mon, 18 Oct 2021 08:19:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232288AbhJRPTv (ORCPT + 99 others); Mon, 18 Oct 2021 11:19:51 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3999 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232619AbhJRPTs (ORCPT ); Mon, 18 Oct 2021 11:19:48 -0400 Received: from fraeml701-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4HY0kZ23m4z6899G; Mon, 18 Oct 2021 23:13:26 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml701-chm.china.huawei.com (10.206.15.50) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.15; Mon, 18 Oct 2021 17:17:33 +0200 Received: from localhost (10.202.226.41) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Mon, 18 Oct 2021 16:17:33 +0100 Date: Mon, 18 Oct 2021 16:17:32 +0100 From: Jonathan Cameron To: Andy Shevchenko CC: Jonathan Cameron , Hans de Goede , Maxim Levitsky , linux-iio , Lars-Peter Clausen , "Andy Shevchenko" , LKML Subject: Re: BMI160 accelerometer on AyaNeo tablet Message-ID: <20211018161732.0000565f@Huawei.com> In-Reply-To: References: <20211017115843.2a872fbe@jic23-huawei> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.41] X-ClientProxiedBy: lhreml718-chm.china.huawei.com (10.201.108.69) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Oct 2021 10:40:33 +0300 Andy Shevchenko wrote: > +Cc: Hans > > On Mon, Oct 18, 2021 at 6:41 AM Jonathan Cameron wrote: > > > > On Sat, 16 Oct 2021 19:27:50 +0300 > > Maxim Levitsky wrote: > > > > > BMI160: AYA NEA accelometer ID > > accelerometer > > > > On AYA NEO, the accelerometer is BMI160 but it is exposed > > > via ACPI as 10EC5280 > > > > > > Signed-off-by: Maxim Levitsky > > > > I guess it is hopelessly optimistic to hope that we could let someone > > at the supplier know that's a totally invalid ACPI id and that they > > should clean up their act. > > > > Curiously it looks like a valid PCI ID pair though for a realtek device. > > > > Ah well. Applied to the iio-togreg branch of iio.git and pushed out > > as testing to see if 0-day can find any issues with it. > > NAK. And I explain below why and how to make progress with it. > > The commit message should contain at least the link to the DSDT and > official technical description of the platform. Besides that, it > should have a corresponding comment near to the ID in the code. > > On top of that, in particular to this case, the ID is very valid from > the ACPI specification point of view, but in this case it's a > representation of the PCI ID 10ec:5280 which is Realtek owned. So, we > need to hear (okay in reasonable time) from Realtek (I believe they > are active in the Linux kernel) and that OEM. > > I hardly believe that Realtek has issued a special ID from the range > where mostly PCIe ports or so are allocated, although it's possible. > We need proof. > > What I believe is the case here is that OEMs are just quite diletants > in ACPI and firmware and they messed up with BIOS somehow that it > issued the ID for the device. > There are also two other possibilities: OEM stole the ID (deliberately > or accidentally), or the device is not just gyro, but something which > contains gyro. > > As to the last paragraph, see above, we must see DSDT. Without it I > have a strong NAK. > > P.S. Jonathan, please do not be so fast next time with ACPI IDs. No problem. Will pull this one once I'm back on correct PC. Jonathan >