Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1498352
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/4] base: soc: Early register bus when needed |
| Date | 2016-10-10 16:20 +0200 |
| Message-ID | <sqJAS-2hV-31@gated-at.bofh.it> (permalink) |
| References | <sotTA-Ep-17@gated-at.bofh.it> <sou3f-Iv-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tuesday, October 4, 2016 11:09:24 AM CEST Geert Uytterhoeven wrote: > If soc_device_register() is called before soc_bus_register(), it crashes > with a NULL pointer dereference. > > soc_bus_register() is already a core_initcall(), but drivers/base/ is > entered later than e.g. drivers/pinctrl/ and drivers/soc/. Hence there > are several subsystems that may need to know SoC revision information, > while it's not so easy to initialize the SoC bus even earlier using an > initcall. > > To fix this, let soc_device_register() register the bus early if that > hasn't happened yet. > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > Not nice, but I can't think of a better alternative, so Acked-by: Arnd Bergmann <arnd@arndb.de>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] soc: renesas: Identify SoC and register with the SoC bus Geert Uytterhoeven <geert+renesas@glider.be> - 2016-10-04 11:20 +0200
[PATCH 1/4] base: soc: Early register bus when needed Geert Uytterhoeven <geert+renesas@glider.be> - 2016-10-04 11:20 +0200
Re: [PATCH 1/4] base: soc: Early register bus when needed Arnd Bergmann <arnd@arndb.de> - 2016-10-10 16:20 +0200
[PATCH 3/4] base: soc: Check for NULL SoC device attributes Geert Uytterhoeven <geert+renesas@glider.be> - 2016-10-04 11:20 +0200
Re: [PATCH 3/4] base: soc: Check for NULL SoC device attributes Arnd Bergmann <arnd@arndb.de> - 2016-10-10 16:20 +0200
Re: [PATCH 0/4] soc: renesas: Identify SoC and register with the SoC bus Arnd Bergmann <arnd@arndb.de> - 2016-10-10 16:30 +0200
csiph-web