Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp290989pxb; Tue, 19 Oct 2021 03:01:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoXKMfulfCtGoGfSlS2f2T7Y2b67xcAzHYwA2KvGOtJFxAGWnqQYZzDCh46jKdK4ULje09 X-Received: by 2002:a63:d14:: with SMTP id c20mr28399881pgl.118.1634637708949; Tue, 19 Oct 2021 03:01:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634637708; cv=none; d=google.com; s=arc-20160816; b=n92gtKYJcpCMG59GXAz3UcHAyTy4NhvW5TNH+ldMuDh71TELzvHRMgTqAZ97cSLGUa 1g/eCNHsEO+psDJrIXStxLdVo27pEvahgkfUlViR/9XnSLUI3RJTMX/tNfGeSyY784Zy X739dI2aArV9M3YBtqaqE3YBKcH8XgK1UDREM8m6NFAy9pNs0TzqZh3SFpZdC+6iXayz mWZuMWtMGf+Qbvz2EfnI0JWXOCF3SSpx3TYGPwr0w9vFIn53VQo7eunU12Urw6tVm3GW QcdLIPiksAFAHUWeqIJDWf8JAxC2/tIDMM0BQVS0J3F9zypBNMDJJ/8j/2pWvAVLKRiX /LEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ok4RcBO4chuBAELkxTaC1jvGHBt7wsZQsA6QEOc+VkM=; b=ZW+ge8IKXL4iKLvTNgbXDBQV/j08FlIisFeDcpQJUcCR82hKNlkCUe0aqwJ+uezxKn cDrg9ezI/j+FKkQNmBjmRDGufPH0wfCnRuSwHjTsVk3i+ValQg3eHssE7wiiA4LvY6e9 CHszgJqZSQiI1J2cPF2sfTbFSFZbPeNDzRnyMUkRPTkTBVQrXCBN/RCSP0sEHxtRbNND MnSgcW0pPoPjdYxaD924KGruAFnRWMxr/4YV9fXngsznI38GMu05Bvffq4CxtZJqb4kx ZGoNgznlRlBpIsx6ffiyZFV29hJ5tfeP3sBU1C5d0CHq0CGdRr3LLSVmw0twnMrryzgK Rvvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XbEbxmdW; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y132si3796059pfc.55.2021.10.19.03.01.15; Tue, 19 Oct 2021 03:01:48 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XbEbxmdW; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235050AbhJSKCA (ORCPT + 99 others); Tue, 19 Oct 2021 06:02:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231652AbhJSKB7 (ORCPT ); Tue, 19 Oct 2021 06:01:59 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18752C06161C; Tue, 19 Oct 2021 02:59:47 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id i20so10585178edj.10; Tue, 19 Oct 2021 02:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ok4RcBO4chuBAELkxTaC1jvGHBt7wsZQsA6QEOc+VkM=; b=XbEbxmdWhPEeBAze0cQSK9xvnF55Jvay+LBtHAkXh28r+NHXfHFV2fMfRgZ+NdLqbF QQZXQBTlGzaN/fQI0DvznFWTCG+10you/2durUdkHCXjavoGwfPpFrHUb75PBYWrQahm z7eVzaSHWpodVhXx+LFhX9e7jwguuS5IF87yicmXb2uysEUUjVJzvEfasgkwKdDVZGJV 8pSVGCa4WketpUUa3DqMk2YfqdCA87C6opdG59lhiXXx5PC9Y1zJD5aTrVNu/l+y49SQ pbemU5L+FOFjbHIv301bPSyzMfscfro02bJ25O+3Al9PY60S7VSovANt5Wl67qvTsxaY TGaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ok4RcBO4chuBAELkxTaC1jvGHBt7wsZQsA6QEOc+VkM=; b=45ooftOLbBWIK7JwyLbRWLSlR5gZxHObMldeo/wXnCTPRaamqNVoqiQydGkz4mO2xI /J95TxwCphnyCO0lXauEKh3mswuRnCU3tMLr+jDUM25mJNq9LUlPxcN61F/0urMsrn/W 2BKADAsvyFJvJXAvBEFqNMrDXJFzEU95tRgapOxGfL7UkpnQ4Av/NhYeLHWWIZpMrh2q Vw1py3GS/9phvDh+9lWufszbZY+QAVY1qpRo2Tdh20v8G4IN3H2NVVqqkjivBPZv6lUx 9Igfcv5IScBlu+HfvPb1gktcFJuqehHJAKo8R2/mIMJlggXWZ3kGTP86NdFjVvTVaiKp w4Vw== X-Gm-Message-State: AOAM531w/ysg+QaPfpe4/3X4/I63SXK/xysNoY8PwNoOch5PqSZ0Uusy Lh8txLcqZA72dSTK/U6aNrn2LYnQu64WfACnbr4= X-Received: by 2002:a17:906:1707:: with SMTP id c7mr35779021eje.377.1634637585609; Tue, 19 Oct 2021 02:59:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andy Shevchenko Date: Tue, 19 Oct 2021 12:58:53 +0300 Message-ID: Subject: Re: BMI160 accelerometer on AyaNeo tablet To: Maxim Levitsky , Andy Shevchenko Cc: Hans de Goede , linux-realtek-soc@lists.infradead.org, Oder Chiou , Ping-Ke Shih , nic_swsd@realtek.com, Derek Fang , Hayes Wang , Kailang Yang , linux-iio , Lars-Peter Clausen , LKML , info@ayaneo.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 18, 2021 at 11:42 PM Maxim Levitsky wrote: > On Mon, Oct 18, 2021 at 10:02 PM Andy Shevchenko > wrote: > > On Mon, Oct 18, 2021 at 09:02:40PM +0300, Maxim Levitsky wrote: ... > > Thank you for sharing. Seems they indeed used (deliberately or not) the wrong > > ID. So there are questions I have: > > - Is the firmware available in the wild? > > Likely so. It looks Aya team only released a single windows driver which > works on all revisions of their device including the Founder Edition, > which was released more that a year ago. > > It is likely that all 3 revisions that they sold carry this ACPI ID. > (The founder edition, first batch of IndieGoGo orders which had a > redesigned shell, > and 2nd batch (which I have) which has a new wifi card, a bit better > controller, > among other changes). > > > > - Do they plan to update firmware to fix this? > > - Can we make sure that guys got their mistake and will be more careful > > in the future? > > I CCed them, hoping that they would hear us. I can also raise this on their > discord when I find time to look there. I expect to have confirmation from them that they have got it and promise to fix the firmware (ACPI tables) for supported and future products.Can it be achieved? (Note, Hans already told what the HID should be used there) > > Realtek probably should make this ID marked somehow broken and not use > > in their products in case the answer to the first of the above question > > is "yes". (Of course in case the ID will be used for solely PCI enumerated > > product there will be no conflict, I just propose to be on the safest side, > > but remark should be made somewhere). Any comments from Realtek, please? > > > BTW, I also notice a rotation matrix embedded in DSTD, but the linux's > > > BMI160 driver doesn't recognize it. > > > > This is done by the commit 8a0672003421 ("iio: accel: bmc150: Get > > mount-matrix from ACPI") which needs to be amended to take care about > > more devices, somewhere in drivers/iio/industialio-acpi.c ? Jonathan, > > Hans, what do you think? > > If you like to, I can probably volunteer to prepare a patch for this myself next > weekend, using this pointer as a reference. The best is to cooperate with Hans as he is much more involved in the topic of how these sensors are programmed and used in the Linux kernel. My job here is to fix ACPI HID and make every stakeholder be aware now and in the future. ... > I will prepare a patch with a better commit description this weekend. Thanks, but let's not be in such a hurry, I really want to hear from both vendors. I guess a couple of weeks would be a reasonable time to settle this down. -- With Best Regards, Andy Shevchenko