Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3694835rwr; Sat, 22 Apr 2023 09:46:18 -0700 (PDT) X-Google-Smtp-Source: AKy350biVR3cvtxBf9W7GGV/jh6Rv2dQV6W8any+T95oxxwWlKkPupRSIhwnhK3O0W0ns85Q+wE0 X-Received: by 2002:a05:6a00:f87:b0:63d:344c:f123 with SMTP id ct7-20020a056a000f8700b0063d344cf123mr9534366pfb.1.1682181978619; Sat, 22 Apr 2023 09:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682181978; cv=none; d=google.com; s=arc-20160816; b=J2GLHGe+EjHZSyQsGM7sT9aCPokIH60NJKnI09KRhObEYfDdJj/czgmO7Tfihc30Ou eAZSZkVhpervW9Vk07ghq2iD2U2nNoBJQJ9gCAA6gn0DTiR/hgH6XM6h7PX+rgCaMOAp IJE4SKCl74YB0goXKWwWUzZUnWzXMqbACa0Z2NKF4gKXjKCfwzGRA/nZTSpAf/hfRcoT hnbmK7V68CajwUNGZ/rH+i3LQqMUAPQRpo4VGzPC+vl3yvUwpzJtEdvrfX3S13TMZg8w krjYfTAFiOMpEukH2rOUhiCBJrYObzW+8Sdlv3fd89rTTSIptIgvKusoQe7AasNHhylf kuxA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=h2//rKNTfQwBhjD3uoD6LBbhesyy6m9jrkKD0mIcRH0=; b=EeRpDu14dmUdPDeIgprXZwxu+bMGigqkPinuh+ulywiSnubW/48qn6au3ykA8FhALo hrRk1JMH0HdurPOY83E4RYdjUAK+nSFzaCT1MCjAmOmmda2yomszV3DTfdwb+QwAIZl4 8JjfO9xizb6GDuUWXh2CdBJT+mDiaVC/k2l5Oa5lfp1mEZ+MHJhiC1NbTaIBIY6pbEzY vT/vbCPm7793H0uUCeJaZW2tbsRSUQTXJ6Gx2r+85go3zqj7bpdKxG1clklYy39qxfHU wfo5kUrR6AVCYGqUtDP8qbZErPa5RFdhUjJK2PbrLXdt3G6ltYPlXAGPr6ohprb3jlbR 0RZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mariushoch.de header.s=MBO0001 header.b=CZBBUzgD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a056a00008600b0063b679c6a06si7137858pfj.226.2023.04.22.09.45.52; Sat, 22 Apr 2023 09:46:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mariushoch.de header.s=MBO0001 header.b=CZBBUzgD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229612AbjDVQod (ORCPT + 99 others); Sat, 22 Apr 2023 12:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbjDVQoc (ORCPT ); Sat, 22 Apr 2023 12:44:32 -0400 Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [IPv6:2001:67c:2050:0:465::201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A089B1FE4 for ; Sat, 22 Apr 2023 09:44:31 -0700 (PDT) Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4Q3cg96TThz9skl; Sat, 22 Apr 2023 18:44:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mariushoch.de; s=MBO0001; t=1682181861; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=h2//rKNTfQwBhjD3uoD6LBbhesyy6m9jrkKD0mIcRH0=; b=CZBBUzgDwBXnBK/JZJSYDOMwkb8L+mUcz0sDz1WZjtiw+lfqvZOrnvh0SJcdCwnF476Uwq rwDyR8nLvS78QEtj66f4Bt30AgYS+KPXClJvyiZb4fSXhWenWU9K09pFAkklzSZs1uIJ9U m5rhK8QtmhjluXuNRznxRwFEbnx3QwsZA+sdmNLDcGV2yfIzOZbmxGd1szCAUjhcXtNiFM xGp9J884yQC22UgndLsWl7soOqAFbs/BzxedkgTn3jcVhvj1U3NSp91MDCyrylkqIh0IN5 DzdKXSpjIgfGNmY5qUjU6G/RDtlfxEJ+WQbOOGd6GMhUGusfYU0jW6aap4X8+A== From: Marius Hoch To: "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Hans de Goede , Marius Hoch Subject: [PATCH] ACPI: x86: utils: Remove Lenovo Yoga Tablet 2's MAGN0001 Date: Sat, 22 Apr 2023 18:44:01 +0200 Message-Id: <20230422164401.5986-1-mail@mariushoch.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The LSM303D on the Lenovo Yoga Tablet 2 series is present as both ACCL0001 and MAGN0001. As we can only ever register an i2c client for one of them, ignore MAGN0001. Currently this errors: i2c i2c-4: Failed to register i2c client MAGN0001:00 at 0x1d (-16) Tested on a Lenovo Yoga Tablet 2 1051-F. Signed-off-by: Marius Hoch --- drivers/acpi/x86/utils.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/acpi/x86/utils.c b/drivers/acpi/x86/utils.c index ba420a28a4aa..9c2d6f35f88a 100644 --- a/drivers/acpi/x86/utils.c +++ b/drivers/acpi/x86/utils.c @@ -143,6 +143,16 @@ static const struct override_status_id override_status_ids[] = { DMI_EXACT_MATCH(DMI_BOARD_SERIAL, "Default string"), DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Default string"), }), + + /* + * The LSM303D on the Lenovo Yoga Tablet 2 series is present + * as both ACCL0001 and MAGN0001. As we can only ever register an + * i2c client for one of them, ignore MAGN0001. + */ + NOT_PRESENT_ENTRY_HID("MAGN0001", "1", ATOM_SILVERMONT, { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_FAMILY, "YOGATablet2"), + }), }; bool acpi_device_override_status(struct acpi_device *adev, unsigned long long *status) -- 2.40.0