All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
Cc: geert+renesas@glider.be, pantelis.antoniou@konsulko.com,
	wsa@the-dreams.de, stable@vger.kernel.org, stable@kernel.org
Subject: Re: [PATCH] i2c: mark device nodes only in case of successful instantiation
Date: Wed, 9 Nov 2016 09:30:41 +0100	[thread overview]
Message-ID: <20161109083041.GA19387@kroah.com> (raw)
In-Reply-To: <20161106131507.12605-1-ralf@ramses-pyramidenbau.de>

On Sun, Nov 06, 2016 at 02:15:07PM +0100, Ralf Ramsauer wrote:
> commit 6a676fb69dcbf3310b9e462c1db66c8e7f6ead38 upstream.
> 
> Instantiated I2C device nodes are marked with OF_POPULATE. This was
> introduced in 4f001fd30145a6. 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.
> 
> Fixes: 4f001fd30145a6 ("i2c: Mark instantiated device nodes with OF_POPULATE")
> Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Acked-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
> [wsa: use 14-digit commit sha]
> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
> Cc: stable@kernel.org
> ---
> Hi Greg,
> 
> this one is the backport for 4.8.y.  Only hunks and surrounding context lines
> shifted slightly, no functional changes compared to its upstream commit
> 6a676fb69dcbf.

Thanks for the backport, now applied.

greg k-h

      reply	other threads:[~2016-11-09  8:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-06 11:55 FAILED: patch "[PATCH] i2c: mark device nodes only in case of successful" failed to apply to 4.8-stable tree gregkh
2016-11-06 13:15 ` [PATCH] i2c: mark device nodes only in case of successful instantiation Ralf Ramsauer
2016-11-09  8:30   ` Greg KH [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=20161109083041.GA19387@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=geert+renesas@glider.be \
    --cc=pantelis.antoniou@konsulko.com \
    --cc=ralf@ramses-pyramidenbau.de \
    --cc=stable@kernel.org \
    --cc=stable@vger.kernel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.