OSDN Git Service

cxl: Replace HDM decoder granularity magic numbers
authorAdam Manzanares <a.manzanares@samsung.com>
Mon, 29 Aug 2022 22:03:14 +0000 (22:03 +0000)
committerDan Williams <dan.j.williams@intel.com>
Mon, 14 Nov 2022 20:11:27 +0000 (12:11 -0800)
commit3b39fd6cf12ceda2a2582dcb9b9ee9f4d197b857
treefc834ede9ddc5f526e44a5c442097909a4c468bd
parentb51d76752120a267397276121619fca80f767e62
cxl: Replace HDM decoder granularity magic numbers

When reviewing the CFMWS parsing code that deals with the HDM decoders,
I noticed a couple of magic numbers. This commit replaces these magic numbers
with constants defined by the CXL 3.0 specification.

v2:
 - Change references to CXL 3.0 specification (David)
 - CXL_DECODER_MAX_GRANULARITY_ORDER -> CXL_DECODER_MAX_ENCODED_IG (Dan)

Signed-off-by: Adam Manzanares <a.manzanares@samsung.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20220829220249.243888-1-a.manzanares@samsung.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/cxl.h