fortify-headers: fix build error when _REDIR_TIME64 is not defined
[openwrt/openwrt.git] / target / linux / ipq806x / patches-5.15 / 104-v6.0-06-ARM-dts-qcom-ipq8064-reduce-pci-IO-size-to-64K.patch
1 From 8fafb7e5c041814876266259e5e439f93571dcef Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Thu, 7 Jul 2022 03:09:40 +0200
4 Subject: [PATCH 6/8] ARM: dts: qcom: ipq8064: reduce pci IO size to 64K
5
6 The current value for pci IO is problematic for ath10k wifi card
7 commonly connected to ipq8064 SoC.
8 The current value is probably a typo and is actually uncommon to find
9 1MB IO space even on a x86 arch. Also with recent changes to the pci
10 driver, pci1 and pci2 now fails to function as any connected device
11 fails any reg read/write. Reduce this to 64K as it should be more than
12 enough and 3 * 64K of total IO space doesn't exceed the IO_SPACE_LIMIT
13 hardcoded for the ARM arch.
14
15 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
16 Tested-by: Jonathan McDowell <noodles@earth.li>
17 Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
18 Link: https://lore.kernel.org/r/20220707010943.20857-7-ansuelsmth@gmail.com
19 ---
20 arch/arm/boot/dts/qcom-ipq8064.dtsi | 6 +++---
21 1 file changed, 3 insertions(+), 3 deletions(-)
22
23 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
24 +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
25 @@ -885,7 +885,7 @@
26 #address-cells = <3>;
27 #size-cells = <2>;
28
29 - ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00100000 /* downstream I/O */
30 + ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00010000 /* downstream I/O */
31 0x82000000 0 0x08000000 0x08000000 0 0x07e00000>; /* non-prefetchable memory */
32
33 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
34 @@ -936,7 +936,7 @@
35 #address-cells = <3>;
36 #size-cells = <2>;
37
38 - ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00100000 /* downstream I/O */
39 + ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00010000 /* downstream I/O */
40 0x82000000 0 0x2e000000 0x2e000000 0 0x03e00000>; /* non-prefetchable memory */
41
42 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
43 @@ -987,7 +987,7 @@
44 #address-cells = <3>;
45 #size-cells = <2>;
46
47 - ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00100000 /* downstream I/O */
48 + ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00010000 /* downstream I/O */
49 0x82000000 0 0x32000000 0x32000000 0 0x03e00000>; /* non-prefetchable memory */
50
51 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;