Skip to content
Snippets Groups Projects
Commit a0328b39 authored by Foryun Ma's avatar Foryun Ma Committed by Dave Jiang
Browse files

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: default avatarForyun Ma <foryun.ma@jaguarmicro.com>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarAlison Schofield <alison.schofield@intel.com>
Link: https://patch.msgid.link/20240604032151.655-1-foryun.ma@jaguarmicro.com


Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
parent 56478475
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment