]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6180bf00fd324c6d2c614858c0cb748976965517
tree5e0d364224993b586871f2a2fa7e283261b5c9d8
parent1941255d16a3735d3e3eb03699f293ae9d368bc3
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