Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp957473pxb; Tue, 8 Feb 2022 06:21:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFPGTeLDZLVNro0SLpkZ0Ffy7IOJdBGcXSZOGp1xg/1MhThHZDMlaHkgJZQ+KTjAlVczS4 X-Received: by 2002:a05:6a00:1394:: with SMTP id t20mr4733422pfg.70.1644330076897; Tue, 08 Feb 2022 06:21:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644330076; cv=none; d=google.com; s=arc-20160816; b=CYS+8h0v2g1deOHiE6Cgw3UGAK4Vhcbu4co6Fjals9poX1aNcefncxBGQ0UiT0A9lZ WAhCgr7Wc3UtlgiKfCrMDGMv9p8J2KGaSUx+xoSlbRqCHUkaYJmtC1dYEZSd2evdaQsx QlV8BLCcyll5yiU4KuG7bqvL2ZOHEsgLxxz5zO3UelU4QBc86qA4LHRbU44BUO4qi3St xXjiqYQ/+qP967wOP9h8EV2AKuTGrwHEg9ha2A/uIFNzIdFOv8QBYTeOJt+WuS1XlIrj TGSsdFyB0UReCO3ERWHeHDvHRxLUlZe1geQtuqShREfYkLBi5F8LaeQwLsTFJaM1Wf8p fzxA== 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=4tMxQxcJ5rizEoS5UTJCaiSckKkfeW6Chcez0Web9VY=; b=Yve4Wu4ah9+lehNGDbONVA+9CjSWogS2jEmf4TvN96CHRL7N5pKXjuBgvL9bHsqYHp BDcv5vsDAAtDQQRKSPYhDaDp2wZkxXBC3Immc7DVCOGtps5psBxdYCHzfDtlFXaHfgdo C8vczbX10OpWYREUT4uFnO+nc6MmyMNIvRnbXUJ/ZO9I/00LNTJlZeDnjQMAUN8qvOiA G/+tqOA/unQe+aSrwkPWiP7LnOiIg26/Pb4iedZbbl/WNcltftnMW1KRJXnrIh001oHj WWrdsds5U9+FzoeKerBsFAgtLO4nNDIXqHBgzaWt2sL5wiXfUnRKHv3XeOBf7SZKQBUH zthA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=el7LP5E3; 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 t63si12884124pgd.132.2022.02.08.06.21.03; Tue, 08 Feb 2022 06:21:16 -0800 (PST) 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=el7LP5E3; 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 S236315AbiBGSxb (ORCPT + 99 others); Mon, 7 Feb 2022 13:53:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235289AbiBGSvQ (ORCPT ); Mon, 7 Feb 2022 13:51:16 -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 ESMTP id E7B14C0401DA for ; Mon, 7 Feb 2022 10:51:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644259874; 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=4tMxQxcJ5rizEoS5UTJCaiSckKkfeW6Chcez0Web9VY=; b=el7LP5E3u2JxKzZW0POVD9LtNxLgSrAQqrr7tkwZU3Q+6NAD9pNZIJUVie3ucLlFuezSGq pb1h94HcG/LLOiiseFShecu6c7tK00NFEe92NR9RfM22evQNzVuCNK9t4M+Em8nUpE7JTi pM7IKnPWKsG3R0caUdXwKHWOz6Lmv+U= 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.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-101-4Snjwa9IPnyGDtBDoA5hhg-1; Mon, 07 Feb 2022 13:51:12 -0500 X-MC-Unique: 4Snjwa9IPnyGDtBDoA5hhg-1 Received: by mail-ed1-f69.google.com with SMTP id w15-20020a056402268f00b00408234dc1dfso8328670edd.16 for ; Mon, 07 Feb 2022 10:51:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=4tMxQxcJ5rizEoS5UTJCaiSckKkfeW6Chcez0Web9VY=; b=Xp2zRdDPcIsUTuJ1JLZQxqQCDCnphQxweBgB05SS8FyQT7Yt8pNe2SIvjI6WAZviz8 4/tEiU6oyqmWDUMe+c3MS58oVtnktYJiLuX1tjDA1d5D+1omlszs9lH9ZRP8r8XHYUYG X1M59PGeOU1N5O3Xb4Ew3q0bfSmMWrFyGXSzZa8yAPtc0TQZj0+E6n4l8fG2eo+kK6Mw 5khpSY5LTDduMjwJGTg59jnxd81Y7OOgoZEauIUJLIGJ3sz/Q2jrVoH93uTEwRVcKeSr wEDVVcsSdOrF3LKnHv2tLanBykUEcEMCWN9FKgpUIzHUgzENEbWdby9TV7pKy5FAfIBw 616g== X-Gm-Message-State: AOAM531+MSYjWjE0zuMeuuT9WAYmivbF2e1snfqr+WPqv/guUUYMXts4 YRZXVXNap/23d5hB4LqmTYXAFHxZ0Lfle4wsoz7B0tE76ZncQrX1v2s37y7M15lfIoZSHQ5LT+5 qzwq2m62XVxPy7Q014MHKP/0s X-Received: by 2002:a17:906:2ed1:: with SMTP id s17mr869863eji.174.1644259871583; Mon, 07 Feb 2022 10:51:11 -0800 (PST) X-Received: by 2002:a17:906:2ed1:: with SMTP id s17mr869857eji.174.1644259871386; Mon, 07 Feb 2022 10:51:11 -0800 (PST) Received: from ?IPV6:2001:1c00:c1e:bf00:1db8:22d3:1bc9:8ca1? (2001-1c00-0c1e-bf00-1db8-22d3-1bc9-8ca1.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1db8:22d3:1bc9:8ca1]) by smtp.gmail.com with ESMTPSA id b17sm2491962ejd.34.2022.02.07.10.51.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Feb 2022 10:51:10 -0800 (PST) Message-ID: <43bfd6d9-58a3-6f9c-0848-4ef147552afb@redhat.com> Date: Mon, 7 Feb 2022 19:51:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH 1/2] x86/Kconfig: move and modify CONFIG_I8K Content-Language: en-US To: =?UTF-8?Q?Mateusz_Jo=c5=84czyk?= , linux-kernel@vger.kernel.org, x86@kernel.org, linux-hwmon@vger.kernel.org Cc: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Jean Delvare , Guenter Roeck , Mark Gross References: <20220207182940.242838-1-mat.jonczyk@o2.pl> From: Hans de Goede In-Reply-To: <20220207182940.242838-1-mat.jonczyk@o2.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 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_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi, On 2/7/22 19:29, Mateusz Jończyk wrote: > In Kconfig, inside the "Processor type and features" menu, there is > the CONFIG_I8K option: "Dell i8k legacy laptop support". This is > very confusing - enabling CONFIG_I8K is not required for the kernel to > support old Dell laptops. This option is specific to the dell-smm-hwmon > driver, which mostly exports some hardware monitoring information and > allows the user to change fan speed. > > This option is misplaced, so move CONFIG_I8K to drivers/hwmon/Kconfig, > where it belongs. > > Also, modify the dependency order - change > select SENSORS_DELL_SMM > to > depends on SENSORS_DELL_SMM > as it is just a configuration option of dell-smm-hwmon. This includes > changing the option type from tristate to bool. It was tristate because > it could select CONFIG_SENSORS_DELL_SMM=m . > > When running "make oldconfig" on configurations with > CONFIG_SENSORS_DELL_SMM enabled , this change will result in an > additional question (which could be printed several times during > bisecting). I think that tidying up the configuration is worth it, > though. > > Next patch tweaks the description of CONFIG_I8K. > > Signed-off-by: Mateusz Jończyk > Cc: Pali Rohár > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Borislav Petkov > Cc: Dave Hansen > Cc: Jean Delvare > Cc: Guenter Roeck > Cc: Hans de Goede > Cc: Mark Gross For other reviewers, the only consumer of the CONFIG_I8K option is drivers/hwmon/dell-smm-hwmon.c which has a couple of: "#if IS_ENABLED(CONFIG_I8K)" checks to enable its old legacy /proc/i8k interface. So this move definitely makes sense. I wonder if it would not be better to just completely drop the old /proc/i8k interface though ? With that said, this series looks good to me, so: Reviewed-by: Hans de Goede for the series. Regards, Hans > --- > arch/x86/Kconfig | 17 ----------------- > drivers/hwmon/Kconfig | 15 +++++++++++++++ > 2 files changed, 15 insertions(+), 17 deletions(-) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 9f5bd41bf660..71d4ddd48c02 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -1275,23 +1275,6 @@ config TOSHIBA > Say Y if you intend to run this kernel on a Toshiba portable. > Say N otherwise. > > -config I8K > - tristate "Dell i8k legacy laptop support" > - depends on HWMON > - depends on PROC_FS > - select SENSORS_DELL_SMM > - help > - This option enables legacy /proc/i8k userspace interface in hwmon > - dell-smm-hwmon driver. Character file /proc/i8k reports bios version, > - temperature and allows controlling fan speeds of Dell laptops via > - System Management Mode. For old Dell laptops (like Dell Inspiron 8000) > - it reports also power and hotkey status. For fan speed control is > - needed userspace package i8kutils. > - > - Say Y if you intend to run this kernel on old Dell laptops or want to > - use userspace package i8kutils. > - Say N otherwise. > - > config X86_REBOOTFIXUPS > bool "Enable X86 board specific fixups for reboot" > depends on X86_32 > diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig > index 8df25f1079ba..dd244aa747ad 100644 > --- a/drivers/hwmon/Kconfig > +++ b/drivers/hwmon/Kconfig > @@ -505,6 +505,21 @@ config SENSORS_DELL_SMM > When option I8K is also enabled this driver provides legacy /proc/i8k > userspace interface for i8kutils package. > > +config I8K > + bool "Dell i8k legacy laptop support" > + depends on SENSORS_DELL_SMM > + help > + This option enables legacy /proc/i8k userspace interface in hwmon > + dell-smm-hwmon driver. Character file /proc/i8k reports bios version, > + temperature and allows controlling fan speeds of Dell laptops via > + System Management Mode. For old Dell laptops (like Dell Inspiron 8000) > + it reports also power and hotkey status. For fan speed control is > + needed userspace package i8kutils. > + > + Say Y if you intend to run this kernel on old Dell laptops or want to > + use userspace package i8kutils. > + Say N otherwise. > + > config SENSORS_DA9052_ADC > tristate "Dialog DA9052/DA9053 ADC" > depends on PMIC_DA9052 >