cxl/pci: Use CXL_MBOX_SUCCESS to check against mbox_cmd return code
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 4 Apr 2022 02:12:14 +0000 (19:12 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 12 Apr 2022 23:07:01 +0000 (16:07 -0700)
commitcbe83a2052682c6f57d45f76fe7fea4bf254acd9
tree5e0d364224993b586871f2a2fa7e283261b5c9d8
parentee92c7e261fd4b58ed5991a776ae9b25e9a5e030
cxl/pci: Use CXL_MBOX_SUCCESS to check against mbox_cmd return code

Also mention the need for the caller to check against any
errors from the hardware in return_code.

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