Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2492739rwr; Fri, 21 Apr 2023 09:31:51 -0700 (PDT) X-Google-Smtp-Source: AKy350bFFIbCy7xpNkgLvsfznHtkLDD/FPngpKCxMItp06/p9m60UYJxHUis0BDHVIko7ITSRZh+ X-Received: by 2002:a17:902:e811:b0:1a9:465c:6802 with SMTP id u17-20020a170902e81100b001a9465c6802mr3481486plg.5.1682094711156; Fri, 21 Apr 2023 09:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682094711; cv=none; d=google.com; s=arc-20160816; b=QRaGGTJ8KXKVZCN4RBdHhVBgEolw+mZoCcgtstn2Sm3yBvo/i2Y2l+WJe6fjljF/PS LUx5x5Lfim/xHKlrr+vNkqlH2fLE/BumJXqKD34EBjMDolqh4rCOiTrgo5ESXe5iZBye 8yc282vIB+bAAe9Zos9bcmHDSEKI3Oor9NaU65socfzwm8fX9nNZzPpjq0Hx3Dxkhils tWqkXuwV4an14spy4ZRg3wVBU/skesLFV08q8aLNBBOnZiFMphuNCLwM3edKgaJQs4vZ JaCsiELlUrg787BIiLLTjoVTmCk2HfUOd5XneMbSA90Bq6xyDZqDKPRZ461aNUBMiJuR L6qQ== 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=/z/hD/lZG0E5LL9ESda6eRaKouQzamHTzP6dwJiUkUU=; b=trqVFahIv+lA4JtIV4SnC+NnOaCl3gLZPxN3jmCGQUBOc5VhPFNcJGkMP+v2CsGAaa KMxUWu6rm40LlM3pxibFdMV3uWGVEW2LY6TlVIBRD7oNscMNxzPA2NJiFxIrGOo/ZaGL vaG6IOicSz+Zsx2HvfA4jQQfl1ZqEaBIrCnsCexQhGelB+L3LO8VUU2QXRvXovtD+Arq ksyy6tlgUg0/lfSOT5USqi25nX0XiQGjtrOBGq/ITcCPNESAqpTeafmdq82sMUsHuLn/ oOJsBp7zFd2//5qSppaZAWhC/9CVMtFXHcxBl/4lIngyuVPkFoOZ5BRMTqjAG61B0qmt rrfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mariushoch.de header.s=MBO0001 header.b=ZjYUzhUC; 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 l12-20020a170903120c00b0019ca1961bc1si5147300plh.108.2023.04.21.09.31.39; Fri, 21 Apr 2023 09:31:51 -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=ZjYUzhUC; 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 S232710AbjDUQ1f (ORCPT + 99 others); Fri, 21 Apr 2023 12:27:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbjDUQ1c (ORCPT ); Fri, 21 Apr 2023 12:27: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 19E59103; Fri, 21 Apr 2023 09:27: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 4Q30L45Rh8z9sfJ; Fri, 21 Apr 2023 18:27:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mariushoch.de; s=MBO0001; t=1682094444; 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=/z/hD/lZG0E5LL9ESda6eRaKouQzamHTzP6dwJiUkUU=; b=ZjYUzhUCxBM5wsKWgOf0OVazmTGyo4COxvMjZOu1z1tvm3RL3I1BJO3nRCF7IOUOdROkS9 majML+MHqTNxrrE7kIfEcT2ZEK8AYKv5WOWrxrPHw0fqM0bP4h//YGgqcHKj8Qxgt0dYNk WkkWq5F8GjeDAtxgFUBzMFJc0bLlJKNdGvAL3YY7HtO7V30Bt6vF2Ybc2h2oIt2ouNQWsR PUcmATR2Rv5bTrmUXW0qabsuoYr6PrKkfX4dyPVysGHaJOotIAd3CPJAIJddELH13EJmnt j2AprOq0cuBCVQ1khgkasr/6lChaELxOuQSBwWYZsCWVwm4SGsQPjLGBbbygbw== 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: scan: Ignore MAGN0001 Date: Fri, 21 Apr 2023 18:27:02 +0200 Message-Id: <20230421162702.3558-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=ham 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/scan.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 0c6f06abe3f4..d21c411e9719 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -1730,6 +1730,12 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device) */ {"BCM4752", }, {"LNV4752", }, + /* + * 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. + */ + {"MAGN0001", }, {} }; base-commit: cb0856346a60fe3eb837ba5e73588a41f81ac05f -- 2.40.0