mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
Merge commit '610a9bdb86734c138a77cd586e8a484840b4354d'
* commit '610a9bdb86734c138a77cd586e8a484840b4354d': (34 commits) ARM: configs: rv1126b-fastboot: Enable CONFIG_INITCALL_ASYNC net: bpfilter: Call bpfilter_sockopt_init() early when CONFIG_INITCALL_ASYNC=y inet_diag: Call inet_diag_init() early when CONFIG_INITCALL_ASYNC=y net: loopback: Call blackhole_netdev_init() early when CONFIG_INITCALL_ASYNC=y ipv6: Call inet6_init() early when CONFIG_INITCALL_ASYNC=y netfilter: nf_conntrack: Call nf_conntrack_standalone_init() early when CONFIG_INITCALL_ASYNC=y netfilter: x_tables: Call xt_init() early when CONFIG_INITCALL_ASYNC=y backlight: pwm_bl: Call pwm_backlight_driver_init() early when CONFIG_INITCALL_ASYNC=y phy/rockchip: inno-dsidphy: Call inno_dsidphy_driver_init() early when CONFIG_INITCALL_ASYNC=y ASoC: rockchip: multicodecs: Call rockchip_multicodecs_driver_init() later when CONFIG_INITCALL_ASYNC=y drm/drv: Call drm_core_init() early when CONFIG_INITCALL_ASYNC=y nvmem: core: Call nvmem_init() early when CONFIG_INITCALL_ASYNC=y phy: rockchip: naneng-combphy: Call rockchip_combphy_driver_init() early when CONFIG_INITCALL_ASYNC=y phy: rockchip: inno-usb2: Call rockchip_usb2phy_driver_init() early when CONFIG_INITCALL_ASYNC=y iommu: Call iommu_subsys_init() early when CONFIG_INITCALL_ASYNC=y serial: 8250: Call serial8250_init() early when CONFIG_INITCALL_ASYNC=y HID: core: Call hid_init() early when CONFIG_INITCALL_ASYNC=y PM / OPP: Call opp_debug_init() later when CONFIG_INITCALL_ASYNC=y regulator: core: Call regulator_init() later when CONFIG_INITCALL_ASYNC=y pinctrl: core: Call pinctrl_init() later when CONFIG_INITCALL_ASYNC=y ... Change-Id: I2a93d5608ffcf8d70ed74b785f4eadcce0c7076a
This commit is contained in:
@@ -241,7 +241,7 @@ CONFIG_FS_MBCACHE=m
|
||||
# CONFIG_GPIO_XRA1403 is not set
|
||||
# CONFIG_HI8435 is not set
|
||||
# CONFIG_IIO_SSP_SENSORHUB is not set
|
||||
# CONFIG_INITCALL_ASYNC is not set
|
||||
CONFIG_INITCALL_ASYNC=y
|
||||
# CONFIG_INITRAMFS_FORCE is not set
|
||||
CONFIG_INITRAMFS_SOURCE=""
|
||||
# CONFIG_INV_ICM42600_SPI is not set
|
||||
|
||||
@@ -1049,4 +1049,8 @@ static int __init alignment_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
fs_initcall_sync(alignment_init);
|
||||
#else
|
||||
fs_initcall(alignment_init);
|
||||
#endif
|
||||
|
||||
@@ -290,4 +290,8 @@ fail_remove:
|
||||
remove_proc_entry("misc", NULL);
|
||||
return err;
|
||||
}
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
arch_initcall_sync(misc_init);
|
||||
#else
|
||||
subsys_initcall(misc_init);
|
||||
#endif
|
||||
|
||||
@@ -1353,7 +1353,21 @@ static struct platform_driver rk_pdma_driver = {
|
||||
.remove = rk_dma_remove,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT
|
||||
static int __init rk_pdma_driver_init(void)
|
||||
{
|
||||
return platform_driver_register(&rk_pdma_driver);
|
||||
}
|
||||
arch_initcall_sync(rk_pdma_driver_init);
|
||||
|
||||
static void __exit rk_pdma_driver_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&rk_pdma_driver);
|
||||
}
|
||||
module_exit(rk_pdma_driver_exit);
|
||||
#else
|
||||
module_platform_driver(rk_pdma_driver);
|
||||
#endif
|
||||
|
||||
MODULE_DESCRIPTION("Rockchip DMA Driver");
|
||||
MODULE_AUTHOR("Sugar.Zhang@rock-chips.com");
|
||||
|
||||
@@ -1079,7 +1079,9 @@ error:
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_VIDEO_REVERSE_IMAGE
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
subsys_initcall(drm_core_init);
|
||||
#elif defined CONFIG_VIDEO_REVERSE_IMAGE
|
||||
fs_initcall(drm_core_init);
|
||||
#else
|
||||
module_init(drm_core_init);
|
||||
|
||||
@@ -5312,7 +5312,11 @@ err_did_platform_register:
|
||||
|
||||
return err;
|
||||
}
|
||||
#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT
|
||||
rootfs_initcall(panel_simple_init);
|
||||
#else
|
||||
module_init(panel_simple_init);
|
||||
#endif
|
||||
|
||||
static void __exit panel_simple_exit(void)
|
||||
{
|
||||
|
||||
@@ -2961,7 +2961,11 @@ static void __exit hid_exit(void)
|
||||
hid_quirks_exit(HID_BUS_ANY);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
rootfs_initcall(hid_init);
|
||||
#else
|
||||
module_init(hid_init);
|
||||
#endif
|
||||
module_exit(hid_exit);
|
||||
|
||||
MODULE_AUTHOR("Andreas Gal");
|
||||
|
||||
@@ -981,7 +981,21 @@ static struct platform_driver rockchip_saradc_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT
|
||||
static int __init rockchip_saradc_driver_init(void)
|
||||
{
|
||||
return platform_driver_register(&rockchip_saradc_driver);
|
||||
}
|
||||
fs_initcall(rockchip_saradc_driver_init);
|
||||
|
||||
static void __exit rockchip_saradc_driver_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&rockchip_saradc_driver);
|
||||
}
|
||||
module_exit(rockchip_saradc_driver_exit);
|
||||
#else
|
||||
module_platform_driver(rockchip_saradc_driver);
|
||||
#endif
|
||||
|
||||
MODULE_AUTHOR("Heiko Stuebner <heiko@sntech.de>");
|
||||
MODULE_DESCRIPTION("Rockchip SARADC driver");
|
||||
|
||||
@@ -193,7 +193,11 @@ static int __init iommu_subsys_init(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
postcore_initcall_sync(iommu_subsys_init);
|
||||
#else
|
||||
subsys_initcall(iommu_subsys_init);
|
||||
#endif
|
||||
|
||||
static int remove_iommu_group(struct device *dev, void *data)
|
||||
{
|
||||
|
||||
@@ -1827,7 +1827,7 @@ static struct platform_driver rk_iommu_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
#ifdef CONFIG_VIDEO_REVERSE_IMAGE
|
||||
#if defined(CONFIG_VIDEO_REVERSE_IMAGE) || defined(CONFIG_ROCKCHIP_THUNDER_BOOT)
|
||||
static int __init rk_iommu_init(void)
|
||||
{
|
||||
return platform_driver_register(&rk_iommu_driver);
|
||||
|
||||
@@ -277,4 +277,8 @@ static int __init blackhole_netdev_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
fs_initcall(blackhole_netdev_init);
|
||||
#else
|
||||
device_initcall(blackhole_netdev_init);
|
||||
#endif
|
||||
|
||||
@@ -1948,7 +1948,7 @@ static void __exit nvmem_exit(void)
|
||||
bus_unregister(&nvmem_bus_type);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
arch_initcall_sync(nvmem_init);
|
||||
#else
|
||||
subsys_initcall(nvmem_init);
|
||||
|
||||
@@ -330,4 +330,8 @@ static int __init opp_debug_init(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
core_initcall_sync(opp_debug_init);
|
||||
#else
|
||||
core_initcall(opp_debug_init);
|
||||
#endif
|
||||
|
||||
@@ -1235,4 +1235,8 @@ static int __init phy_core_init(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
subsys_initcall(phy_core_init);
|
||||
#else
|
||||
device_initcall(phy_core_init);
|
||||
#endif
|
||||
|
||||
@@ -1166,7 +1166,21 @@ static struct platform_driver inno_dsidphy_driver = {
|
||||
.probe = inno_dsidphy_probe,
|
||||
.remove = inno_dsidphy_remove,
|
||||
};
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
static int __init inno_dsidphy_driver_init(void)
|
||||
{
|
||||
return platform_driver_register(&inno_dsidphy_driver);
|
||||
}
|
||||
fs_initcall(inno_dsidphy_driver_init);
|
||||
|
||||
static void __exit inno_dsidphy_driver_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&inno_dsidphy_driver);
|
||||
}
|
||||
module_exit(inno_dsidphy_driver_exit);
|
||||
#else
|
||||
module_platform_driver(inno_dsidphy_driver);
|
||||
#endif
|
||||
|
||||
MODULE_AUTHOR("Wyon Bi <bivvy.bi@rock-chips.com>");
|
||||
MODULE_DESCRIPTION("Innosilicon MIPI/LVDS/TTL Video Combo PHY driver");
|
||||
|
||||
@@ -4808,7 +4808,21 @@ static struct platform_driver rockchip_usb2phy_driver = {
|
||||
.of_match_table = rockchip_usb2phy_dt_match,
|
||||
},
|
||||
};
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
static int __init rockchip_usb2phy_driver_init(void)
|
||||
{
|
||||
return platform_driver_register(&rockchip_usb2phy_driver);
|
||||
}
|
||||
fs_initcall(rockchip_usb2phy_driver_init);
|
||||
|
||||
static void __exit rockchip_usb2phy_driver_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&rockchip_usb2phy_driver);
|
||||
}
|
||||
module_exit(rockchip_usb2phy_driver_exit);
|
||||
#else
|
||||
module_platform_driver(rockchip_usb2phy_driver);
|
||||
#endif
|
||||
|
||||
MODULE_AUTHOR("Frank Wang <frank.wang@rock-chips.com>");
|
||||
MODULE_DESCRIPTION("Rockchip USB2.0 PHY driver");
|
||||
|
||||
@@ -1604,7 +1604,21 @@ static struct platform_driver rockchip_combphy_driver = {
|
||||
.of_match_table = rockchip_combphy_of_match,
|
||||
},
|
||||
};
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
static int __init rockchip_combphy_driver_init(void)
|
||||
{
|
||||
return platform_driver_register(&rockchip_combphy_driver);
|
||||
}
|
||||
fs_initcall(rockchip_combphy_driver_init);
|
||||
|
||||
static void __exit rockchip_combphy_driver_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&rockchip_combphy_driver);
|
||||
}
|
||||
module_exit(rockchip_combphy_driver_exit);
|
||||
#else
|
||||
module_platform_driver(rockchip_combphy_driver);
|
||||
#endif
|
||||
|
||||
MODULE_DESCRIPTION("Rockchip NANENG COMBPHY driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
||||
@@ -2341,4 +2341,8 @@ static int __init pinctrl_init(void)
|
||||
}
|
||||
|
||||
/* init early since many drivers really need to initialized pinmux early */
|
||||
#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_INITCALL_ASYNC)
|
||||
core_initcall_sync(pinctrl_init);
|
||||
#else
|
||||
core_initcall(pinctrl_init);
|
||||
#endif
|
||||
|
||||
@@ -660,4 +660,8 @@ static int __init pwm_sysfs_init(void)
|
||||
{
|
||||
return class_register(&pwm_class);
|
||||
}
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
postcore_initcall(pwm_sysfs_init);
|
||||
#else
|
||||
subsys_initcall(pwm_sysfs_init);
|
||||
#endif
|
||||
|
||||
@@ -6543,7 +6543,7 @@ static int __init regulator_init(void)
|
||||
}
|
||||
|
||||
/* init early to allow our consumers to complete system booting */
|
||||
#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT
|
||||
#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_INITCALL_ASYNC)
|
||||
core_initcall_sync(regulator_init);
|
||||
#else
|
||||
core_initcall(regulator_init);
|
||||
|
||||
@@ -416,7 +416,21 @@ static struct platform_driver pwm_regulator_driver = {
|
||||
.probe = pwm_regulator_probe,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT
|
||||
static int __init pwm_regulator_driver_init(void)
|
||||
{
|
||||
return platform_driver_register(&pwm_regulator_driver);
|
||||
}
|
||||
subsys_initcall_sync(pwm_regulator_driver_init);
|
||||
|
||||
static void __exit pwm_regulator_driver_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&pwm_regulator_driver);
|
||||
}
|
||||
module_exit(pwm_regulator_driver_exit);
|
||||
#else
|
||||
module_platform_driver(pwm_regulator_driver);
|
||||
#endif
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Lee Jones <lee.jones@linaro.org>");
|
||||
|
||||
@@ -1251,7 +1251,7 @@ static void __exit serial8250_exit(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
rootfs_initcall(serial8250_init);
|
||||
#else
|
||||
module_init(serial8250_init);
|
||||
|
||||
@@ -720,7 +720,21 @@ static struct platform_driver pwm_backlight_driver = {
|
||||
.shutdown = pwm_backlight_shutdown,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
static int __init pwm_backlight_driver_init(void)
|
||||
{
|
||||
return platform_driver_register(&pwm_backlight_driver);
|
||||
}
|
||||
fs_initcall(pwm_backlight_driver_init);
|
||||
|
||||
static void __exit pwm_backlight_driver_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&pwm_backlight_driver);
|
||||
}
|
||||
module_exit(pwm_backlight_driver_exit);
|
||||
#else
|
||||
module_platform_driver(pwm_backlight_driver);
|
||||
#endif
|
||||
|
||||
MODULE_DESCRIPTION("PWM based Backlight Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
||||
@@ -270,4 +270,8 @@ exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
pure_initcall(ksysfs_init);
|
||||
#else
|
||||
core_initcall(ksysfs_init);
|
||||
#endif
|
||||
|
||||
@@ -971,6 +971,10 @@ static int __init param_sysfs_init(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
arch_initcall_sync(param_sysfs_init);
|
||||
#else
|
||||
subsys_initcall(param_sysfs_init);
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_SYSFS */
|
||||
|
||||
@@ -1073,7 +1073,11 @@ static int __init clocksource_done_booting(void)
|
||||
mutex_unlock(&clocksource_mutex);
|
||||
return 0;
|
||||
}
|
||||
#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT
|
||||
pure_initcall(clocksource_done_booting);
|
||||
#else
|
||||
fs_initcall(clocksource_done_booting);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Enqueue the clocksource sorted by rating
|
||||
|
||||
@@ -77,4 +77,8 @@ static int __init bpfilter_sockopt_init(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
rootfs_initcall(bpfilter_sockopt_init);
|
||||
#else
|
||||
device_initcall(bpfilter_sockopt_init);
|
||||
#endif
|
||||
|
||||
@@ -1480,7 +1480,11 @@ static void __exit inet_diag_exit(void)
|
||||
kfree(inet_diag_table);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
rootfs_initcall(inet_diag_init);
|
||||
#else
|
||||
module_init(inet_diag_init);
|
||||
#endif
|
||||
module_exit(inet_diag_exit);
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_NETLINK, NETLINK_SOCK_DIAG, 2 /* AF_INET */);
|
||||
|
||||
@@ -1329,6 +1329,10 @@ out_unregister_tcp_proto:
|
||||
proto_unregister(&tcpv6_prot);
|
||||
goto out;
|
||||
}
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
rootfs_initcall(inet6_init);
|
||||
#else
|
||||
module_init(inet6_init);
|
||||
#endif
|
||||
|
||||
MODULE_ALIAS_NETPROTO(PF_INET6);
|
||||
|
||||
@@ -1250,5 +1250,9 @@ static void __exit nf_conntrack_standalone_fini(void)
|
||||
nf_conntrack_cleanup_end();
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
rootfs_initcall(nf_conntrack_standalone_init);
|
||||
#else
|
||||
module_init(nf_conntrack_standalone_init);
|
||||
#endif
|
||||
module_exit(nf_conntrack_standalone_fini);
|
||||
|
||||
@@ -2012,6 +2012,10 @@ static void __exit xt_fini(void)
|
||||
kfree(xt);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
rootfs_initcall(xt_init);
|
||||
#else
|
||||
module_init(xt_init);
|
||||
#endif
|
||||
module_exit(xt_fini);
|
||||
|
||||
|
||||
@@ -1495,7 +1495,11 @@ problem:
|
||||
panic("GENL: Cannot register controller: %d\n", err);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
core_initcall_sync(genl_init);
|
||||
#else
|
||||
core_initcall(genl_init);
|
||||
#endif
|
||||
|
||||
static int genlmsg_mcast(struct sk_buff *skb, u32 portid, unsigned long group,
|
||||
gfp_t flags)
|
||||
|
||||
@@ -3233,7 +3233,11 @@ out_mount:
|
||||
goto out;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
pure_initcall(sock_init); /* early initcall */
|
||||
#else
|
||||
core_initcall(sock_init); /* early initcall */
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
void socket_seq_show(struct seq_file *seq)
|
||||
|
||||
@@ -999,7 +999,21 @@ static struct platform_driver rockchip_multicodecs_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
static int __init rockchip_multicodecs_driver_init(void)
|
||||
{
|
||||
return platform_driver_register(&rockchip_multicodecs_driver);
|
||||
}
|
||||
late_initcall(rockchip_multicodecs_driver_init);
|
||||
|
||||
static void __exit rockchip_multicodecs_driver_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&rockchip_multicodecs_driver);
|
||||
}
|
||||
module_exit(rockchip_multicodecs_driver_exit);
|
||||
#else
|
||||
module_platform_driver(rockchip_multicodecs_driver);
|
||||
#endif
|
||||
|
||||
MODULE_AUTHOR("Sugar Zhang <sugar.zhang@rock-chips.com>");
|
||||
MODULE_DESCRIPTION("Rockchip General Multicodecs ASoC driver");
|
||||
|
||||
Reference in New Issue
Block a user