linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] spi, i2c: mark device nodes only in case of successful instantiation
@ 2016-10-17 13:59 Ralf Ramsauer
  2016-10-17 13:59 ` [PATCH v2 1/2] spi: " Ralf Ramsauer
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Ralf Ramsauer @ 2016-10-17 13:59 UTC (permalink / raw)
  To: Mark Brown, Geert Uytterhoeven, Wolfram Sang, Linux SPI,
	Linux I2C
  Cc: Ralf Ramsauer, linux-kernel @ vger . kernel . org,
	Pantelis Antoniou

Hi,

this one fixes initialisation of I2C/SPI nodes.  Upon failure during
intialisation, nodes were erroneously populated and never unmarked.

This lead to the problem that re-loaded drivers will never probe those devices
again and can easily be fixed by clearing the OF_POPULATE flag when the node
doesn't successfully initialise.

For the discussion of v1, see
https://lkml.org/lkml/2016/10/14/483

  Ralf

changes since v1:
  - also fix I2C core driver
  - keep the atomic test-and-set, as Geert suggested

Ralf Ramsauer (2):
  spi: mark device nodes only in case of successful instantiation
  i2c: mark device nodes only in case of successful instantiation

 drivers/i2c/i2c-core.c | 11 ++++++++++-
 drivers/spi/spi.c      |  5 ++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

-- 
2.10.1

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-10-25  9:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-17 13:59 [PATCH v2 0/2] spi, i2c: mark device nodes only in case of successful instantiation Ralf Ramsauer
2016-10-17 13:59 ` [PATCH v2 1/2] spi: " Ralf Ramsauer
2016-10-17 14:15   ` Geert Uytterhoeven
     [not found]   ` <20161017135957.20297-2-ralf-ex4EvEgDZR1o7HI0AxOeTKwczVv4G7md@public.gmane.org>
2016-10-17 19:16     ` Pantelis Antoniou
2016-10-24 17:30   ` Mark Brown
2016-10-24 18:05   ` Applied "spi: mark device nodes only in case of successful instantiation" to the spi tree Mark Brown
2016-10-17 13:59 ` [PATCH v2 2/2] i2c: mark device nodes only in case of successful instantiation Ralf Ramsauer
2016-10-17 14:16   ` Geert Uytterhoeven
2016-10-17 14:37     ` Ralf Ramsauer
2016-10-17 19:16   ` Pantelis Antoniou
2016-10-25  9:23   ` Wolfram Sang
     [not found] ` <20161017135957.20297-1-ralf-ex4EvEgDZR1o7HI0AxOeTKwczVv4G7md@public.gmane.org>
2016-10-17 19:15   ` [PATCH v2 0/2] spi, " Pantelis Antoniou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).