Dmitry Osipenko 40b25bce0a gpio: tegra: Move driver registration to subsys_init level
There is a bug in regards to deferred probing within the drivers core
that causes GPIO-driver to suspend after its users. The bug appears if
GPIO-driver probe is getting deferred, which happens after introducing
dependency on PINCTRL-driver for the GPIO-driver by defining "gpio-ranges"
property in device-tree. The bug in the drivers core is old (more than 4
years now) and is well known, unfortunately there is no easy fix for it.
The good news is that we can workaround the deferred probe issue by
changing GPIO / PINCTRL drivers registration order and hence by moving
PINCTRL driver registration to the arch_init level and GPIO to the
subsys_init.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2018-08-03 19:26:03 +02:00
..
2016-03-30 10:38:51 +02:00
2018-03-19 01:50:07 +01:00
2018-03-19 01:50:07 +01:00
2018-05-16 14:35:24 +02:00
2018-03-19 01:50:29 +01:00
2018-06-12 16:19:22 -07:00
2018-05-16 14:35:24 +02:00
2018-05-24 17:09:41 +02:00
2018-05-24 17:09:41 +02:00
2018-03-18 17:48:59 +01:00
2017-12-22 15:24:31 +01:00
2016-09-13 10:35:56 +02:00
2016-12-30 09:18:10 +01:00
2018-01-09 14:51:00 +01:00
2017-08-23 09:21:54 +02:00
2018-05-23 14:01:03 +02:00
2018-05-23 14:01:03 +02:00