summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2016-10-06 13:36:07 -0500
committerBjorn Helgaas <bhelgaas@google.com>2016-10-11 22:44:22 -0500
commite3a1698b1e7776fbb3304dfd68db1d1ac18f85c0 (patch)
tree4491983d75db45409671fc82409466caa30b2a0b /security
parent6d76833c5223348dc8fddaa31584d923cae2a566 (diff)
PCI: iproc: Hard-code PCIe capability offset instead of searching
We know where the PCIe capability lives in the host bridge's config space; in fact, we already hard-coded the offset of the Link Control 2 register. The hard-coded Link Control 2 offset was 0xdc. Link Control 2 is at offset 0x30 into the PCIe capability, so the capability itself must be at 0xdc - 0x30 = 0xac. Hard-code the PCIe capability offset, which means we don't have to search for it and we can use the standard definitions for registers within the capability. No functional change intended. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions