mediatek: fix broken PCIe caused by update to 5.15.158
authorRany Hany <rany_hany@riseup.net>
Sun, 5 May 2024 22:39:58 +0000 (01:39 +0300)
committerRany Hany <rany_hany@riseup.net>
Thu, 23 May 2024 16:37:56 +0000 (19:37 +0300)
commit0f1b249eac45506e1b1a090d3286d5cf01563fcc
treef1b5dbeba4c861bd8b7c643bdab679f9898db38e
parent28bf0137b4d6f73bb2ad94e286f3ac2a5d6388c6
mediatek: fix broken PCIe caused by update to 5.15.158

The patch "710-pci-pcie-mediatek-add-support-for-coherent-DMA.patch"
makes use of "syscon_regmap_lookup_by_phandle" which requires that
"syscon" be in the compatible list.

Without this patch, PCIe probe will fail with the following error:

[    1.287467] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    1.294019] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    1.299901] mtk-pcie 1a143000.pcie:      MEM 0x0020000000..0x0027ffffff -> 0x0020000000
[    1.307954] mtk-pcie 1a143000.pcie: missing hifsys node
[    1.313185] mtk-pcie: probe of 1a143000.pcie failed with error -22

Fixes: 01c58a0d2a ("kernel: bump 5.15 to 5.15.158")
Signed-off-by: Rany Hany <rany_hany@riseup.net>
(cherry picked from commit 8607372b410fbb24b08de97ff5941341d0870d6f)
target/linux/mediatek/patches-5.15/710-pci-pcie-mediatek-add-support-for-coherent-DMA.patch