All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Hovold <johan@kernel.org>
To: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
	Alexandre Courbot <gnurou@gmail.com>,
	linux-gpio <linux-gpio@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Patrick Titiano <ptitiano@baylibre.com>,
	Benoit Cousson <bcousson@baylibre.com>
Subject: Re: [PATCH] gpiolib: unexport requested gpios on gpiochip removal
Date: Wed, 10 Jun 2015 19:29:49 +0200	[thread overview]
Message-ID: <20150610172949.GA4668@localhost> (raw)
In-Reply-To: <1433946861-22371-1-git-send-email-bgolaszewski@baylibre.com>

Hi Bartosz,

On Wed, Jun 10, 2015 at 04:34:21PM +0200, Bartosz Golaszewski wrote:
> When a GPIO expander device is removed - e.g. via i2c-adapter
> new_device/delete_device interface - with some GPIOs still requested,
> gpiochip_remove() function will emit a warning but remove the chip
> anyway.
> 
> If we then reinstantiate this device and try to export any of the GPIOs
> still requested on gpiochip deletion the following warning will be
> emitted:

For GPIOs exported through sysfs, this has already been fixed by commit
483d82110879 ("gpio: sysfs: fix memory leaks and device hotplug"), which
has also been backported to stable.

Thanks,
Johan

      reply	other threads:[~2015-06-10 17:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-10 14:34 [PATCH] gpiolib: unexport requested gpios on gpiochip removal Bartosz Golaszewski
2015-06-10 17:29 ` Johan Hovold [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=20150610172949.GA4668@localhost \
    --to=johan@kernel.org \
    --cc=bcousson@baylibre.com \
    --cc=bgolaszewski@baylibre.com \
    --cc=gnurou@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ptitiano@baylibre.com \
    /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.