Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2991966rdh; Mon, 27 Nov 2023 04:18:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmZu3JSlt4biAL6b/XlXkV7AHsO5CFJ1p1hhEiOWn54vA5ypd/8/HXAvmPf/bsdkulwnv7 X-Received: by 2002:a05:6a21:99a7:b0:18a:b5c3:55db with SMTP id ve39-20020a056a2199a700b0018ab5c355dbmr11916882pzb.50.1701087489408; Mon, 27 Nov 2023 04:18:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701087489; cv=none; d=google.com; s=arc-20160816; b=mJEeCoqXQ8451+Cl6pZ320OYa5tMj0Dq4O22WbBGv4f1k1lD3EaJTedFkPXeLWsgGz +aOedHb/CinUabZMsiTMpXNjC2jNHUDYbQyL1vCS71aiakMbGhLjAV3T4eInRMPdvx0t wxhJYg3DCoGkINMRdlrvZ/qKUO/qGrM8LCKoAiNDaSTTZyNne5+IHdCL4ab074H5y4vr gudUF205PGDrsMDCh4Q4nG4s6PNjMCzrV6DR+wvS/iF5SDUgn7v36+JERyL4m8E54FPk OdkXyle3qnnPv2zuWodJCtrW9VQSqmGpA12TbBm+LYAHx11AnRr9plfqX8ORc/CAHrTU g5Zw== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=//Bc9TmEqtVgaODHTvD3WtD2zML+qIZDo7Hazax0zbw=; fh=Y/fWb5RPQ76n7a+sjMSmO7321GAV6eLreFXjiR0dwJI=; b=riH0ssX7Dj1iyDr5N4hMpbBNElbHhORAlSSQNaYI+cqsEd9iYQEGJeYV+BIBf25/6t q77ihpB0FFoJUcyxY51CXd03Rd5+BfInovjUklO13IbdCeta06gzQzc3crLw5KB9nJY2 9todhuM5KEJshge2GuJQH3CFXMgcVdDYRkWlD9y+tlEuypOV4M8BM+NZwDeM6lhaoK15 rFrtH7kRZ9OlkMw9n45qfQiDvdRg8vM0l8a7JNgxf7Ead6KcVhDJGfxB9tZH7N+q7WCQ 7EHSi8FpWa4CSCF29lhE5XLq3++Q7sRY69l0HuEoCvd12BS/57c2SLQC8NupMpib8LSA /saw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="DJo8/27O"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id s1-20020a63e801000000b005be09b723b7si9716764pgh.636.2023.11.27.04.18.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 04:18:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="DJo8/27O"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 59870807DEC8; Mon, 27 Nov 2023 04:18:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233196AbjK0MRu (ORCPT + 99 others); Mon, 27 Nov 2023 07:17:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233178AbjK0MRs (ORCPT ); Mon, 27 Nov 2023 07:17:48 -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 B8FE6101 for ; Mon, 27 Nov 2023 04:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701087473; 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=//Bc9TmEqtVgaODHTvD3WtD2zML+qIZDo7Hazax0zbw=; b=DJo8/27OVRlzTfYEze8K7aR6PoLvGv0rlGZuci17ulvkFeeLw/bbuuB2Mt5CynHh0O7SEs AVs9au6fEI3xbPaJ4PDIeWdSLZMIRc6T4vzrwuTeLiNo/PcRdqeyE1Mfjc1Gb9E5UQ1l/a tnSQT/NJlicDHY4STSz37ud16GzO2qg= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-185-QMLJLgnhOtSavwjW08KvuQ-1; Mon, 27 Nov 2023 07:17:52 -0500 X-MC-Unique: QMLJLgnhOtSavwjW08KvuQ-1 Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-544c2881bf3so2689854a12.0 for ; Mon, 27 Nov 2023 04:17:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701087471; x=1701692271; 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=//Bc9TmEqtVgaODHTvD3WtD2zML+qIZDo7Hazax0zbw=; b=FuPJ/4ks97x6dLmjqAAFYZdahN/bWpGUvRdqKl8PKZDR+LCindXEPCZ6IOavJ5w8lh OuLhayIT0fBYzd/h/7dszLxkrcfrwqs1ihlDvIdMsPvpf9+JlKm+be9dRIBwpQ/NcMyo D43tfWPgoyKQvoX32pkt9BpgKe1MrYytXkItFa4hUOpCbLestglzVH9Fx2ga7jh0dVtV HheMpSKkZj3+PFXiwsUfdRxcT78ZunHw4eJhuM09k1vjgEuQ5d4a874LpKo2zxy4q5tl yQI48tp/c245ECNOyozE8Du52V0LPvJFD3HsyByvMzBxjWTv+M3hNK4omSizj8uzdjG6 6/tQ== X-Gm-Message-State: AOJu0YwJdHR5OVFHbhgo84fchxkg+s3CGN8Jdj2WEPEXb4LFloiqZSYR AiPrgswXE5g6mCqWS+ZiW/a5Ji7qEM512UnEUz+AQ1rDpW3AqT6qZ6VCPP6z+/v+PqqlD3gCRqw KLy1limL2/POmU+D+s8J9NMHB X-Received: by 2002:a17:907:9187:b0:a04:1714:539d with SMTP id bp7-20020a170907918700b00a041714539dmr6142637ejb.55.1701087471511; Mon, 27 Nov 2023 04:17:51 -0800 (PST) X-Received: by 2002:a17:907:9187:b0:a04:1714:539d with SMTP id bp7-20020a170907918700b00a041714539dmr6142624ejb.55.1701087471197; Mon, 27 Nov 2023 04:17:51 -0800 (PST) Received: from [10.40.98.142] ([78.108.130.194]) by smtp.gmail.com with ESMTPSA id qc24-20020a170906d8b800b00a0e3b75f8dasm1651929ejb.101.2023.11.27.04.17.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Nov 2023 04:17:50 -0800 (PST) Message-ID: <65f989f6-c50b-454a-90e2-f2de4de905ac@redhat.com> Date: Mon, 27 Nov 2023 13:17:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 3/3] platform/x86: acer-wmi: Fix recursive dependency for acer-wmi Content-Language: en-US To: SungHwan Jung , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , "Lee, Chun-Yi" , Jean Delvare , Guenter Roeck Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org References: <20231124094122.100707-1-onenowy@gmail.com> <20231124094122.100707-4-onenowy@gmail.com> From: Hans de Goede In-Reply-To: <20231124094122.100707-4-onenowy@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 27 Nov 2023 04:18:06 -0800 (PST) Hi, On 11/24/23 10:41, SungHwan Jung wrote: > "select ACPI_VIDEO" cause recursive dependency when "depends on HWMON" > is added. > > ---build log > drivers/hwmon/Kconfig:6:error: recursive dependency detected! > drivers/hwmon/Kconfig:6: symbol HWMON is selected by EEEPC_LAPTOP > drivers/platform/x86/Kconfig:326: symbol EEEPC_LAPTOP depends on ACPI_VIDEO > drivers/acpi/Kconfig:208: symbol ACPI_VIDEO is selected by ACER_WMI > drivers/platform/x86/Kconfig:173: symbol ACER_WMI depends on HWMON > --- > > It is not recommended to use "select" for visible symbol, "select" has changed > to "depends on". > > This patch depends on "platform/x86: acer-wmi: add fan speed monitoring > for Predator PHN16-71" > > Signed-off-by: SungHwan Jung This patch should come before the patch adding the "depends on HWMON", to avoid a bisect ending up with patch 2/3 applied without patch 3/3 applied and thus picking a non building commit. Also there is a stub defined for the used acpi_video_get_backlight_type() function when ACPI_VIDEO is not set, so this can use: depends on ACPI_VIDEO || ACPI_VIDEO = n I have changed the order of the patches for this patch to be before the patch adding the hwmon support and I've updated the depends as mentioned above while merging this: Thank you for your patch, I've applied this patch to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > --- > drivers/platform/x86/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig > index caf3f4c6b..33ddb644e 100644 > --- a/drivers/platform/x86/Kconfig > +++ b/drivers/platform/x86/Kconfig > @@ -178,7 +178,7 @@ config ACER_WMI > depends on RFKILL || RFKILL = n > depends on ACPI_WMI > depends on HWMON > - select ACPI_VIDEO > + depends on ACPI_VIDEO > select INPUT_SPARSEKMAP > select LEDS_CLASS > select NEW_LEDS