PCI: brcmstb: Change RCB_{MPS,64B}_MODE bits
authorPhil Elwell <phil@raspberrypi.com>
Wed, 1 Nov 2023 10:13:29 +0000 (10:13 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:09 +0000 (11:35 +0000)
commit0f22edd351319b142491c3bbde0be993fb252b30
treea95547e7a77be934b072d8030a9aab868e2d5038
parent9be750d25871df2584780e1378fe3cad9692bdf8
PCI: brcmstb: Change RCB_{MPS,64B}_MODE bits

Upstream commit [1] unconditionally sets the RCB_MPS and RCB_64B bits
that govern where packets are split. We think this is potentially
harmful, particularly on CM4 and Pi 5 where potentially any PCIe devices
could be attached.

Make RCB_MPS conditional on a DT property and never set RCB_64B.

[1] commit 602fb860945f ("PCI: brcmstb: Set RCB_{MPS,64B}_MODE bits")

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/pci/controller/pcie-brcmstb.c