diff options
author | Niklas Cassel <[email protected]> | 2024-11-16 01:59:51 +0100 |
---|---|---|
committer | Krzysztof Wilczyński <[email protected]> | 2024-11-16 18:21:28 +0000 |
commit | 118397c9baaac0b7ec81896f8d755d09aa82c485 (patch) | |
tree | 70a6bd76914c9cfa09037b4d63ca4487b9af0d87 /lib/crypto/mpi/mpiutil.c | |
parent | 154fc1f6420840e8aa65e5b43a456ae8f34816dd (diff) |
PCI: dwc: ep: Fix advertised resizable BAR size regression
The advertised resizable BAR size was fixed in commit 72e34b8593e0 ("PCI:
dwc: endpoint: Fix advertised resizable BAR size").
Commit 867ab111b242 ("PCI: dwc: ep: Add a generic dw_pcie_ep_linkdown()
API to handle Link Down event") was included shortly after this, and
moved the code to another function. When the code was moved, this fix
was mistakenly lost.
According to the spec, it is illegal to not have a bit set in
PCI_REBAR_CAP, and 1 MB is the smallest size allowed.
So, set bit 4 in PCI_REBAR_CAP, so that we actually advertise support
for a 1 MB BAR size.
Fixes: 867ab111b242 ("PCI: dwc: ep: Add a generic dw_pcie_ep_linkdown() API to handle Link Down event")
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Niklas Cassel <[email protected]>
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Cc: [email protected]
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions