cxl/mbox: Use new return_code handling
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 4 Apr 2022 02:12:16 +0000 (19:12 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 12 Apr 2022 23:07:02 +0000 (16:07 -0700)
commitc43e036d6f861f4c68b50eea49ab55b539eaab02
treecf4bf5fb102a9302530a86938c21f30247445c40
parent92fcc1abab095dceb2337444f79875c8a85063df
cxl/mbox: Use new return_code handling

Use the global cxl_mbox_cmd_rc table to improve debug messaging
in __cxl_pci_mbox_send_cmd() and allow cxl_mbox_send_cmd()
to map to proper kernel style errno codes - this patch
continues to use -ENXIO only so no change in semantics.

Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Reviewed by: Adam Manzanares <a.manzanares@samsung.com>
Link: https://lore.kernel.org/r/20220404021216.66841-5-dave@stgolabs.net
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/mbox.c
drivers/cxl/pci.c