]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/6.7.12/arm64-dts-qcom-sc8280xp-x13s-limit-pcie4-link-speed.patch
Linux 6.7.12
[thirdparty/kernel/stable-queue.git] / releases / 6.7.12 / arm64-dts-qcom-sc8280xp-x13s-limit-pcie4-link-speed.patch
1 From 7a1c6a8bf47b0b290c79b9cc3ba6ee68be5522e8 Mon Sep 17 00:00:00 2001
2 From: Johan Hovold <johan+linaro@kernel.org>
3 Date: Fri, 23 Feb 2024 16:21:19 +0100
4 Subject: arm64: dts: qcom: sc8280xp-x13s: limit pcie4 link speed
5
6 From: Johan Hovold <johan+linaro@kernel.org>
7
8 commit 7a1c6a8bf47b0b290c79b9cc3ba6ee68be5522e8 upstream.
9
10 Limit the WiFi PCIe link speed to Gen2 speed (500 MB/s), which is the
11 speed that the boot firmware has brought up the link at (and that
12 Windows uses).
13
14 This is specifically needed to avoid a large amount of link errors when
15 restarting the link during boot (but which are currently not reported).
16
17 This also appears to fix intermittent failures to download the ath11k
18 firmware during boot which can be seen when there is a longer delay
19 between restarting the link and loading the WiFi driver (e.g. when using
20 full disk encryption).
21
22 Fixes: 123b30a75623 ("arm64: dts: qcom: sc8280xp-x13s: enable WiFi controller")
23 Cc: stable@vger.kernel.org # 6.2
24 Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
25 Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
26 Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
27 Link: https://lore.kernel.org/r/20240223152124.20042-8-johan+linaro@kernel.org
28 Signed-off-by: Bjorn Andersson <andersson@kernel.org>
29 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
30 ---
31 arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 2 ++
32 1 file changed, 2 insertions(+)
33
34 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts
35 +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts
36 @@ -721,6 +721,8 @@
37 };
38
39 &pcie4 {
40 + max-link-speed = <2>;
41 +
42 perst-gpios = <&tlmm 141 GPIO_ACTIVE_LOW>;
43 wake-gpios = <&tlmm 139 GPIO_ACTIVE_LOW>;
44