All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nishanth Menon <nm@ti.com>
To: Keerthy <j-keerthy@ti.com>, linux-omap@vger.kernel.org
Cc: afzal@ti.com, tony@atomide.com
Subject: Re: [PATCH 2/2] bus: omap_l3_noc: Correct returning IRQ_HANDLED unconditionally in the irq handler
Date: Mon, 10 Nov 2014 09:30:02 -0600	[thread overview]
Message-ID: <5460D9FA.3000201@ti.com> (raw)
In-Reply-To: <1415595784-5646-3-git-send-email-j-keerthy@ti.com>

On 11/09/2014 11:03 PM, Keerthy wrote:
> Correct returning IRQ_HANDLED unconditionally in the irq handler.
> Return IRQ_NONE for some interrupt which we do not expect to be
> handled in this handler. This prevents kernel stalling with back
> to back spurious interrupts.
> 
> Signed-off-by: Keerthy <j-keerthy@ti.com>

Consider providing an appropriate fixes comment here as well?

> ---
>  drivers/bus/omap_l3_noc.c |    8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/bus/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c
> index b5eac29..17d8659 100644
> --- a/drivers/bus/omap_l3_noc.c
> +++ b/drivers/bus/omap_l3_noc.c
> @@ -222,10 +222,14 @@ static irqreturn_t l3_interrupt_handler(int irq, void *_l3)
>  			}
>  
>  			/* Error found so break the for loop */
> -			break;
> +			return IRQ_HANDLED;
>  		}
>  	}
> -	return IRQ_HANDLED;
> +
> +	dev_err(l3->dev, "L3 %s IRQ not handled!!\n",
> +		inttype ? "debug" : "application");
> +
> +	return IRQ_NONE;
>  }
>  
>  static const struct of_device_id l3_noc_match[] = {
> 


-- 
Regards,
Nishanth Menon

  reply	other threads:[~2014-11-10 15:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-10  5:03 [PATCH 0/2] bus: omap_l3_noc: Add resume hook to restore mask registers Keerthy
2014-11-10  5:03 ` [PATCH 1/2] bus: omap_l3_noc: Add resume hook to restore context Keerthy
2014-11-10 15:28   ` Nishanth Menon
2014-11-10  5:03 ` [PATCH 2/2] bus: omap_l3_noc: Correct returning IRQ_HANDLED unconditionally in the irq handler Keerthy
2014-11-10 15:30   ` Nishanth Menon [this message]
2014-11-10 15:29 ` [PATCH 0/2] bus: omap_l3_noc: Add resume hook to restore mask registers Nishanth Menon

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=5460D9FA.3000201@ti.com \
    --to=nm@ti.com \
    --cc=afzal@ti.com \
    --cc=j-keerthy@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.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.