]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cxl/hdm: Use guard() in cxl_dpa_set_mode()
authorIra Weiny <ira.weiny@intel.com>
Thu, 7 Nov 2024 20:58:23 +0000 (14:58 -0600)
committerDave Jiang <dave.jiang@intel.com>
Fri, 8 Nov 2024 16:39:31 +0000 (09:39 -0700)
commit27fcfb416827b9e549d821317a9bd21d1abe6821
tree0b275fbb24791a9015431b8ac3d104c92937dd77
parent0f6f0d687adcb4747e71f2a797acc9a739d71778
cxl/hdm: Use guard() in cxl_dpa_set_mode()

Additional DCD functionality is being added to this call which will be
simplified by the use of guard() with the cxl_dpa_rwsem.

Convert the function to use guard() prior to adding DCD functionality.

Suggested-by: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link: https://patch.msgid.link/20241107-dcd-type2-upstream-v7-5-56a84e66bc36@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/hdm.c