mbox series

[v4,0/6] find_cxl_root() related cleanups

Message ID 170441738812.3632067.2103652995360101907.stgit@djiang5-mobl3
Headers show
Series find_cxl_root() related cleanups | expand

Message

Dave Jiang Jan. 5, 2024, 1:17 a.m. UTC
This series provides a number of small cleanups to make fix_cxl_root()
and related code more readable and safer.

---

Dave Jiang (6):
      cxl: Introduce put_cxl_root() helper
      cxl: Convert find_cxl_root() to return a 'struct cxl_root *'
      cxl: Convert qos_class() to use 'struct cxl_root *' directly
      cxl: Fix missing dereference of 'struct device' in cxl_port_perf_data_calculate()
      cxl: Refactor to use __free() for cxl_root allocation in cxl_find_nvdimm_bridge()
      cxl: Refactor to use __free() for cxl_root allocation in cxl_endpoint_port_probe()


 drivers/cxl/acpi.c      |  6 ++----
 drivers/cxl/core/cdat.c | 22 ++++++++++++++--------
 drivers/cxl/core/pmem.c |  8 +++++---
 drivers/cxl/core/port.c | 13 +++++++++++--
 drivers/cxl/cxl.h       | 17 ++++++++++-------
 drivers/cxl/port.c      |  9 +++++----
 6 files changed, 47 insertions(+), 28 deletions(-)

--