diff options
author | Foryun Ma <foryun.ma@jaguarmicro.com> | 2024-06-04 06:21:51 +0300 |
---|---|---|
committer | Dave Jiang <dave.jiang@intel.com> | 2024-07-17 20:35:08 +0300 |
commit | a0328b397f3339d8d17a6ec356e94b3c110b010c (patch) | |
tree | 0ae02a46630d221359620c94bacca74fcfb78de3 /tools | |
parent | 56478475560bde71dd3ef944b5013900272db273 (diff) | |
download | linux-a0328b397f3339d8d17a6ec356e94b3c110b010c.tar.xz |
cxl/core/pci: Move reading of control register to immediately before usage
Relocate the reading of the DVSEC control register to immediately
before usage and avoid unnecessary PCI config access from the read
if DVSEC capability check, hdm_count check, or device validity check
results in failure.
Signed-off-by: Foryun Ma <foryun.ma@jaguarmicro.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Link: https://patch.msgid.link/20240604032151.655-1-foryun.ma@jaguarmicro.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions