Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3368082pxb; Mon, 18 Oct 2021 13:48:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdeCYijhvjcFCiPhung+dKS6ZfMDEHn5tEd6frGJgh2rrHhmj1W93T1Y2PzUFOkUJER2zY X-Received: by 2002:a17:906:480a:: with SMTP id w10mr33841147ejq.262.1634590096045; Mon, 18 Oct 2021 13:48:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634590096; cv=none; d=google.com; s=arc-20160816; b=bOkZaMq7DYWXNyeWCOjr/NFs15bOSGTr2jm4tOalDGjXDM6jk33ir1ee6HkwqZg40/ nGtddJXLDKOUMz2grsbnmE/JVRdy+MMzmmwefEKNX9PJ8D5tHepquSjhX7HtFCgbBxfR iU0RuZzTQOA4OoSThsLH/aHHnLIYbjEhJz2CqebvNmRaVOcM20krbDfZ8GhKdmgk91mK i1kc2ynXJ9Zwk2QsP6lWsIlxNXFNk8x80vpj/MA92he9zrUHUe0RWrNEJW57IlGtvFK/ VOy9pRk8k+LYWSic0NAEGHZCozC2ZozQVQ1adHfBPAr242OHu2QDFdTDdvgXNWSenYZz 7lSw== 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=uMMxXst2ZoD81CU4ID788FdVQy/9/0/vD87y7ue82uc=; b=OhAvaPD/bjyL6bI9S/M2Fn+QPqvZz1NEzV0iHcd/GB4mdtx7rG56KngvoERnmRiaqE xKOO6nwYRWNw/lK7kVOLKCAgk6pI9XpGBAsz4exDF3qC9dZdA6c6LsSwNOiB5gvFD5jG WpW1+SbUqq2ebe6rXp3zeytBbdR5xNdnZEVwkE5Y7xRIV1nRhW7PAeeDxIc/346OtTA1 BjCPwneLeIL2xK0mS05EpLI9+4ASE9UZUX9rxHihMibhf7oVguVvsjWeqOu5bRkhB4tJ GIJ8SxNM5iZtsuE97AgdDtxoT/rWOR1d+xl0YUCRCrelGoqfwA/zW9YT0fcn3OAx18zE Z81w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pX1EXzYg; 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 ia17si21608893ejc.17.2021.10.18.13.47.25; Mon, 18 Oct 2021 13:48:16 -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=pX1EXzYg; 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 S232116AbhJRUpI (ORCPT + 99 others); Mon, 18 Oct 2021 16:45:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbhJRUpH (ORCPT ); Mon, 18 Oct 2021 16:45:07 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1005C06161C; Mon, 18 Oct 2021 13:42:55 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id n65so115816ybb.7; Mon, 18 Oct 2021 13:42:55 -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=uMMxXst2ZoD81CU4ID788FdVQy/9/0/vD87y7ue82uc=; b=pX1EXzYgtbC8geq9Fy5n3+CgDLkjbU9yzZRIfFcS8xL+IoAcnq7kUGIf8y4wYm0WoT BJbo8iI7ObWEBUZBXum9A8+jeQIXp+3S6J23qdvh6xEP8cVnIpHTD1kYYRK4RpeOaxhx FhortOHm89V5T+LGB1Iu06Jt5ZIg1hf39CjMy4fs36ehzDdik3AwDRQ0KOkv0zKtiOJf yNhCyokz1o3QiJauJYZslEEgczpdVMNsFPObBvzOUcgop29OAOvH0PpCfHZAZmMsJnFz kPJKRDA3P5WenbuocOEVLKPAuelwsPTOgyv3q0cjNnLMfMl+H+TiZvRKgx1kdxyWTsbS Xv4w== 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=uMMxXst2ZoD81CU4ID788FdVQy/9/0/vD87y7ue82uc=; b=OojWSF5LrupY9SguOy/A767TGYIj60LsKejs1sg5dvNiGHGiigpghdsS6oivU6jiPm OqFe5pRuJNZIO4LdcaMtM8DgyYNfweA/l4YDvnZnlF5X+GTTGCFYkrheGoVOKDlYhJUy XazZBFxDXlC1Or+GlfYZZOk9nXi/qb6kDAM86x7y50fIujRdBLqnOqsu+Zdfr4BxmYHy IRcl7BfCpY3mEHe7xUVuxlybtACx177LqrY/n2uihv4usFt+yFpu7WRDyWS+Yt0lMve7 TLCDNg+lmzLL7Wd+wLrus5rXjEy2stiQa9LJgNIy/53mCOb0eXOvf9i9Oz1QAdxuxgWK i48w== X-Gm-Message-State: AOAM530stkZX5svPxUumnMo1lAC7cC6WRykPBmKke17vRflNsIF31YwA EsMeLZe2fXikEtCeg1TFQKeV239ukW+OXnpVUPk= X-Received: by 2002:a25:b790:: with SMTP id n16mr30530564ybh.395.1634589774922; Mon, 18 Oct 2021 13:42:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Maxim Levitsky Date: Mon, 18 Oct 2021 23:42:44 +0300 Message-ID: Subject: Re: BMI160 accelerometer on AyaNeo tablet To: 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 10:02 PM Andy Shevchenko wrote: > > On Mon, Oct 18, 2021 at 09:02:40PM +0300, Maxim Levitsky wrote: > > I also suspect a mistake from the hardware vendors. > > > > I attached all DSDT decompiled, which shows that they indeed use that > > ID, and I also attached the windows driver .INF which was published on > > their website with the driver (https://www.ayaneo.com/downloads) > > > > They are a small startup so they might have used the realtek ID by mistake. > > I added them to the CC. > > 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. > > 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). > > > 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. > > P.S. As I said, the commit message and the code (in the comments) should > be very well elaborated and only accepted in case the firmware is already > in the wild on the market. I will prepare a patch with a better commit description this weekend. Thank you very much, Best regards, Maxim Levitsky > > -- > With Best Regards, > Andy Shevchenko > >