Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2121DC61DA4 for ; Sat, 11 Mar 2023 11:13:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230140AbjCKLNu (ORCPT ); Sat, 11 Mar 2023 06:13:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229936AbjCKLNV (ORCPT ); Sat, 11 Mar 2023 06:13:21 -0500 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 D059113846D for ; Sat, 11 Mar 2023 03:12:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678533155; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rCCwmyApAihxP4yvLbt76+J6ZESYZiBkoYCjepoizvE=; b=TLFHcNVIMUmeu980+sHq6JU1XtlWAM0zlcHP9g1d6TgxR+2UPk8u6zfyme6c7rsWkS0qm7 eTelF9Oz9ViRVNWdZm8F2qgk+y8mnCOWCtIVfXyD9YE0nODPstt27Z61fDSjU3rHFV8WGf ylqs5nPbhLQhpVKwDyuCjysZOTgQzdo= 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-473-9BydyYz2P2eIoD5KxvyizA-1; Sat, 11 Mar 2023 06:12:33 -0500 X-MC-Unique: 9BydyYz2P2eIoD5KxvyizA-1 Received: by mail-ed1-f69.google.com with SMTP id h11-20020a0564020e8b00b004e59d4722a3so10949649eda.6 for ; Sat, 11 Mar 2023 03:12:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533152; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rCCwmyApAihxP4yvLbt76+J6ZESYZiBkoYCjepoizvE=; b=5Ga770dVNuJhYJES+08mFuX9VpupLfEBL3vLVYgyUELkVkRqlRfPYXW+YJZVjuzGzD DVjxE5AmrWhPkc4ZQLXXC/3e7j/ebAjoQoSj2nZV0V9AW31Z2euOgbFB7sXfzHVlSX4X chf5siqzZh4EJahvlb9WdZSybIWhZ3K9qh7aWpHYMb/hJ+rOdXryGcemGD7+QT5+xwFJ AORzu5kuHVlRa7sciEypaYoF8tUR6Xbd+HemPBBDq/TdUXn8KMJXGVZ9jeSe2t+5I6+F hP/fDkyjDablZSGpYRaVsZGW4tdDtbC+t9DaHgnF25i3iFV7xOpfhE80mNYVj7aTbvDD icWw== X-Gm-Message-State: AO0yUKVjtx1fQuECGHVAIGpIG6vNmFucmcjhR/Us4fTt4Xt08coTMqe5 AAOClVlW88cZXwt83CCy4KJVMt52vJ9F7tZQhiHDd9UkTVfeTfchu7CoWDNsjwlpp8rmDKVDrlG X7e4z3u91q+Kv57eofhXoMfVVu3B1Lq3r X-Received: by 2002:a17:906:16d0:b0:921:1c2c:48 with SMTP id t16-20020a17090616d000b009211c2c0048mr1295523ejd.49.1678533151889; Sat, 11 Mar 2023 03:12:31 -0800 (PST) X-Google-Smtp-Source: AK7set80mysco1BuArjgjjwOJ+1BuiwMLI8EfFzqxX5yuGct88NWCGQJKR5qdZJEYfSQcMxULaaSNg== X-Received: by 2002:a17:906:16d0:b0:921:1c2c:48 with SMTP id t16-20020a17090616d000b009211c2c0048mr1295511ejd.49.1678533151605; Sat, 11 Mar 2023 03:12:31 -0800 (PST) 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 y25-20020a170906519900b008eb5b085075sm983791ejk.122.2023.03.11.03.12.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Mar 2023 03:12:31 -0800 (PST) Message-ID: Date: Sat, 11 Mar 2023 12:12:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH] platform/x86: x86-android-tablets: select PMIC_OPREGION to resolve a link error of intel_soc_pmic_exec_mipi_pmic_seq_element Content-Language: en-US, nl To: Tom Rix , markgross@kernel.org Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230310192915.2700069-1-trix@redhat.com> From: Hans de Goede In-Reply-To: <20230310192915.2700069-1-trix@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 3/10/23 20:29, Tom Rix wrote: > A rand config causes this link error > drivers/platform/x86/x86-android-tablets/lenovo.o: In function `lenovo_yt3_init': > lenovo.c:(.init.text+0x6c): undefined reference to `intel_soc_pmic_exec_mipi_pmic_seq_element' > > The rand config has > CONFIG_X86_ANDROID_TABLETS=y > CONFIG_PMIC_OPREGION=n > > PMIC_OPREGION should be selected to build the > intel_soc_pmic_exec_mipi_pmic_seq_element symbol. > > Signed-off-by: Tom Rix Thanks, but this is a dup with: https://patchwork.kernel.org/project/platform-driver-x86/patch/20230309094035.18736-1-hdegoede@redhat.com/ I just did not get around to pushing that out to pdx86/for-next yet. I have just pushed this to pdx86/for-next to avoid further duplicate fixes. FWIW, since all other users of PMIC_OPREGION use depends on, not select this should have been a depends on too. Unless Kconfig symbols are explicitly intended to be selected (typically these are hidden Kconfig symbols (1)) then you should usually use depends on. Mixing depends on and select leads to Kconfig circular dependencies errors. Regards, Hans 1) A hidden Kconfig symbol is one which is e.g. just 'bool' not 'bool "Description of feature here"' these typically are libraries / helpers. > --- > drivers/platform/x86/x86-android-tablets/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/platform/x86/x86-android-tablets/Kconfig b/drivers/platform/x86/x86-android-tablets/Kconfig > index 2b3daca5380b..65980229d783 100644 > --- a/drivers/platform/x86/x86-android-tablets/Kconfig > +++ b/drivers/platform/x86/x86-android-tablets/Kconfig > @@ -6,6 +6,7 @@ > config X86_ANDROID_TABLETS > tristate "X86 Android tablet support" > depends on I2C && SPI && SERIAL_DEV_BUS && ACPI && EFI && GPIOLIB > + select PMIC_OPREGION > help > X86 tablets which ship with Android as (part of) the factory image > typically have various problems with their DSDTs. The factory kernels