Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp978830rdb; Fri, 2 Feb 2024 09:32:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEFCLEH2RK9Gxe83wwQV3FkJhZkSbifBVFBQrb4UA/CINUqt8oZYEtUHJ2gYO2lC+FmAjkm X-Received: by 2002:a17:906:57d3:b0:a35:966d:fafe with SMTP id u19-20020a17090657d300b00a35966dfafemr2001009ejr.60.1706895179235; Fri, 02 Feb 2024 09:32:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706895179; cv=pass; d=google.com; s=arc-20160816; b=Eet5Yo4ky02MrqQvITpzMFBkDD/vmGNZKtE3jR5AcK74ccaCV+WRdu5WNF2CFUIRKX yTvRb15kdG+jCG0u8HWANbtMCKztAxezPwy0KeoyTUzZExy9uBR47rpl5HCqgpRGv9oh iFutnGPoDOrbLdG9Qn2w2ACOzE9mVNea4RVHql/TaNXg8av2Xz7iKaR3MCsky4ppSpc7 lEvQDpvrhZzd+dL9o7LfGXivyt7Cdgzft8Jwf/9rxVRpbRfmewLPfESMDE7uBYCXEPBr SseNWPN/5WdHhjB/QpWJzxRlUB7CTFeLg+55sV+wnbVX3XwcUIYhrCcLNqRQvHsbL610 zg+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=MZV5kKfu43pg+P1nwDSu3FuOWtizR/h4o6gwCwbwjx0=; fh=jYDC0TrzE/Wywurn8t/cIcXtdlXr9gi73+S+sLDuHPc=; b=B5jz5mBioC1v6FdPA8p/GqdzmkHAXhcGWBZfK2MzGI7XXcdjqWK/c7zOhhp/ecPsuQ Jbk3c94VxQmJ3Zd7f/bQyiMM0A9//mMOsr4ht35VfjmhyrjibMUtIGKXXDO5Mc//6Ziz WbFbnv7ddYF5wlorEV7wJZcy0GFU2XxkyY4klcEXpIbMjb08WKaQXJv0U4glbHvgobA8 XaCkP4vajNKVRuqpPNEEg+60TViDP98MYSBeUc8i7asaoLEqlfnJaTB8/WPJsXJPEfCv 58oxdNW5LaQSRkWi52E8LdpebS7h963NuKVBRBzq2eSmi5kvUKPzZ82+aeKf/KWvZ1lr DdVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M3jbOXkN; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-50241-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50241-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCUc+riIHdcGmPD5WDDourGm7M4Zoel0LrfEytpLBdy5jYs760aLBt/Y3g/S9uhte0acchCxcaHjuQ3S6qirP7WFIo0VAhAlpZbq/EmsIA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j3-20020a50ed03000000b005600acaf0c9si214518eds.132.2024.02.02.09.32.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 09:32:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50241-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M3jbOXkN; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-50241-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50241-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EED191F2E2AB for ; Fri, 2 Feb 2024 17:32:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C648114AD00; Fri, 2 Feb 2024 17:32:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="M3jbOXkN" Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43F7F14A0A5; Fri, 2 Feb 2024 17:32:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706895170; cv=none; b=SkOJDRAqQzzrhxR67Lptm+2LlEIvXjRfy09F8+m/7LoXcMy6464ujMeLx3Z4zxMpO4QuH8SCOBvq9PQvzSujIIvbFEnMP3caV9c470gXzFCPQUjFB4OuTs4KNCSVsPuA7hIlWwwj6UPXrkIbfPkBbcU6TOkd+OBkrOjStlFdh3Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706895170; c=relaxed/simple; bh=BzeGSQFv23RzxfnxCCVXJrwUwm5DgaTHVJ5SPJupBPM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QlhRA+o4r2qjOt5Q3+AZYlB985ryljkl8pDsxza4tNHM7sGJrDHRCJyUijrpACWlp69I0BCq38eyZwKq9eAr3INfA0e6QIfInajQpvOJyAkAxBEGFuHHRwmCGGHUxx8hiOr4uIbJg9Es1kJZFUiympNK0Wsz9yL+P5hixfzPqk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=M3jbOXkN; arc=none smtp.client-ip=209.85.160.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-42c0960382eso2125121cf.2; Fri, 02 Feb 2024 09:32:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706895167; x=1707499967; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MZV5kKfu43pg+P1nwDSu3FuOWtizR/h4o6gwCwbwjx0=; b=M3jbOXkNsdO8TCSCabw+nMRZrlGzAg9DsePuLa3KLotbB8uZ3cZFCLyUp/i3dufOfd U3s57kcYqcJ6hQVRz5Fc9O56jGcBjzPh+GwUL9m94SQnaLkqbEuaz+rF3ZS8lFP5HO5a AwCrhiOPeQnqzbX1J5ojvLvzu9UKvmWNAfynxoLSIO8DODN76AAAHBmnME1g8UXdvf6a 1bwvZtpYNKXM8OGxwmxP3fGPopm8tEHm3pregfCDVrrNH7oVwIgwFdyapyhtgvjbeKGz VFFzMI11ccBuFyHloDZT9lOhXmI3+l0dagqjeQzwksQo8jvlCzeVAAh7CJlW5fKBvmfT xwQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706895167; x=1707499967; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MZV5kKfu43pg+P1nwDSu3FuOWtizR/h4o6gwCwbwjx0=; b=MkeBI+mumtC1nJWBh6DwPWvlJafDEMIdBWGU5sD4JHb4p2gtrLEiuT0UnkXXAT/Fl/ 619ReTzIrGONXpJLrWTWAlsdjieyAlsXbndJLashwQNNnqnAQgyFH+BFoVwu5x/v2bHy 8Kzv9e1ihtc39xrxSLhJtnl52KFeyys2/AFcxHyntCQDQtyhQXGOcDBk4vF6tOnZipw6 lw9wSiTGPb2laWGrinOW3VVSZhG8AnbunTBSAhk2Nx0sAKVM2M2N2MkfFVVgNTIN3myD qi00caCXReaX5aJ46BBmdAXIvM6dsgX1fAU+SYHzcJCv45fRjptuuqI/9XUWFXAl1RDY YyTA== X-Gm-Message-State: AOJu0YyUISn3p0KdDzDAQkYOYCHoNBsFW1HmDQG8yBd7KB3zxCmS9nex XrmEuHKX/mCPxD8o2FMvpdTZ0ixiQOdFDUt4L5xchGaEPupU0kyb X-Received: by 2002:ac8:5890:0:b0:42c:c7:ffe5 with SMTP id t16-20020ac85890000000b0042c00c7ffe5mr2836282qta.68.1706895166925; Fri, 02 Feb 2024 09:32:46 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCX219F2y8peI5Q69R1Y+U1liVUJWjjCJsy/DuLn0zTq93lrH2hDuWmGCKJjgn/yP6MIz4mML3euTvsr3kxlkVMOpKCvJUEWW4inGk1W4v4KhHuymhivwEf+E2ME4iS1nslV9WbpGPPOBkF3ClCilwjWww== Received: from localhost.localdomain (i577B69E4.versanet.de. [87.123.105.228]) by smtp.gmail.com with ESMTPSA id cc22-20020a05622a411600b0042be0933c1csm1006890qtb.15.2024.02.02.09.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 09:32:46 -0800 (PST) From: Jesus Gonzalez To: jic23@kernel.org, lars@metafoo.de Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Jesus Gonzalez Subject: [PATCH 1/1] Add 10EC5280 to bmi160_i2c ACPI IDs to allow binding on some devices Date: Fri, 2 Feb 2024 18:30:41 +0100 Message-ID: <20240202173040.26806-2-jesusmgh@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit "10EC5280" is used by several manufacturers like Lenovo, GPD, or AYA (and probably others) in their ACPI table as the ID for the bmi160 IMU. This means the bmi160_i2c driver won't bind to it, and the IMU is unavailable to the user. Manufacturers have been approached on several occasions to try getting a BIOS with a fixed ID, mostly without actual positive results, and since affected devices are already a few years old, this is not expected to change. This patch enables using the bmi160_i2c driver for the bmi160 IMU on these devices. Signed-off-by: Jesus Gonzalez --- A device-specific transformation matrix can then be provided in a second step through udev hwdb. This has been discussed before in 2021, see here: https://lore.kernel.org/lkml/CACAwPwYQHRcrabw9=0tvenPzAcwwW1pTaR6a+AEWBF9Hqf_wXQ@mail.gmail.com/ Lenovo, as an example of a big manufacturer, is also using this ID: https://www.reddit.com/r/linux/comments/r6f9de/comment/hr8bdfs/?context=3 At least some discussions with GPD took place on the GPD server Discord, for which I can provide proof on demand via screenshot (if not accessible directly). I have read the patch submission instructions and followed them to the best of my knowledge. Still, this is my first kernel patch submission, so I'd be glad if you could please point out any mistakes. Thank you! drivers/iio/imu/bmi160/bmi160_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/imu/bmi160/bmi160_spi.c b/drivers/iio/imu/bmi160/bmi160_spi.c index 8b573ea99af2..0874c37c6670 100644 --- a/drivers/iio/imu/bmi160/bmi160_spi.c +++ b/drivers/iio/imu/bmi160/bmi160_spi.c @@ -41,6 +41,7 @@ MODULE_DEVICE_TABLE(spi, bmi160_spi_id); static const struct acpi_device_id bmi160_acpi_match[] = { {"BMI0160", 0}, + {"10EC5280", 0}, { }, }; MODULE_DEVICE_TABLE(acpi, bmi160_acpi_match); -- 2.43.0