Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3733886rwr; Sat, 22 Apr 2023 10:32:37 -0700 (PDT) X-Google-Smtp-Source: AKy350YzN6zlNl8hhPIQ6stPcmaqEEWtzEwWyTHhmGJ0wlNwxdCr7PrtD8pl90i9+QP8DfHxAWs8 X-Received: by 2002:a17:903:41c6:b0:19e:94ff:6780 with SMTP id u6-20020a17090341c600b0019e94ff6780mr10726728ple.6.1682184757332; Sat, 22 Apr 2023 10:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682184757; cv=none; d=google.com; s=arc-20160816; b=l8c01Yx8X0uLlGhscTPnYPsVxJXk50n6rz+y3/jO201TTZIDq/itR+7G8XTsI3kveA COlI6I/pzt5VGkC/DLV1+6ywuyaj16818sZiiHQZi2LhkOs+2Z/i2QeEZOT/fqLOBqk4 GnKpob99+K4YcCCdsZPcCxiiNy3I1b1sb02uByq3GI0qOvSp/2xKFdNzE5qTbr2iBn5Q rLq60vkDXUBKqGwNXIsMgH7usZ1D9cTIASmR9+WlTFX1RHW7PoCj1TJNUTBlOitGEbHS FQHWSTS0qpnlyXWVjU4gffKk1zUk0VncFXV9BU1qJfzd2dYKh37skdGQZeLIAO8CVy+p KYDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=4Whc1PiL8cvCrwQXfR2j4EkLjnYvdXwSxmXSEz6X/dk=; b=SwmNnXdiY6bFPDnFAF/OFC69iO9S5SMfXNSI8BkLMyoAZh6s0DIuo43dukevTeTjjV r3GSOQejBQA5YumL4UAiTBBqtBcOJyc6SPvRsgajJydNX9/bSDtF5+j3/4z9ad3Qp8eD x7NId6mOKYR0hBahu4TVSQK1fd64A1rxVJ2uuD0p15x/wkuz2r/VHu6unsLEpyCd81iz bUZpacrhgpPEo0ha9QAaavW6d0DlKE0/iBI1U0b5km7/JzBpWIjsQfJO5TfZDBLyaDhi WibiudB0oCSCbVG4GRID+1KfPpe4jBOiemQ5LPhqf9EgXEBtzs7GBefHKQgMGU7cihYb Xvtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NC8FX9cA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a17-20020a170902ecd100b001a6fce122basi7748470plh.322.2023.04.22.10.32.26; Sat, 22 Apr 2023 10:32:37 -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=@redhat.com header.s=mimecast20190719 header.b=NC8FX9cA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229820AbjDVRas (ORCPT + 99 others); Sat, 22 Apr 2023 13:30:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbjDVRao (ORCPT ); Sat, 22 Apr 2023 13:30:44 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9672B211E for ; Sat, 22 Apr 2023 10:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682184593; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4Whc1PiL8cvCrwQXfR2j4EkLjnYvdXwSxmXSEz6X/dk=; b=NC8FX9cARPe5dub4NXsC9EKmIx23Q1uqDYtenSYDbbhRwQzeHY4ukLjoYYkIx3HlRgNNjc pl6Yjy6EbZcMnGEg/28wybmJW/fMnp93ZeVrlYtYtUK4fwPiwvdJUI1vefgjyjjo+jm//8 xqv489U83zbe0u3OD6upFX7jQfIwOd4= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-575-_lWhMZWGMraENTAqy75WIw-1; Sat, 22 Apr 2023 13:29:46 -0400 X-MC-Unique: _lWhMZWGMraENTAqy75WIw-1 Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5067d65c251so2621444a12.2 for ; Sat, 22 Apr 2023 10:29:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682184585; x=1684776585; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4Whc1PiL8cvCrwQXfR2j4EkLjnYvdXwSxmXSEz6X/dk=; b=Onuwo10f+pHAdWQCD/xPFD2/bs53mAgReT/Gwqg+gfmjZpGUBhnw025UE8FMwgyHUr QZNOwVHue0h3c313HDdClQSP/EOC/JPjb44nZOd3K+112sYAlQlo2vtE9u6Ia4RCdHZe 9mniZHxPeNao2PjCo8PRBe4KXLX3++SGm9Bgb3AxO9ReNXr0xlaxnAXzuaJseppaYe9a YA7wR+aHCTp7vBnidNXeILX+KjxQUbmiBC8ECVbubUj+qrvFcJEbF+MdUFyqNPBoI1Iz jZpoFerizuG9fi2VQ4CbQIm5uy7/hKK+u16z3PPn1gu9y7Yu/IKED1CoBxUiZKUaGhrP kjcg== X-Gm-Message-State: AAQBX9f4W+zWei2Oa6q5ahYV54w14u7ldt3J44aHYnTMoGnh+U/VpBNF U8AzH7Tb21RsL1cuR3tFOydlJMdXBNpC2RmFlb3B0Kc5Gthz+86xs19aurjlzbzF49zszgI13Dw 4oXatHzZJl2P320tsQTPE7iwO X-Received: by 2002:a17:906:c784:b0:94e:23b:75e9 with SMTP id cw4-20020a170906c78400b0094e023b75e9mr5850087ejb.43.1682184585506; Sat, 22 Apr 2023 10:29:45 -0700 (PDT) X-Received: by 2002:a17:906:c784:b0:94e:23b:75e9 with SMTP id cw4-20020a170906c78400b0094e023b75e9mr5850083ejb.43.1682184585208; Sat, 22 Apr 2023 10:29:45 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id bj10-20020a170906b04a00b0094f5f6ba306sm3488679ejb.41.2023.04.22.10.29.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Apr 2023 10:29:44 -0700 (PDT) Message-ID: <5ff4416c-a195-7ac7-9eb1-16d667fd3ad6@redhat.com> Date: Sat, 22 Apr 2023 19:29:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] ACPI: x86: utils: Remove Lenovo Yoga Tablet 2's MAGN0001 To: Marius Hoch , "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230422164401.5986-1-mail@mariushoch.de> Content-Language: en-US, nl From: Hans de Goede In-Reply-To: <20230422164401.5986-1-mail@mariushoch.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Hi, On 4/22/23 18:44, Marius Hoch wrote: > 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 Thanks, patch looks good to me: Reviewed-by: Hans de Goede Regards, Hans > --- > 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)