From: Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Laurent Pinchart
<laurent.pinchart+renesas-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 2/3] i2c: core: Dispose OF IRQ mapping at client removal time
Date: Thu, 30 Oct 2014 15:25:47 +0100 [thread overview]
Message-ID: <20141030142543.GA20072@ulmo.nvidia.com> (raw)
In-Reply-To: <1414677578-27412-3-git-send-email-laurent.pinchart+renesas-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]
On Thu, Oct 30, 2014 at 03:59:37PM +0200, Laurent Pinchart wrote:
> Clients instantiated from OF get an IRQ mapping created at device
> registration time. Dispose the mapping when the client is removed.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas-ryLnwIuWjnhk3lzF8UVTdg@public.gmane.orgm>
> ---
> drivers/i2c/i2c-core.c | 3 +++
> 1 file changed, 3 insertions(+)
If this is needed regardless of patch 3/3, then presumably it should be
Cc'ed to stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org since it fixes a bug that's been there
for quite some time?
Thierry
> diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
> index 2f90ac6a7f79..258765b29684 100644
> --- a/drivers/i2c/i2c-core.c
> +++ b/drivers/i2c/i2c-core.c
> @@ -670,6 +670,9 @@ static int i2c_device_remove(struct device *dev)
> status = driver->remove(client);
> }
>
> + if (dev->of_node)
> + irq_dispose_mapping(client->irq);
> +
> dev_pm_domain_detach(&client->dev, true);
> return status;
> }
> --
> 2.0.4
>
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Thierry Reding <thierry.reding@gmail.com>
To: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] i2c: core: Dispose OF IRQ mapping at client removal time
Date: Thu, 30 Oct 2014 15:25:47 +0100 [thread overview]
Message-ID: <20141030142543.GA20072@ulmo.nvidia.com> (raw)
In-Reply-To: <1414677578-27412-3-git-send-email-laurent.pinchart+renesas@ideasonboard.com>
[-- Attachment #1: Type: text/plain, Size: 1004 bytes --]
On Thu, Oct 30, 2014 at 03:59:37PM +0200, Laurent Pinchart wrote:
> Clients instantiated from OF get an IRQ mapping created at device
> registration time. Dispose the mapping when the client is removed.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
> drivers/i2c/i2c-core.c | 3 +++
> 1 file changed, 3 insertions(+)
If this is needed regardless of patch 3/3, then presumably it should be
Cc'ed to stable@vger.kernel.org since it fixes a bug that's been there
for quite some time?
Thierry
> diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
> index 2f90ac6a7f79..258765b29684 100644
> --- a/drivers/i2c/i2c-core.c
> +++ b/drivers/i2c/i2c-core.c
> @@ -670,6 +670,9 @@ static int i2c_device_remove(struct device *dev)
> status = driver->remove(client);
> }
>
> + if (dev->of_node)
> + irq_dispose_mapping(client->irq);
> +
> dev_pm_domain_detach(&client->dev, true);
> return status;
> }
> --
> 2.0.4
>
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2014-10-30 14:25 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-30 13:59 [PATCH 0/3] Delay I2C OF IRQ mapping until probe time Laurent Pinchart
2014-10-30 13:59 ` [PATCH 2/3] i2c: core: Dispose OF IRQ mapping at client removal time Laurent Pinchart
[not found] ` <1414677578-27412-3-git-send-email-laurent.pinchart+renesas-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org>
2014-10-30 14:25 ` Thierry Reding [this message]
2014-10-30 14:25 ` Thierry Reding
2014-11-07 18:03 ` Wolfram Sang
2014-11-07 18:03 ` Wolfram Sang
2014-10-30 13:59 ` [PATCH 3/3] i2c: core: Map OF IRQ at probe time Laurent Pinchart
[not found] ` <1414677578-27412-4-git-send-email-laurent.pinchart+renesas-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org>
2014-11-07 18:05 ` Wolfram Sang
2014-11-07 18:05 ` Wolfram Sang
2014-11-17 11:24 ` Geert Uytterhoeven
2014-11-17 11:24 ` Geert Uytterhoeven
[not found] ` <1414677578-27412-1-git-send-email-laurent.pinchart+renesas-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org>
2014-10-30 13:59 ` [PATCH 1/3] of/irq: Export of_irq_get() Laurent Pinchart
2014-10-30 13:59 ` Laurent Pinchart
2014-10-30 14:16 ` Wolfram Sang
2014-10-30 14:17 ` Laurent Pinchart
2014-10-31 18:20 ` Wolfram Sang
2014-10-31 20:58 ` Rob Herring
2014-10-31 20:58 ` Rob Herring
2014-11-04 15:55 ` Grant Likely
2014-11-04 15:55 ` Grant Likely
[not found] ` <1414677578-27412-2-git-send-email-laurent.pinchart+renesas-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org>
2014-11-07 18:05 ` Wolfram Sang
2014-11-07 18:05 ` Wolfram Sang
2014-10-30 14:27 ` [PATCH 0/3] Delay I2C OF IRQ mapping until probe time Thierry Reding
2014-10-30 14:27 ` Thierry Reding
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=20141030142543.GA20072@ulmo.nvidia.com \
--to=thierry.reding-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=laurent.pinchart+renesas-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/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.