From: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
To: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
Cc: Mark Brown <broonie@kernel.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Wolfram Sang <wsa@the-dreams.de>,
Linux SPI <linux-spi@vger.kernel.org>,
Linux I2C <linux-i2c@vger.kernel.org>,
"linux-kernel @ vger . kernel . org"
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 0/2] spi, i2c: mark device nodes only in case of successful instantiation
Date: Mon, 17 Oct 2016 22:15:27 +0300 [thread overview]
Message-ID: <72515578-AF72-4F37-AB69-EC1930D27FF4@konsulko.com> (raw)
In-Reply-To: <20161017135957.20297-1-ralf@ramses-pyramidenbau.de>
Hi Ralf,
> On Oct 17, 2016, at 16:59 , Ralf Ramsauer <ralf@ramses-pyramidenbau.de> wrote:
>
> 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
>
Thanks for catching this.
Acked-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
prev parent reply other threads:[~2016-10-17 19:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-17 13:59 Ralf Ramsauer
2016-10-17 13:59 ` [PATCH v2 1/2] spi: " Ralf Ramsauer
2016-10-17 14:15 ` Geert Uytterhoeven
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
2016-10-17 19:15 ` Pantelis Antoniou [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=72515578-AF72-4F37-AB69-EC1930D27FF4@konsulko.com \
--to=pantelis.antoniou@konsulko.com \
--cc=broonie@kernel.org \
--cc=geert@linux-m68k.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=ralf@ramses-pyramidenbau.de \
--cc=wsa@the-dreams.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®