Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1974C432BE for ; Wed, 1 Sep 2021 19:32:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BC9DD61057 for ; Wed, 1 Sep 2021 19:32:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244637AbhIATdx (ORCPT ); Wed, 1 Sep 2021 15:33:53 -0400 Received: from mga14.intel.com ([192.55.52.115]:23516 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244465AbhIATdw (ORCPT ); Wed, 1 Sep 2021 15:33:52 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10094"; a="218562979" X-IronPort-AV: E=Sophos;i="5.84,370,1620716400"; d="scan'208";a="218562979" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2021 12:32:55 -0700 X-IronPort-AV: E=Sophos;i="5.84,370,1620716400"; d="scan'208";a="645910084" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2021 12:32:53 -0700 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id C60882028E; Wed, 1 Sep 2021 22:32:51 +0300 (EEST) Date: Wed, 1 Sep 2021 22:32:51 +0300 From: Sakari Ailus To: Andy Shevchenko Cc: Jean Delvare , "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org Subject: Re: TPS68470 PMIC config option Message-ID: <20210901193251.GZ3@paasikivi.fi.intel.com> References: <20210901160234.0e3e24b2@endymion> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Hi Andy, Jean, On Wed, Sep 01, 2021 at 08:39:19PM +0300, Andy Shevchenko wrote: > +Cc: Sakari. > > On Wed, Sep 01, 2021 at 04:02:34PM +0200, Jean Delvare wrote: > > Hi Andy, > > > > Is there a reason why config TPS68470_PMIC_OPREGION is not under "if > > PMIC_OPREGION" where all other *_PMIC_OPREGION driver options are? > > It was originally like that. > > Sakari, do you know? The answer can be found in Makefile: obj-$(CONFIG_PMIC_OPREGION) += intel_pmic.o intel_pmic.c seems to contain common functionality for PMICs in Intel SoCs whereas the TPS68470 is an external chip. The two codebases are distinct. Perhaps it could make sense to either rename this as CONFIG_PMIC_INTEL_OPREGION, or move the TPS68470 driver in and change the Kconfig+Makefile to have the common code compiled if at least one of the drivers is enabled. -- Regards, Sakari Ailus