Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp510414iob; Thu, 28 Apr 2022 07:16:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDpgsU4BWTJi0K8V17XSJ5HeIHH3SuA9CyngL/7w6t2Owdmv/7tEYOUcfxZj71ZyBXwFXt X-Received: by 2002:a05:651c:98d:b0:24d:b554:7d18 with SMTP id b13-20020a05651c098d00b0024db5547d18mr21473806ljq.87.1651155375492; Thu, 28 Apr 2022 07:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651155375; cv=none; d=google.com; s=arc-20160816; b=ZBub9SPnISKwRsk/VaAAGZNHnoSFFK+e0LY8sZzR63hs75wJBp5wWinSnxOoIWKPdV kinibzYLlMCqAogXePkNmwNxtshGXQ3IiRCSdPdG+2CNflWwq+yn1rh3NvjSiBxaylwP KkkOXg0uChp9ODe+nAkg1hS+ySEd9HO0C/KDAfk5D76PziPILsFTaA2otss9dU6mMK8L oxy7t2mUbGly17VDJrRHTVZoHYv8j8PX0zOBDMZhUrHtWa1m09t31VoQcg+afSBVBJVx mJnVZ41ahw7yN2WHqyJuZcLlcGQfqkvEZkaaLtYdYUcNgO2kQ6FepYkEYGC9fSN+WXjq cEig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+d/b+jPPjbNnvdgL12SeSFGmPesbZ1eVdwiX8H2rBV0=; b=O6sQYz04717sROb4V3cxy7GXU/UnW2ig0Os6o0GMlDn3Vck+2EawXJsMHaXnyqQWcC j2awdGy3eJRyi5cK2Y7ff3aHWl/1JaBui97tNGWZDkae2rWar/vo5EvTq8AtMjAy30/5 7+BaIbNtXDjyT8luwpqkQbgCqklF35GLqKLeeFEWi5vJ6wxge77m7hjILvyUeybczRcY 8vdJjqqnWXfTwQ9WIVRS2wDD7bO+fylJzFPYZITwIkZxNUJ6vEVMgHlhuUCW74eBtItM TwUUxSD3okhyP9d4eOoadhmhQQcrCNLq1XBDpmkHwVb9ViZN7ql8kPf7Hft3PcuoXkPr aB6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FuMLTKVL; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a195006000000b0044a255c3f0fsi4273862lfb.487.2022.04.28.07.15.24; Thu, 28 Apr 2022 07:16:15 -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=@intel.com header.s=Intel header.b=FuMLTKVL; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231481AbiD1KX3 (ORCPT + 99 others); Thu, 28 Apr 2022 06:23:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231246AbiD1KX0 (ORCPT ); Thu, 28 Apr 2022 06:23:26 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1FFB6408; Thu, 28 Apr 2022 03:20:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651141211; x=1682677211; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=geWC0vTfFeW70jzj+mxX3TbT5h1lFqMsvssH+3VsSkA=; b=FuMLTKVLL0sTWgkFO219V8larkQ9LHiJtZN4Llsd/8c31nOOIiNyjR2i KwkmaxYS/jeG6RZII+m9EPhEpPG4RV8JeKjyDpP6r1yQ6RDz6Jg9YO6dy 5ciU7QQpu6bFrvVSrPcqkmHOPRCG1fjeuwdfnb60PBH5sQBVQbPw5bpwu /Zu3+7Dx0egUX4PvI6NYQpJKJZ6Z1q7QCNjp61dDohFgBJiGYeP5Ed5zS S6zqkvSB8przd8fH0yZW0pdtP9TX+wf/jmDUipgamrQbjbgNFHnCGtePm f+PPAuWn/+IDQXP33lLHHWenPRjJLiQlvWP98Cem6+Yofp/grgIGCYoxV A==; X-IronPort-AV: E=McAfee;i="6400,9594,10330"; a="266049574" X-IronPort-AV: E=Sophos;i="5.90,295,1643702400"; d="scan'208";a="266049574" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2022 03:20:11 -0700 X-IronPort-AV: E=Sophos;i="5.90,295,1643702400"; d="scan'208";a="682425717" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2022 03:20:08 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nk1Fm-009FRL-1y; Thu, 28 Apr 2022 13:20:06 +0300 Date: Thu, 28 Apr 2022 13:20:05 +0300 From: Andy Shevchenko To: Paul Gortmaker Cc: linux-kernel@vger.kernel.org, Aubrey Li , Hans de Goede , Len Brown , linux-acpi@vger.kernel.org, Mark Gross , platform-driver-x86@vger.kernel.org, "Rafael J. Wysocki" Subject: Re: [PATCH 4/4] platform/x86: pmc_atom: make the PMC driver actually unselectable Message-ID: References: <20220428062430.31010-1-paul.gortmaker@windriver.com> <20220428062430.31010-5-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220428062430.31010-5-paul.gortmaker@windriver.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 On Thu, Apr 28, 2022 at 02:24:30AM -0400, Paul Gortmaker wrote: > This caught my eye when I saw it was def_bool and hence largely > pointless to have a Kconfig for it at all. > > Yet there is no reason why you shouldn't be able to opt out of Atom > platform support if you only care about desktop and server class CPUs. > > It was introduced as def_bool, but there is no obvious reason as to why > it was forcibly built-in for everyone, other than LPSS implicitly > relying on it (which is now fixed). So here we fix up the Kconfig and > open the door for people to opt out. > > Since putting "default y" on anything that isn't absolutely essential is > generally frowned upon, I made the default be CONFIG_MATOM. People who > use "make oldconfig" or similar won't notice any difference. > > The two "unchanged" lines for PCI and COMMON_CLK appear in the diff from > fixing a whitespace issue that somehow managed to live on despite being > moved between two different Kconfig files since its introduction. > config PMC_ATOM > - def_bool y > - depends on PCI > - select COMMON_CLK > + bool "Intel Atom SOC Power Management Controller driver" s/SOC/SoC/ here and everywhere else in this patch. > + default MATOM > + depends on PCI > + select COMMON_CLK > + help > + This enables support for the Atom SOC Power Management Controller > + driver, and associated platform clocks. If you intend to boot this One space is enough. > + kernel on platforms with an intel Atom CPU, say Y here. Please, list the Atoms that really need this, for example, Broxton doesn't. I believe the list should include (but not limited to): Intel Bay Trail Intel Braswell Intel Cherry Trail -- With Best Regards, Andy Shevchenko