Message ID | 20210604190541.175602-4-ben.widawsky@intel.com (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Bjorn Helgaas |
Headers | show |
Series | Add CXL 2.0 DVSEC Decoding | expand |
diff --git a/ls-ecaps.c b/ls-ecaps.c index 83ca93e..2b3f0f9 100644 --- a/ls-ecaps.c +++ b/ls-ecaps.c @@ -701,7 +701,7 @@ cap_dvsec_cxl(struct device *d, int id, int where) if (id != 0) return; - if (!config_fetch(d, where + PCI_CXL_CAP, 12)) + if (!config_fetch(d, where + PCI_CXL_CAP, 0x38 - 0xa)) return; w = get_conf_word(d, where + PCI_CXL_CAP);
Signed-off-by: Ben Widawsky <ben.widawsky@intel.com> --- ls-ecaps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)