]> git.baikalelectronics.ru Git - kernel.git/commit
cxl/mem: Get rid of @cxlm.base
authorBen Widawsky <ben.widawsky@intel.com>
Thu, 20 May 2021 21:29:53 +0000 (14:29 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 26 May 2021 18:20:18 +0000 (11:20 -0700)
commit84eaa6af5445361429e9a7596f3c08872bffa11b
treecf3a5652ccf2e201dbc0f49194c70111262a4d33
parentb20adc5da8b39461e996316eab18a72df720c37e
cxl/mem: Get rid of @cxlm.base

@cxlm.base only existed to support holding the base found in the
register block mapping code, and pass it along to the register setup
code. Now that the register setup function has all logic around managing
the registers, from DVSEC to iomapping up to populating our CXL specific
information, it is easy to turn the @base values into local variables
and remove them from our device driver state.

Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Ben Widawsky <ben.widawsky@intel.com>
Link: https://lore.kernel.org/r/20210520212953.1181695-1-ben.widawsky@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/mem.h
drivers/cxl/pci.c