mbox series

[v5,0/5] cxl: find_cxl_root() related cleanups

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

Message

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

---

Dave Jiang (5):
      cxl: Introduce put_cxl_root() helper
      cxl: Convert find_cxl_root() to return a 'struct cxl_root *'
      cxl: Fix device reference leak 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, 46 insertions(+), 29 deletions(-)

Comments

Ira Weiny Jan. 5, 2024, 7:35 p.m. UTC | #1
Dave Jiang wrote:
> This series provides a number of small cleanups to make fix_cxl_root()
> and related code more readable and safer.

For the series

Reviewed-by: Ira Weiny <ira.weiny@intel.com>