Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1508113
| From | Wolfram Sang <wsa@the-dreams.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 2/2] i2c: mark device nodes only in case of successful instantiation |
| Date | 2016-10-25 11:30 +0200 |
| Message-ID | <sw6dr-3Ia-19@gated-at.bofh.it> (permalink) |
| References | <stgM2-4uk-37@gated-at.bofh.it> <stgM3-4uk-53@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Mon, Oct 17, 2016 at 03:59:57PM +0200, Ralf Ramsauer wrote:
> Instantiated I2C device nodes are marked with OF_POPULATE. This was
> introduced in 4f001fd. On unloading, loaded device nodes will of course
> be unmarked. The problem are nodes that fail during initialisation: If a
> node fails, it won't be unloaded and hence not be unmarked.
>
> If a I2C driver module is unloaded and reloaded, it will skip nodes that
> failed before.
>
> Skip device nodes that are already populated and mark them only in case
> of success.
>
> Note that the same issue exists for SPI.
>
> Fixes: 4f001fd ("i2c: Mark instantiated device nodes with OF_POPULATE")
> Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
Applied to for-current, thanks!
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/2] spi, i2c: mark device nodes only in case of successful instantiation Ralf Ramsauer <ralf@ramses-pyramidenbau.de> - 2016-10-17 16:10 +0200
[PATCH v2 2/2] i2c: mark device nodes only in case of successful instantiation Ralf Ramsauer <ralf@ramses-pyramidenbau.de> - 2016-10-17 16:10 +0200
Re: [PATCH v2 2/2] i2c: mark device nodes only in case of successful instantiation Geert Uytterhoeven <geert@linux-m68k.org> - 2016-10-17 16:20 +0200
Re: [PATCH v2 2/2] i2c: mark device nodes only in case of successful instantiation Ralf Ramsauer <ralf@ramses-pyramidenbau.de> - 2016-10-17 16:40 +0200
Re: [PATCH v2 2/2] i2c: mark device nodes only in case of successful instantiation Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-10-17 21:20 +0200
Re: [PATCH v2 2/2] i2c: mark device nodes only in case of successful instantiation Wolfram Sang <wsa@the-dreams.de> - 2016-10-25 11:30 +0200
[PATCH v2 1/2] spi: mark device nodes only in case of successful instantiation Ralf Ramsauer <ralf@ramses-pyramidenbau.de> - 2016-10-17 16:10 +0200
Re: [PATCH v2 1/2] spi: mark device nodes only in case of successful instantiation Geert Uytterhoeven <geert@linux-m68k.org> - 2016-10-17 16:20 +0200
Re: [PATCH v2 1/2] spi: mark device nodes only in case of successful instantiation Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-10-17 21:20 +0200
Re: [PATCH v2 1/2] spi: mark device nodes only in case of successful instantiation Mark Brown <broonie@kernel.org> - 2016-10-24 19:40 +0200
Applied "spi: mark device nodes only in case of successful instantiation" to the spi tree Mark Brown <broonie@kernel.org> - 2016-10-24 20:20 +0200
Re: [PATCH v2 0/2] spi, i2c: mark device nodes only in case of successful instantiation Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-10-17 21:20 +0200
csiph-web