cxl/region: Clarify when a cxld->commit() callback is mandatory
authorDan Williams <dan.j.williams@intel.com>
Sat, 17 Dec 2022 01:33:38 +0000 (17:33 -0800)
committerDan Williams <dan.j.williams@intel.com>
Wed, 25 Jan 2023 23:29:17 +0000 (15:29 -0800)
commitaf3ea9ab61d728d5a8be01bbec6d5cf7551b9600
tree2f418402d55a95427e0ef0e584351523e87fc0ef
parentf45d63c1218636f77b9c3c53318c56ecd27dc8ec
cxl/region: Clarify when a cxld->commit() callback is mandatory

Both cxl_switch_decoders() and cxl_endpoint_decoders() are considered by
cxl_region_decode_commit(). Flag cases where cxl_switch_decoders with
multiple targets, or cxl_endpoint_decoders do not have a commit callback
set. The switch case is unlikely to happen since switches are only
enumerated by the CXL core, but the endpoint case may support decoders
defined by drivers outside of drivers/cxl, like accerator drivers.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/167124081824.1626103.1555704405392757219.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/region.c