Merge branch 'CR_2395_I2C_hal.feng' into 'jh7110-5.15.y-devel'
authorandy.hu <andy.hu@starfivetech.com>
Wed, 2 Nov 2022 09:40:20 +0000 (09:40 +0000)
committerandy.hu <andy.hu@starfivetech.com>
Wed, 2 Nov 2022 09:40:20 +0000 (09:40 +0000)
CR_2395_I2C_hal.feng

See merge request sdk/linux!581

drivers/clk/starfive/clk-starfive-jh7110-sys.c
drivers/i2c/busses/i2c-designware-platdrv.c

index 2b02740..7b52a61 100644 (file)
@@ -50,7 +50,7 @@ static const struct jh7110_clk_data jh7110_clk_sys_data[] __initconst = {
        JH7110_GATE(JH7110_AHB1, "ahb1", CLK_IS_CRITICAL, JH7110_STG_AXIAHB),
        JH7110__DIV(JH7110_APB_BUS_FUNC, "apb_bus_func",
                        8, JH7110_STG_AXIAHB),
-       JH7110_GATE(JH7110_APB0, "apb0", CLK_IGNORE_UNUSED, JH7110_APB_BUS),
+       JH7110_GATE(JH7110_APB0, "apb0", CLK_IS_CRITICAL, JH7110_APB_BUS),
        JH7110__DIV(JH7110_PLL0_DIV2, "pll0_div2", 2, JH7110_PLL0_OUT),
        JH7110__DIV(JH7110_PLL1_DIV2, "pll1_div2", 2, JH7110_PLL1_OUT),
        JH7110__DIV(JH7110_PLL2_DIV2, "pll2_div2", 2, JH7110_PLL2_OUT),
index aa53d32..2111366 100755 (executable)
@@ -424,7 +424,7 @@ static int __init dw_i2c_init_driver(void)
 {
        return platform_driver_register(&dw_i2c_driver);
 }
-device_initcall(dw_i2c_init_driver);
+subsys_initcall(dw_i2c_init_driver);
 
 static void __exit dw_i2c_exit_driver(void)
 {