]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
starfive: fix 6.12 kernel patch conflict 19039/head
authorShiji Yang <yangshiji66@outlook.com>
Thu, 5 Jun 2025 22:36:16 +0000 (06:36 +0800)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Fri, 6 Jun 2025 05:42:35 +0000 (07:42 +0200)
The recently committed starfive 6.12 kernel support patchset[1] has
conflict with the 6.12.32 kernel update[2]. Remove upstreamed patch
to fix the issue:

  0031-phy-starfive-jh7110-usb-Fix-usb-2.0-host-detection-f.patch [3]

[1] https://github.com/openwrt/openwrt/pull/18997
[2] https://github.com/openwrt/openwrt/pull/19027
[3] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.32&id=2c09a5cbc0100e88b8872b11f4da01a656c97fbc

Fixes: ebfd69a3e373 ("kernel: bump 6.12 to 6.12.32")
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19039
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/starfive/patches-6.12/0031-phy-starfive-jh7110-usb-Fix-usb-2.0-host-detection-f.patch [deleted file]

diff --git a/target/linux/starfive/patches-6.12/0031-phy-starfive-jh7110-usb-Fix-usb-2.0-host-detection-f.patch b/target/linux/starfive/patches-6.12/0031-phy-starfive-jh7110-usb-Fix-usb-2.0-host-detection-f.patch
deleted file mode 100644 (file)
index 69f54c9..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-From 8dcadeca27be8d6891ed344dd981f055ca27d2fc Mon Sep 17 00:00:00 2001
-From: Hal Feng <hal.feng@starfivetech.com>
-Date: Wed, 16 Apr 2025 13:25:38 +0800
-Subject: [PATCH 31/55] phy: starfive: jh7110-usb: Fix usb 2.0 host detection
- failure
-
-Set Rx clock gating control signal to normal power consumption mode,
-for fixing usb 2.0 host detection failure.
-
-Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
----
- drivers/phy/starfive/phy-jh7110-usb.c | 7 +++++++
- 1 file changed, 7 insertions(+)
-
---- a/drivers/phy/starfive/phy-jh7110-usb.c
-+++ b/drivers/phy/starfive/phy-jh7110-usb.c
-@@ -18,6 +18,8 @@
- #include <linux/usb/of.h>
- #define USB_125M_CLK_RATE             125000000
-+#define USB_CLK_MODE_OFF              0x0
-+#define USB_CLK_MODE_RX_NORMAL_PWR    BIT(1)
- #define USB_LS_KEEPALIVE_OFF          0x4
- #define USB_LS_KEEPALIVE_ENABLE               BIT(4)
-@@ -78,6 +80,7 @@ static int jh7110_usb2_phy_init(struct p
- {
-       struct jh7110_usb2_phy *phy = phy_get_drvdata(_phy);
-       int ret;
-+      unsigned int val;
-       ret = clk_set_rate(phy->usb_125m_clk, USB_125M_CLK_RATE);
-       if (ret)
-@@ -87,6 +90,10 @@ static int jh7110_usb2_phy_init(struct p
-       if (ret)
-               return ret;
-+      val = readl(phy->regs + USB_CLK_MODE_OFF);
-+      val |= USB_CLK_MODE_RX_NORMAL_PWR;
-+      writel(val, phy->regs + USB_CLK_MODE_OFF);
-+
-       return 0;
- }