Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3247329imw; Mon, 18 Jul 2022 04:57:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tuUQUTlVsozfzCrv+8rzqSBfWXVI1DCkMzRbhl+BdHWPp6JlmUQ9/x/wulK+fJ2q+bhVHw X-Received: by 2002:a17:907:3f04:b0:72f:227e:11ed with SMTP id hq4-20020a1709073f0400b0072f227e11edmr6688979ejc.40.1658145448426; Mon, 18 Jul 2022 04:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658145448; cv=none; d=google.com; s=arc-20160816; b=UuYO5vP6VJiMpv8N52aCu+tTczfnU7dWqJ2gOy/m4kTLm+EBDY0boDUk7uAuGIpXRU lVggSK+mXMlxrvw7nRCZ3KIconlxBt9UazCKzRmrXgTGw5pZlcfttyvxONXHDm9ftTcg PxbMAMl8w/X0sNdjx/yNR/gN/bpikzdA4c00OQyEBRv9DEcUcUUQ3sC9WgZ4jNU+oBIo GWT5RYfdZWYHIBM9PeQyG9B9EEWpu2EZDwca9VQXj1VIf4etHQbRB694TfI9gjY2RW1v yhH8SiClhm2zu/3Zoc7qJWGemDgVqmUw0TnkAPSu2gKqMLMJJGIqz+ByLbR7lhWuNv79 jsqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=mYLTVQzIXoWlc7D3mo9UJ5sdt3pI1CPZaZdEfYiHAOA=; b=bUkm32US7RcW0LIMdHHC1H37u0UMCX/LcUYqXAOKS9B0v7OhtQ8vwhP4Te0uvx4xQ0 F7MvMAXYSnIUE3LzCilxZ1LYAHq21S1Ool4PlaqIzuCfk1IUUoeVSHXx8UBNykvSp05q IO9CzuWMsokkuOKH89vad7qa8xGYz4w6kvU/5fw66DJn2K5k/cYkzPvJ59eJfINCO0xG axjaRC+oeAz8OQWuGnjXpBMMKw+Duyr9noeKh6ManSAmKI0Tjn6li9Ibqloa5BZN30gK 9IztH5RgNf2HrptaQpjKF7YdhQ6gVZ3qMKSlnv/+qbvJs1iJ7WfDMoWXVO+9mVDDNpwj 2CQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iEbLIeA+; 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 ji9-20020a170907980900b0072b0f4f4b36si20174017ejc.611.2022.07.18.04.57.00; Mon, 18 Jul 2022 04:57:28 -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=iEbLIeA+; 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 S234528AbiGRLrt (ORCPT + 99 others); Mon, 18 Jul 2022 07:47:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234513AbiGRLrr (ORCPT ); Mon, 18 Jul 2022 07:47:47 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EA3A2126D; Mon, 18 Jul 2022 04:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658144865; x=1689680865; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=k95d+pG1IVPgq98QC9nwO2SCOSkBsTf8lK1Vpw4nOGQ=; b=iEbLIeA+FS6vaiBZkW57vHtdagdclumdYegK6ed8qZJVPO0Vi4w04yAs eq5VF7L0+KJXyX0jXE5DzhpOBRUbx98v5e6zoL9/cil1HmWujL3RsCmw7 ma42manXf6DvyLrHeH2WGqSnUXkmimWC1tREJN4jgpOh3pHrOIFH2TTAZ qKF4pSO+Y6aV5ejF779nvHiINl/oNE6fWYsIzpXwPgq11TXV8BRbXff7A 4RmQtaqthnLJfh/ad5nQisjCr3lDLzn3hgl2nBfSCeXmAh+thZK1KgBn4 OyZ+Jk2iJxPSza7t6tU84mPi6knlmQJ03SU1OWZcyVz5x8d/3NqVn1jze w==; X-IronPort-AV: E=McAfee;i="6400,9594,10411"; a="265982491" X-IronPort-AV: E=Sophos;i="5.92,281,1650956400"; d="scan'208";a="265982491" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 04:47:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,281,1650956400"; d="scan'208";a="629890758" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga001.jf.intel.com with ESMTP; 18 Jul 2022 04:47:42 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 5DEB813E2; Mon, 18 Jul 2022 14:47:51 +0300 (EEST) From: Andy Shevchenko To: Hans de Goede , Kate Hsuan , Andy Shevchenko , Jonathan Yong , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mark Gross , Lee Jones , kernel test robot Subject: [PATCH v1 1/1] platform/x86: p2sb: Move out of X86_PLATFORM_DEVICES dependency Date: Mon, 18 Jul 2022 14:47:48 +0300 Message-Id: <20220718114748.6365-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, 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 The P2SB library is used for various drivers, including server platforms. That's why the dependency on X86_PLATFORM_DEVICES seems superfluous. Reported-by: kernel test robot Signed-off-by: Andy Shevchenko --- drivers/platform/x86/Kconfig | 12 ++++++++++++ drivers/platform/x86/Makefile | 4 ++++ drivers/platform/x86/intel/Kconfig | 12 ------------ drivers/platform/x86/intel/Makefile | 2 -- drivers/platform/x86/{intel => }/p2sb.c | 0 5 files changed, 16 insertions(+), 14 deletions(-) rename drivers/platform/x86/{intel => }/p2sb.c (100%) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index bc4013e950ed..cab9ceb85436 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -1164,6 +1164,18 @@ config WINMATE_FM07_KEYS endif # X86_PLATFORM_DEVICES +config P2SB + bool "Primary to Sideband (P2SB) bridge access support" + depends on PCI + help + The Primary to Sideband (P2SB) bridge is an interface to some + PCI devices connected through it. In particular, SPI NOR controller + in Intel Apollo Lake SoC is one of such devices. + + The main purpose of this library is to unhide P2SB device in case + firmware kept it hidden on some platforms in order to access devices + behind it. + config PMC_ATOM def_bool y depends on PCI diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile index 4a59f47a46e2..f04001431c91 100644 --- a/drivers/platform/x86/Makefile +++ b/drivers/platform/x86/Makefile @@ -120,6 +120,10 @@ obj-$(CONFIG_X86_ANDROID_TABLETS) += x86-android-tablets.o # Intel uncore drivers obj-$(CONFIG_INTEL_IPS) += intel_ips.o +# Intel miscellaneous drivers +intel_p2sb-y := p2sb.o +obj-$(CONFIG_P2SB) += intel_p2sb.o + # Intel PMIC / PMC / P-Unit devices obj-$(CONFIG_INTEL_SCU_IPC) += intel_scu_ipc.o obj-$(CONFIG_INTEL_SCU_PCI) += intel_scu_pcidrv.o diff --git a/drivers/platform/x86/intel/Kconfig b/drivers/platform/x86/intel/Kconfig index c9cfbaae436b..794968bda115 100644 --- a/drivers/platform/x86/intel/Kconfig +++ b/drivers/platform/x86/intel/Kconfig @@ -70,18 +70,6 @@ config INTEL_OAKTRAIL enable/disable the Camera, WiFi, BT etc. devices. If in doubt, say Y here; it will only load on supported platforms. -config P2SB - bool "Primary to Sideband (P2SB) bridge access support" - depends on PCI - help - The Primary to Sideband (P2SB) bridge is an interface to some - PCI devices connected through it. In particular, SPI NOR controller - in Intel Apollo Lake SoC is one of such devices. - - The main purpose of this library is to unhide P2SB device in case - firmware kept it hidden on some platforms in order to access devices - behind it. - config INTEL_BXTWC_PMIC_TMU tristate "Intel Broxton Whiskey Cove TMU Driver" depends on INTEL_SOC_PMIC_BXTWC diff --git a/drivers/platform/x86/intel/Makefile b/drivers/platform/x86/intel/Makefile index 741a9404db98..717933dd0cfd 100644 --- a/drivers/platform/x86/intel/Makefile +++ b/drivers/platform/x86/intel/Makefile @@ -28,8 +28,6 @@ intel_int0002_vgpio-y := int0002_vgpio.o obj-$(CONFIG_INTEL_INT0002_VGPIO) += intel_int0002_vgpio.o intel_oaktrail-y := oaktrail.o obj-$(CONFIG_INTEL_OAKTRAIL) += intel_oaktrail.o -intel_p2sb-y := p2sb.o -obj-$(CONFIG_P2SB) += intel_p2sb.o intel_sdsi-y := sdsi.o obj-$(CONFIG_INTEL_SDSI) += intel_sdsi.o intel_vsec-y := vsec.o diff --git a/drivers/platform/x86/intel/p2sb.c b/drivers/platform/x86/p2sb.c similarity index 100% rename from drivers/platform/x86/intel/p2sb.c rename to drivers/platform/x86/p2sb.c -- 2.35.1