From 12047c34237be89c85a0e144c6c99281656a1153 Mon Sep 17 00:00:00 2001
From: Christian Marangi <ansuelsmth@gmail.com>
Date: Thu, 4 Jun 2026 14:26:20 +0200
Subject: [PATCH] clk: en7523: reset PCIE HB on init

Reset PCIE on clk HW init to handle warm boot problem with PCIe.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
 drivers/clk/clk-en7523.c | 7 +++++++
 1 file changed, 7 insertions(+)

--- a/drivers/clk/clk-en7523.c
+++ b/drivers/clk/clk-en7523.c
@@ -1147,6 +1147,10 @@ static int en7581_clk_hw_init(struct pla
 	regmap_update_bits(clk_map, REG_NP_SCU_PCIC, REG_PCIE_CTRL,
 			   FIELD_PREP(REG_PCIE_CTRL, 3));
 
+	/* Reset PCIE_HB */
+	regmap_set_bits(clk_map, REG_RST_CTRL1, BIT(29));
+	regmap_clear_bits(clk_map, REG_RST_CTRL1, BIT(29));
+
 	return en7581_reset_register(&pdev->dev, clk_map, en7581_rst_map,
 				     ARRAY_SIZE(en7581_rst_map));
 }
