OSDN Git Service

cxl/region: Add a mode attribute for regions
authorDan Williams <dan.j.williams@intel.com>
Fri, 10 Feb 2023 09:05:39 +0000 (01:05 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sat, 11 Feb 2023 01:31:58 +0000 (17:31 -0800)
commit7d505f982f53189da819581ad4cc13c8cef76803
tree57894cabde6c0bb9897c5b3f1cb04841518d713a
parent8752efd2c79c2f0d97011c414f07340b51c99499
cxl/region: Add a mode attribute for regions

In preparation for a new region type, "ram" regions, add a mode
attribute to clarify the mode of the decoders that can be added to a
region. Share the internals of mode_show() (for decoders) with the
region case.

Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Gregory Price <gregory.price@memverge.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Tested-by: Fan Ni <fan.ni@samsung.com>
Link: https://lore.kernel.org/r/167601993930.1924368.4305018565539515665.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Documentation/ABI/testing/sysfs-bus-cxl
drivers/cxl/core/port.c
drivers/cxl/core/region.c
drivers/cxl/cxl.h