Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1259526 > unrolled thread
| Started by | Marek Szyprowski <m.szyprowski@samsung.com> |
|---|---|
| First post | 2015-10-30 15:30 +0100 |
| Last post | 2015-11-01 17:10 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] i2c: exynos5: register driver early in subsys initcall to avoid probe defer Marek Szyprowski <m.szyprowski@samsung.com> - 2015-10-30 15:30 +0100
Re: [PATCH] i2c: exynos5: register driver early in subsys initcall to avoid probe defer Wolfram Sang <wsa@the-dreams.de> - 2015-11-01 17:10 +0100
| From | Marek Szyprowski <m.szyprowski@samsung.com> |
|---|---|
| Date | 2015-10-30 15:30 +0100 |
| Subject | [PATCH] i2c: exynos5: register driver early in subsys initcall to avoid probe defer |
| Message-ID | <qpiQO-6Tg-9@gated-at.bofh.it> |
i2c bus drivers should be registered earlier than typical drivers to let
important i2c devices (like PMICs/regulators) get registered early
enough to avoid probe defer of all devices in typical embedded system.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
drivers/i2c/busses/i2c-exynos5.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c
index b29c7500461a..934a5cbcbdd3 100644
--- a/drivers/i2c/busses/i2c-exynos5.c
+++ b/drivers/i2c/busses/i2c-exynos5.c
@@ -867,7 +867,17 @@ static struct platform_driver exynos5_i2c_driver = {
},
};
-module_platform_driver(exynos5_i2c_driver);
+static int __init i2c_adap_exynos5_i2c_init(void)
+{
+ return platform_driver_register(&exynos5_i2c_driver);
+}
+subsys_initcall(i2c_adap_exynos5_i2c_init);
+
+static void __exit i2c_adap_exynos5_i2c_exit(void)
+{
+ platform_driver_unregister(&exynos5_i2c_driver);
+}
+module_exit(i2c_adap_exynos5_i2c_exit);
MODULE_DESCRIPTION("Exynos5 HS-I2C Bus driver");
MODULE_AUTHOR("Naveen Krishna Chatradhi, <ch.naveen@samsung.com>");
--
1.9.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Wolfram Sang <wsa@the-dreams.de> |
|---|---|
| Date | 2015-11-01 17:10 +0100 |
| Subject | Re: [PATCH] i2c: exynos5: register driver early in subsys initcall to avoid probe defer |
| Message-ID | <qq3mG-27l-17@gated-at.bofh.it> |
| In reply to | #1259526 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Oct 30, 2015 at 03:23:28PM +0100, Marek Szyprowski wrote: > i2c bus drivers should be registered earlier than typical drivers to let > important i2c devices (like PMICs/regulators) get registered early > enough to avoid probe defer of all devices in typical embedded system. > > Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> I don't accept such patches anymore. Some more background: http://www.spinics.net/lists/linux-i2c/msg13102.html http://www.spinics.net/lists/linux-i2c/msg16644.html
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web