cxl/core: Rename bus.c to core.c
authorDan Williams <dan.j.williams@intel.com>
Fri, 14 May 2021 05:22:00 +0000 (22:22 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 14 May 2021 23:13:19 +0000 (16:13 -0700)
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 <ben.widawsky@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/162096972018.1865304.11079951161445408423.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Documentation/driver-api/cxl/memory-devices.rst
drivers/cxl/Makefile
drivers/cxl/core.c [moved from drivers/cxl/bus.c with 55% similarity]

index 1bad466f916797077a70714e82d80dbffec82891..71495ed770692759b73fb0d026770d7ce9bbb875 100644 (file)
@@ -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
 ===================
index a314a1891f4d37911da3c65b1de936c4978ca6ed..3808e39dd31f408c2baf513529b8690ff233805e 100644 (file)
@@ -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
similarity index 55%
rename from drivers/cxl/bus.c
rename to drivers/cxl/core.c
index 58f74796d525b21050c3f2f56eda8a5410495d17..7f8d2034038a4b62dde68b5c0f4d28bfd1c3fc1b 100644 (file)
@@ -4,26 +4,27 @@
 #include <linux/module.h>
 
 /**
- * DOC: cxl bus
+ * DOC: cxl core
  *
- * The CXL bus provides namespace for control devices and a rendezvous
- * point for cross-device interleave coordination.
+ * 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_bus_init(void)
+static __init int cxl_core_init(void)
 {
        return bus_register(&cxl_bus_type);
 }
 
-static void cxl_bus_exit(void)
+static void cxl_core_exit(void)
 {
        bus_unregister(&cxl_bus_type);
 }
 
-module_init(cxl_bus_init);
-module_exit(cxl_bus_exit);
+module_init(cxl_core_init);
+module_exit(cxl_core_exit);
 MODULE_LICENSE("GPL v2");