Message ID | 1663929905-10492-2-git-send-email-jun.li@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [RESEND,v3,1/3] dt-bindings: clocks: imx8mp: Add ID for usb suspend clock | expand |
Quoting Li Jun (2022-09-23 03:45:04) > 32K usb suspend clock gate is shared with usb_root_clk. > > Fixes: 9c140d9926761 ("clk: imx: Add support for i.MX8MP clock driver") > Cc: stable@vger.kernel.org # v5.19+ Why is stable Cced? The commit text doesn't tell me what sort of regression is being fixed. Please help!
Hi Stephen, > -----Original Message----- > From: Stephen Boyd <sboyd@kernel.org> > Sent: Friday, September 30, 2022 8:54 AM > To: Jun Li <jun.li@nxp.com>; abelvesa@kernel.org > Cc: robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; > shawnguo@kernel.org; s.hauer@pengutronix.de; kernel@pengutronix.de; > festevam@gmail.com; dl-linux-imx <linux-imx@nxp.com>; > mturquette@baylibre.com; l.stach@pengutronix.de; Peng Fan > <peng.fan@nxp.com>; alexander.stein@ew.tq-group.com; > gregkh@linuxfoundation.org; devicetree@vger.kernel.org; > linux-arm-kernel@lists.infradead.org; linux-clk@vger.kernel.org > Subject: Re: [PATCH RESEND v3 2/3] clk: imx: imx8mp: add shared clk gate > for usb suspend clk > > Quoting Li Jun (2022-09-23 03:45:04) > > 32K usb suspend clock gate is shared with usb_root_clk. > > > > Fixes: 9c140d9926761 ("clk: imx: Add support for i.MX8MP clock > > driver") > > Cc: stable@vger.kernel.org # v5.19+ > > Why is stable Cced? The commit text doesn't tell me what sort of regression > is being fixed. Please help! Sorry, I missed this again, Rob commented on this. I will resend with commit text improved to explain this. Thanks Li Jun
diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index e89db568f5a8..5b66514bdd0c 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -17,6 +17,7 @@ static u32 share_count_nand; static u32 share_count_media; +static u32 share_count_usb; static const char * const pll_ref_sels[] = { "osc_24m", "dummy", "dummy", "dummy", }; static const char * const audio_pll1_bypass_sels[] = {"audio_pll1", "audio_pll1_ref_sel", }; @@ -673,7 +674,8 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) hws[IMX8MP_CLK_UART2_ROOT] = imx_clk_hw_gate4("uart2_root_clk", "uart2", ccm_base + 0x44a0, 0); hws[IMX8MP_CLK_UART3_ROOT] = imx_clk_hw_gate4("uart3_root_clk", "uart3", ccm_base + 0x44b0, 0); hws[IMX8MP_CLK_UART4_ROOT] = imx_clk_hw_gate4("uart4_root_clk", "uart4", ccm_base + 0x44c0, 0); - hws[IMX8MP_CLK_USB_ROOT] = imx_clk_hw_gate4("usb_root_clk", "hsio_axi", ccm_base + 0x44d0, 0); + hws[IMX8MP_CLK_USB_ROOT] = imx_clk_hw_gate2_shared2("usb_root_clk", "hsio_axi", ccm_base + 0x44d0, 0, &share_count_usb); + hws[IMX8MP_CLK_USB_SUSP] = imx_clk_hw_gate2_shared2("usb_suspend_clk", "osc_32k", ccm_base + 0x44d0, 0, &share_count_usb); hws[IMX8MP_CLK_USB_PHY_ROOT] = imx_clk_hw_gate4("usb_phy_root_clk", "usb_phy_ref", ccm_base + 0x44f0, 0); hws[IMX8MP_CLK_USDHC1_ROOT] = imx_clk_hw_gate4("usdhc1_root_clk", "usdhc1", ccm_base + 0x4510, 0); hws[IMX8MP_CLK_USDHC2_ROOT] = imx_clk_hw_gate4("usdhc2_root_clk", "usdhc2", ccm_base + 0x4520, 0);