Skip to content

Commit 5ae95ae

Browse files
shawnguo2olofj
authored andcommitted
ARM: imx6q: fix suspend regression caused by common clk migration
When moving to common clk framework, the imx6q clks rom and mmdc_ch1_axi get different on/off states than old clk driver, which breaks suspend function. There might be a better way to manage these clocks, but let's takes the old clk driver approach to fix the regression first. Signed-off-by: Shawn Guo <[email protected]> Signed-off-by: Olof Johansson <[email protected]>
1 parent e5a5192 commit 5ae95ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

arch/arm/mach-imx/clk-imx6q.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,14 @@ enum mx6q_clks {
152152
ssi2, ssi3, uart_ipg, uart_serial, usboh3, usdhc1, usdhc2, usdhc3,
153153
usdhc4, vdo_axi, vpu_axi, cko1, pll1_sys, pll2_bus, pll3_usb_otg,
154154
pll4_audio, pll5_video, pll6_mlb, pll7_usb_host, pll8_enet, ssi1_ipg,
155-
ssi2_ipg, ssi3_ipg, clk_max
155+
ssi2_ipg, ssi3_ipg, rom,
156+
clk_max
156157
};
157158

158159
static struct clk *clk[clk_max];
159160

160161
static enum mx6q_clks const clks_init_on[] __initconst = {
161-
mmdc_ch0_axi, mmdc_ch1_axi,
162+
mmdc_ch0_axi, rom,
162163
};
163164

164165
int __init mx6q_clocks_init(void)
@@ -364,6 +365,7 @@ int __init mx6q_clocks_init(void)
364365
clk[gpmi_bch] = imx_clk_gate2("gpmi_bch", "usdhc4", base + 0x78, 26);
365366
clk[gpmi_io] = imx_clk_gate2("gpmi_io", "enfc", base + 0x78, 28);
366367
clk[gpmi_apb] = imx_clk_gate2("gpmi_apb", "usdhc3", base + 0x78, 30);
368+
clk[rom] = imx_clk_gate2("rom", "ahb", base + 0x7c, 0);
367369
clk[sata] = imx_clk_gate2("sata", "ipg", base + 0x7c, 4);
368370
clk[sdma] = imx_clk_gate2("sdma", "ahb", base + 0x7c, 6);
369371
clk[spba] = imx_clk_gate2("spba", "ipg", base + 0x7c, 12);

0 commit comments

Comments
 (0)