summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/patches
diff options
context:
space:
mode:
authorHolger Assmann <h.assmann@pengutronix.de>2020-08-10 17:27:30 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2020-08-10 17:30:45 +0200
commit0e0438844aac066d5393a552e2cb5f5b430f0f87 (patch)
tree4faf9bfa5a6fda87aefffc669bce61d1876c2e26 /configs/platform-v7a/patches
parent5f532a52cf55c225814c8a6fb736352f0ad5a55d (diff)
downloadDistroKit-0e0438844aac066d5393a552e2cb5f5b430f0f87.tar.gz
DistroKit-0e0438844aac066d5393a552e2cb5f5b430f0f87.tar.xz
platform-v7a: kernel patch to fix PHY warnings
With the recent move to Linux v5.8, we get a new kernel warning because it skew timings are now specified twice; once from use of "rgmii-id" and one from the [rt]xc-skew-ps in the device tree. This patch removes those timings since the board works fine with the new default settings. Patch has also been sent[1] to the respective mailing lists for upstream inclusion. [1]: https://lore.kernel.org/linux-arm-kernel/20200807150355.6116-1-h.assmann@pengutronix.de/ Signed-off-by: Holger Assmann <h.assmann@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/patches')
-rw-r--r--configs/platform-v7a/patches/linux-5.8/0001-ARM-dts-stm32-lxa-mc1-Fix-kernel-warning-about-PHY-d.patch38
-rw-r--r--configs/platform-v7a/patches/linux-5.8/0101-Release-5.8-customers-pengutronix-distrokit-v7a-2020.patch21
-rw-r--r--configs/platform-v7a/patches/linux-5.8/series11
3 files changed, 70 insertions, 0 deletions
diff --git a/configs/platform-v7a/patches/linux-5.8/0001-ARM-dts-stm32-lxa-mc1-Fix-kernel-warning-about-PHY-d.patch b/configs/platform-v7a/patches/linux-5.8/0001-ARM-dts-stm32-lxa-mc1-Fix-kernel-warning-about-PHY-d.patch
new file mode 100644
index 0000000..7cd4ed5
--- /dev/null
+++ b/configs/platform-v7a/patches/linux-5.8/0001-ARM-dts-stm32-lxa-mc1-Fix-kernel-warning-about-PHY-d.patch
@@ -0,0 +1,38 @@
+From: Holger Assmann <h.assmann@pengutronix.de>
+Date: Fri, 7 Aug 2020 16:13:47 +0200
+Subject: [PATCH] ARM: dts: stm32: lxa-mc1: Fix kernel warning about PHY delays
+
+The KSZ9031 PHY skew timings for rxc/txc, originally set to achieve
+the desired phase shift between clock- and data-signal, now trigger a
+kernel warning when used in rgmii-id mode:
+
+ *-skew-ps values should be used only with phy-mode = "rgmii"
+
+This is because commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode
+support for the KSZ9031 PHY") now configures own timings when
+phy-mode = "rgmii-id". Device trees wanting to set their own delays
+should use phy-mode "rgmii" instead as the warning prescribes.
+
+The "standard" timings now used with "rgmii-id" work fine on this
+board, so drop the explicit timings in the device tree and thereby
+silence the warning.
+
+Fixes: 666b5ca85cd3 ("ARM: dts: stm32: add STM32MP1-based Linux Automation MC-1 board")
+Signed-off-by: Holger Assmann <h.assmann@pengutronix.de>
+---
+ arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts b/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts
+index 5700e6b700d3..b85025d00943 100644
+--- a/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts
++++ b/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts
+@@ -121,8 +121,6 @@
+ reset-gpios = <&gpiog 0 GPIO_ACTIVE_LOW>; /* ETH_RST# */
+ interrupt-parent = <&gpioa>;
+ interrupts = <6 IRQ_TYPE_EDGE_FALLING>; /* ETH_MDINT# */
+- rxc-skew-ps = <1860>;
+- txc-skew-ps = <1860>;
+ reset-assert-us = <10000>;
+ reset-deassert-us = <300>;
+ micrel,force-master;
diff --git a/configs/platform-v7a/patches/linux-5.8/0101-Release-5.8-customers-pengutronix-distrokit-v7a-2020.patch b/configs/platform-v7a/patches/linux-5.8/0101-Release-5.8-customers-pengutronix-distrokit-v7a-2020.patch
new file mode 100644
index 0000000..daf1a5c
--- /dev/null
+++ b/configs/platform-v7a/patches/linux-5.8/0101-Release-5.8-customers-pengutronix-distrokit-v7a-2020.patch
@@ -0,0 +1,21 @@
+From: Holger Assmann <h.assmann@pengutronix.de>
+Date: Mon, 10 Aug 2020 11:49:47 +0200
+Subject: [PATCH] Release 5.8/customers/pengutronix/distrokit-v7a/20200810-1
+
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 24a4c1b97bb0..a818f6ab7d0e 100644
+--- a/Makefile
++++ b/Makefile
+@@ -2,7 +2,7 @@
+ VERSION = 5
+ PATCHLEVEL = 8
+ SUBLEVEL = 0
+-EXTRAVERSION =
++EXTRAVERSION =-20200810-1
+ NAME = Kleptomaniac Octopus
+
+ # *DOCUMENTATION*
diff --git a/configs/platform-v7a/patches/linux-5.8/series b/configs/platform-v7a/patches/linux-5.8/series
new file mode 100644
index 0000000..2b84aa8
--- /dev/null
+++ b/configs/platform-v7a/patches/linux-5.8/series
@@ -0,0 +1,11 @@
+# umpf-base: v5.8
+# umpf-name: 5.8/customers/pengutronix/distrokit-v7a
+# umpf-version: 5.8/customers/pengutronix/distrokit-v7a/20200810-1
+# umpf-topic: v5.8/topic/lxa-mc1
+# umpf-hashinfo: ad23fe24adf0adf9b835e62be2867583793b0f7f
+# umpf-topic-range: bcf876870b95592b52519ed4aafcf9d95999bc9c..38b726a88e33a215f3d486b01fd02750458343ad
+0001-ARM-dts-stm32-lxa-mc1-Fix-kernel-warning-about-PHY-d.patch
+# umpf-release: 5.8/customers/pengutronix/distrokit-v7a/20200810-1
+# umpf-topic-range: 38b726a88e33a215f3d486b01fd02750458343ad..2b6a337cbda196361cb8d98f82c3976a956889a1
+0101-Release-5.8-customers-pengutronix-distrokit-v7a-2020.patch
+# umpf-end