cxl/mbox: Remove dependency on cxl_mem_command for a debug msg
authorAlison Schofield <alison.schofield@intel.com>
Thu, 31 Mar 2022 01:27:15 +0000 (18:27 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 12 Apr 2022 23:07:01 +0000 (16:07 -0700)
commit82b8ba29538e5dae0a4e481dbbea4d5015c683af
tree2257abf0ccf7a1af77a0ad210bf79796d6eb24de
parent9ae016aeb722504703c67e6e59c673719868f467
cxl/mbox: Remove dependency on cxl_mem_command for a debug msg

In preparation for removing access to struct cxl_mem_command,
change this debug message to use cxl_mbox_cmd fields instead.
Retrieve the pretty command name from cxl_mbox_cmd using a new
opcode to command name helper.

Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/57265751d336a6e95f5ca31a9c77189408b05742.1648687552.git.alison.schofield@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/mbox.c