diff options
| author | Torsten Duwe <[email protected]> | 2026-06-01 12:39:34 +0200 |
|---|---|---|
| committer | Peter Robinson <[email protected]> | 2026-06-04 10:50:04 +0100 |
| commit | df883ec51b5b602b68a517bc513eaba3b115d890 (patch) | |
| tree | 9f6da7a2095d7bb437f4d5af85e8876cc6589058 | |
| parent | b6f853f1cc5ce3f7bc2da2a6df421c300858ea8a (diff) | |
pci: brcmstb: Fix iBAR size calculation
Fix inbound window size calculation, like Linux commit 25a98c7270156.
Signed-off-by: Torsten Duwe <[email protected]>
Tested-by: Pedro Falcato <[email protected]>
Reviewed-by: Neil Armstrong <[email protected]>
| -rw-r--r-- | drivers/pci/pcie_brcmstb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/pcie_brcmstb.c b/drivers/pci/pcie_brcmstb.c index 012b501078a..164d8e2b7fe 100644 --- a/drivers/pci/pcie_brcmstb.c +++ b/drivers/pci/pcie_brcmstb.c @@ -101,8 +101,8 @@ static int brcm_pcie_encode_ibar_size(u64 size) if (log2_in >= 12 && log2_in <= 15) /* Covers 4KB to 32KB (inclusive) */ return (log2_in - 12) + 0x1c; - else if (log2_in >= 16 && log2_in <= 37) - /* Covers 64KB to 32GB, (inclusive) */ + else if (log2_in >= 16 && log2_in <= 36) + /* Covers 64KB to 64GB, (inclusive) */ return log2_in - 15; /* Something is awry so disable */ |
