[openwrt/openwrt] starfive: fix 6.12 kernel patch conflict

LEDE Commits lede-commits at lists.infradead.org
Thu Jun 5 22:43:15 PDT 2025


noltari pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c947e37e614abf2b02fae306ed92a00e3f98903b

commit c947e37e614abf2b02fae306ed92a00e3f98903b
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Fri Jun 6 06:36:16 2025 +0800

    starfive: fix 6.12 kernel patch conflict
    
    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 at outlook.com>
    Link: https://github.com/openwrt/openwrt/pull/19039
    Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
---
 ...e-jh7110-usb-Fix-usb-2.0-host-detection-f.patch | 44 ----------------------
 1 file changed, 44 deletions(-)

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
index 69f54c9dc7..0000000000
--- a/target/linux/starfive/patches-6.12/0031-phy-starfive-jh7110-usb-Fix-usb-2.0-host-detection-f.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From 8dcadeca27be8d6891ed344dd981f055ca27d2fc Mon Sep 17 00:00:00 2001
-From: Hal Feng <hal.feng at 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 at 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;
- }
- 




More information about the lede-commits mailing list