Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1710945
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/8] gpio: zynq: Shift zynq_gpio_init() to subsys_initcall level |
| Date | 2017-08-14 16:00 +0200 |
| Message-ID | <ueo4q-4Q6-5@gated-at.bofh.it> (permalink) |
| References | <ubO53-7rt-3@gated-at.bofh.it> <ubO54-7rt-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Aug 7, 2017 at 1:01 PM, Michal Simek <michal.simek@xilinx.com> wrote: > From: Nava kishore Manne <nava.manne@xilinx.com> > > In general situation on-SoC GPIO controller drivers should be probed > after pinctrl/pinmux controller driver, because on-SoC GPIOs utilize a > pin/pad as a resource provided and controlled by pinctrl subsystem. > > GPIO must come after pinctrl as gpios may need to mux pins....etc > > Looking at Xilinx SoC series pinctrl drivers, zynq*_pinctrl_init() > functions are called at arch_initcall init levels, > so the change of initcall level for gpio-zynq driver from > postcore_initcall to subsys_initcall level is sufficient. Also note > that the most of GPIO controller drivers settled at subsys_initcall > level. > > If pinctrl subsystem manages pads with GPIO functions, the change is > needed to avoid unwanted driver probe deferrals during kernel boot. > > Signed-off-by: Nava kishore Manne <navam@xilinx.com> > Signed-off-by: Michal Simek <michal.simek@xilinx.com> Can't you just move it all the way to device_initcall and simply use the standard module init macros? builtin_platform_driver(), module_platform_driver()? Yours, Linus Walleij
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH 3/8] gpio: zynq: Shift zynq_gpio_init() to subsys_initcall level Linus Walleij <linus.walleij@linaro.org> - 2017-08-14 16:00 +0200 Re: [PATCH 3/8] gpio: zynq: Shift zynq_gpio_init() to subsys_initcall level Linus Walleij <linus.walleij@linaro.org> - 2017-08-22 15:10 +0200
csiph-web