diff mbox series

[WORKAROUND] clk: rk3399: do not disable the USB2PHY clk

Message ID 20210903152439.5778-2-vincent.stehle@arm.com
State New
Headers show
Series [WORKAROUND] clk: rk3399: do not disable the USB2PHY clk | expand

Commit Message

Vincent Stehlé Sept. 3, 2021, 3:24 p.m. UTC
When booting from USB with UEFI on the ROCKPro64, the Linux kernel EFI stub
will hang in efi_exit_boot_services due to OHCI hc_reset accessing the
hardware registers after the USB2PHY clocks have been disabled.

As a workaround, prevent the USB2PHY clocks from being disabled to repair
the boot.

Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>

---

                    THIS IS A WORKAROUND
                    PLEASE DO NOT APPLY!

 drivers/clk/rockchip/clk_rk3399.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.30.2
diff mbox series

Patch

diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c
index f8cbda44551..9cf7d26a026 100644
--- a/drivers/clk/rockchip/clk_rk3399.c
+++ b/drivers/clk/rockchip/clk_rk3399.c
@@ -1213,10 +1213,10 @@  static int rk3399_clk_disable(struct clk *clk)
 		rk_setreg(&priv->cru->clkgate_con[5], BIT(6));
 		break;
 	case SCLK_USB2PHY0_REF:
-		rk_setreg(&priv->cru->clkgate_con[6], BIT(5));
+		/* WORKAROUND: leave enabled */
 		break;
 	case SCLK_USB2PHY1_REF:
-		rk_setreg(&priv->cru->clkgate_con[6], BIT(6));
+		/* WORKAROUND: leave enabled */
 		break;
 	case ACLK_GMAC:
 		rk_setreg(&priv->cru->clkgate_con[32], BIT(0));