Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp928757rwr; Thu, 27 Apr 2023 09:53:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5zA4w2N4itBsAe9mDTwRJbeiZser9kjQIs7tXwx69TPdra2LamM4CxGTk0IvtbR88JDov4 X-Received: by 2002:a05:6a00:478e:b0:638:abf4:d49c with SMTP id dh14-20020a056a00478e00b00638abf4d49cmr2943945pfb.3.1682614429500; Thu, 27 Apr 2023 09:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682614429; cv=none; d=google.com; s=arc-20160816; b=ioHlAbA/2OgWTRiBObirEniQ9pZT7be9HRrmz3KkFLUwMGM0lOPl7FErRdL1XihDdv S5hNIDLeIWrgFdyjwugBj/JNq6ws9V5pQiEDDFuYru3J+8jSA7KpyBO623LyHzihfm9s ogiUs1L+Zc9zP98fWX8MAu1hIFCFlAPYkN57HkQKdPO4rHyH3X7OMSOJpHu3UJI6l1M1 G6grHUIolnXFZ8QgfEyYrTKZtDmyvEY2sina6Cqp6hB8wUXYquclMQ4IZU0u6OXwko39 P0JIIrz+xAbWJ4saWmVRbU/6R/eqccPlouxIlYtrYUWm3IvOZ4sEImEixpsr9gphqryI cvWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=J7+5SsipJjKczkOSeJn692xykpA8KNW3nqzTam26upQ=; b=SdrbTkHKf1yftMur021BdJJvS5KPI23AEkJnyGVNc2ESis9Vx1fvnbrJEmzwxGLn5u mMyr0bGr02c4af6pIpVTO21GFEzzHIQGVDPEFpjvO8Npm8FoeO4ShxeZHgEQ4rADDnA/ KieitV0YUzBso38USP37yGLZwmfeBKarucfpeQ05qSbY6hIwrzI8avsDzVeCnnRz8DsN HeX8UB1/+QZ7cAOoJ8jnOpaC33bO/w8e/g2RBXGyv4Z4Vf1QLZ/IfiYpGuoRp7OyrqIt weHuUUqRtmczOW46x9rIygQn4AfZuWyrZvq306zTspZyEzREOfbQt10B05PiIeNvTV4z ZxYA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r17-20020aa79891000000b0063b8eec0832si19065019pfl.114.2023.04.27.09.53.33; Thu, 27 Apr 2023 09:53:49 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243835AbjD0QxY convert rfc822-to-8bit (ORCPT + 99 others); Thu, 27 Apr 2023 12:53:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjD0QxX (ORCPT ); Thu, 27 Apr 2023 12:53:23 -0400 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63E4710DC; Thu, 27 Apr 2023 09:53:22 -0700 (PDT) Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-9594916df23so161287466b.1; Thu, 27 Apr 2023 09:53:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682614401; x=1685206401; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uAAK43FYkSPDkbKb63f0rFAtXfzexYyx0WPl0XP2SNA=; b=iMbcqs3MmH4nHcsbfeoqWM54GEiLxoqxypMYenYLaxlXQJ7e6Z8u9oWz5YnBFJ1hTk ooiULehopR5xxXS3ZjP2eddOpo1p2RSukyCwt7EGPQHTgHwU9qyZldoHekRlojDMcjso tkhE+oGmiMnEX0UECdd8PH+zsbcWFf36y4RiIBMTmGC57uL3vSALn1G/Qtos2Xogm7uu IH/V8we1KXgFSRbZjukgsMpLRhBup2KcvQQnccWW7HOU2zt0tD1PM7jK0WEYSGet7oY3 S1kgSUYh3Qv+RuDGT9ngS6uMUxgb0I2iMdZtmmBFgc6osIj+mRe/3pFrJcH14+1b7Fop QqBw== X-Gm-Message-State: AC+VfDwpqKvxPRvPzerA2GJXawNGxudnAIKt8Klu8c/E0w8p6WCZQcC3 s4wlZCx0Cfh5tk8EDV17f9cY+AjhQfgxpuKyyAeDQcrn X-Received: by 2002:a17:906:738a:b0:94e:9235:d77d with SMTP id f10-20020a170906738a00b0094e9235d77dmr2207225ejl.0.1682614400728; Thu, 27 Apr 2023 09:53:20 -0700 (PDT) MIME-Version: 1.0 References: <20230422164401.5986-1-mail@mariushoch.de> <5ff4416c-a195-7ac7-9eb1-16d667fd3ad6@redhat.com> In-Reply-To: <5ff4416c-a195-7ac7-9eb1-16d667fd3ad6@redhat.com> From: "Rafael J. Wysocki" Date: Thu, 27 Apr 2023 18:53:09 +0200 Message-ID: Subject: Re: [PATCH] ACPI: x86: utils: Remove Lenovo Yoga Tablet 2's MAGN0001 To: Hans de Goede , Marius Hoch Cc: Len Brown , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 On Sat, Apr 22, 2023 at 7:29 PM Hans de Goede wrote: > > 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 Applied as 6.4-rc material, thanks! > > --- > > 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) >