Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp420987pxj; Fri, 14 May 2021 06:44:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzAGdmQwgT6Zm0rk95WnOkkuysUErjfKnEhBs3uU4CYjfxYWfVroGkFlXCMLDCDsDJCq01 X-Received: by 2002:a05:6e02:1212:: with SMTP id a18mr41448539ilq.2.1620999861126; Fri, 14 May 2021 06:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620999861; cv=none; d=google.com; s=arc-20160816; b=EXPAQawCzJwYoEcstWJdwn8ji4Bl3OV2qEGQtiyiYL6WQs986IZtXu9Ygh9h24sa3d qifa90pRgYTEMce8Z0CTUXlaOYQJsizMwCwiLzOupyozWRRMv2koOdjDqnWrzTsYI4/V O57ZehKI3YlPdO4aM6EVGRbc1Lf/zYduhvLEen7k7l8wADh2T+gDw2/Pd1CB+ng1QePU X27NUGcYYaI4aqoBlpcqjB/N1f2RKVaWUmXE3QZ+zrPbzUdTeng9uaxrtKdcra2EH/u5 /KHhzTWetTizUX2jPWCeF2fI6p329fg+MjrTkr4Z96rmvWNqrmZIOPp120I1e6/e7Rsm Pzmg== 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 :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:ironport-sdr:ironport-sdr; bh=qQAdKJG6Md1hpYV5mZ1MMJh5MQI+u1rF4oPdGUTU04Y=; b=HM9veq3cV2+6RAbyExcqUQtsbXdDcq4fx/gaDXdYcbnRZjtXW/5wyu+/pmdahSvkzn XD/uCxwMfbT5Lf8xDPylJSExr8EuI/8SFxxubjIvGCeZT5w6t3dMphj2bGc5rcvepNgP UfUBl5dGEIN5KEFxYuQF1xnuaTQAkps4FUsQAldI5S/rA0BXJwoQdxampHaqUrxOWtp4 HDJq/ALfYpUOjq4cVHdPyzBBbM74GYqi1hPH27f4NtmGS3z/LCcYTPns+T64RoIyCuY9 DJiHma8Wd+rDxl9vx389P1g8OcOC8iPcl5uKom2R1eIMHSWWhmBcN+0N4tUD71ySEIZt o6Dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si7073427iln.153.2021.05.14.06.44.07; Fri, 14 May 2021 06:44:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232503AbhENFXO (ORCPT + 99 others); Fri, 14 May 2021 01:23:14 -0400 Received: from mga12.intel.com ([192.55.52.136]:57596 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232456AbhENFXM (ORCPT ); Fri, 14 May 2021 01:23:12 -0400 IronPort-SDR: ZyYTzL/lPL/HyXuU41r5bGW4eXwd2j6R9hHk9N/e1rcOO9qS4qSYwlJt7DqxqaQP4vyR1gV7IF G0/WSciuzhwQ== X-IronPort-AV: E=McAfee;i="6200,9189,9983"; a="179714428" X-IronPort-AV: E=Sophos;i="5.82,299,1613462400"; d="scan'208";a="179714428" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2021 22:22:00 -0700 IronPort-SDR: 00HR/d84dvMU1ghVbyMFtTUAYke3TNwhI5QPbR3ypnKkLdQOSADCcmzh1gAQS9iDYis6EH8UAq g9HPRJUj7qoQ== X-IronPort-AV: E=Sophos;i="5.82,299,1613462400"; d="scan'208";a="542738989" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.25]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2021 22:22:00 -0700 Subject: [PATCH v4 3/8] cxl/core: Rename bus.c to core.c From: Dan Williams To: linux-cxl@vger.kernel.org Cc: Ben Widawsky , Jonathan Cameron , hch@lst.de, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 13 May 2021 22:22:00 -0700 Message-ID: <162096972018.1865304.11079951161445408423.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <162096970332.1865304.10280028741091576940.stgit@dwillia2-desk3.amr.corp.intel.com> References: <162096970332.1865304.10280028741091576940.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.18-3-g996c MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation for more generic shared functionality across endpoint consumers of core cxl resources, and platform-firmware producers of those resources, rename bus.c to core.c. In addition to the central rendezvous for interleave coordination, the core will also define common routines like CXL register block mapping. Acked-by: Ben Widawsky Reviewed-by: Jonathan Cameron Signed-off-by: Dan Williams --- Documentation/driver-api/cxl/memory-devices.rst | 6 ++--- drivers/cxl/Makefile | 4 ++- drivers/cxl/bus.c | 29 ---------------------- drivers/cxl/core.c | 30 +++++++++++++++++++++++ 4 files changed, 35 insertions(+), 34 deletions(-) delete mode 100644 drivers/cxl/bus.c create mode 100644 drivers/cxl/core.c diff --git a/Documentation/driver-api/cxl/memory-devices.rst b/Documentation/driver-api/cxl/memory-devices.rst index 1bad466f9167..71495ed77069 100644 --- a/Documentation/driver-api/cxl/memory-devices.rst +++ b/Documentation/driver-api/cxl/memory-devices.rst @@ -28,10 +28,10 @@ CXL Memory Device .. kernel-doc:: drivers/cxl/mem.c :internal: -CXL Bus +CXL Core ------- -.. kernel-doc:: drivers/cxl/bus.c - :doc: cxl bus +.. kernel-doc:: drivers/cxl/core.c + :doc: cxl core External Interfaces =================== diff --git a/drivers/cxl/Makefile b/drivers/cxl/Makefile index a314a1891f4d..3808e39dd31f 100644 --- a/drivers/cxl/Makefile +++ b/drivers/cxl/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_CXL_BUS) += cxl_bus.o +obj-$(CONFIG_CXL_BUS) += cxl_core.o obj-$(CONFIG_CXL_MEM) += cxl_mem.o ccflags-y += -DDEFAULT_SYMBOL_NAMESPACE=CXL -cxl_bus-y := bus.o +cxl_core-y := core.o cxl_mem-y := mem.o diff --git a/drivers/cxl/bus.c b/drivers/cxl/bus.c deleted file mode 100644 index 58f74796d525..000000000000 --- a/drivers/cxl/bus.c +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/* Copyright(c) 2020 Intel Corporation. All rights reserved. */ -#include -#include - -/** - * DOC: cxl bus - * - * The CXL bus provides namespace for control devices and a rendezvous - * point for cross-device interleave coordination. - */ -struct bus_type cxl_bus_type = { - .name = "cxl", -}; -EXPORT_SYMBOL_GPL(cxl_bus_type); - -static __init int cxl_bus_init(void) -{ - return bus_register(&cxl_bus_type); -} - -static void cxl_bus_exit(void) -{ - bus_unregister(&cxl_bus_type); -} - -module_init(cxl_bus_init); -module_exit(cxl_bus_exit); -MODULE_LICENSE("GPL v2"); diff --git a/drivers/cxl/core.c b/drivers/cxl/core.c new file mode 100644 index 000000000000..7f8d2034038a --- /dev/null +++ b/drivers/cxl/core.c @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* Copyright(c) 2020 Intel Corporation. All rights reserved. */ +#include +#include + +/** + * DOC: cxl core + * + * The CXL core provides a sysfs hierarchy for control devices and a rendezvous + * point for cross-device interleave coordination through cxl ports. + */ + +struct bus_type cxl_bus_type = { + .name = "cxl", +}; +EXPORT_SYMBOL_GPL(cxl_bus_type); + +static __init int cxl_core_init(void) +{ + return bus_register(&cxl_bus_type); +} + +static void cxl_core_exit(void) +{ + bus_unregister(&cxl_bus_type); +} + +module_init(cxl_core_init); +module_exit(cxl_core_exit); +MODULE_LICENSE("GPL v2");