diff options
author | Dan Williams <dan.j.williams@intel.com> | 2021-04-01 16:33:30 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2021-04-06 20:41:30 +0200 |
commit | 7eda6457a9ca4dc9754e1158c3794e4487ea4392 (patch) | |
tree | f4e350837673499e45356fa5e047cdc83ce6fa15 /drivers/cxl | |
parent | cxl/mem: Do not rely on device_add() side effects for dev_set_name() failures (diff) | |
download | linux-7eda6457a9ca4dc9754e1158c3794e4487ea4392.tar.xz linux-7eda6457a9ca4dc9754e1158c3794e4487ea4392.zip |
cxl/mem: Disable cxl device power management
There is no power management of cxl virtual devices, disable
device-power-management and runtime-power-management to prevent
userspace from growing expectations of those attributes appearing. They
can be added back in the future if needed.
Reviewed-by: Ben Widawsky <ben.widawsky@intel.com>
Link: https://lore.kernel.org/r/161728761025.2474381.808344500111924819.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl')
-rw-r--r-- | drivers/cxl/mem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cxl/mem.c b/drivers/cxl/mem.c index da93b633531f..52f7da49c560 100644 --- a/drivers/cxl/mem.c +++ b/drivers/cxl/mem.c @@ -1203,6 +1203,7 @@ static struct cxl_memdev *cxl_memdev_alloc(struct cxl_mem *cxlm) dev->bus = &cxl_bus_type; dev->devt = MKDEV(cxl_mem_major, cxlmd->id); dev->type = &cxl_memdev_type; + device_set_pm_not_required(dev); cdev = &cxlmd->cdev; cdev_init(cdev, &cxl_memdev_fops); |