All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Schmidt <stefan@osg.samsung.com>
To: Alexander Aring <alex.aring@gmail.com>, linux-wpan@vger.kernel.org
Cc: kernel@pengutronix.de
Subject: Re: [PATCH bluetooth-next 4/4] at86rf230: detailed edge triggered irq warning
Date: Fri, 28 Aug 2015 10:15:19 +0200	[thread overview]
Message-ID: <55E01897.2070004@osg.samsung.com> (raw)
In-Reply-To: <1440704960-10515-5-git-send-email-alex.aring@gmail.com>

Hello.

On 27/08/15 21:49, Alexander Aring wrote:
> This patch introduce a more detailed information why edge triggered
> irq's are currently not recommended. It could be that rising/falling
> edge detection can happen while the irq is disabled.
>
> Suggested-by: Stefan Schmidt<stefan@osg.samsung.com>
> Signed-off-by: Alexander Aring<alex.aring@gmail.com>
> ---
>   drivers/net/ieee802154/at86rf230.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
> index 19c16b9..b8b0628 100644
> --- a/drivers/net/ieee802154/at86rf230.c
> +++ b/drivers/net/ieee802154/at86rf230.c
> @@ -1376,7 +1376,7 @@ static int at86rf230_hw_init(struct at86rf230_local *lp, u8 xtal_trim)
>   	if (irq_type == IRQ_TYPE_EDGE_RISING ||
>   	    irq_type == IRQ_TYPE_EDGE_FALLING)
>   		dev_warn(&lp->spi->dev,
> -			 "Using edge triggered irq's are not recommended!\n");
> +			 "Using edge triggered irq's are not recommended, because it can cause races and result in a non-functional driver!\n");
>   	if (irq_type == IRQ_TYPE_EDGE_FALLING ||
>   	    irq_type == IRQ_TYPE_LEVEL_LOW)
>   		irq_pol = IRQ_ACTIVE_LOW;

Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>

regards
Stefan Schmidt

  reply	other threads:[~2015-08-28  8:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-27 19:49 [PATCH bluetooth-next 0/4] at86rf230: trac debugfs support Alexander Aring
2015-08-27 19:49 ` [PATCH bluetooth-next 1/4] at86rf230: change trac status check behaviour Alexander Aring
2015-08-28  8:11   ` Stefan Schmidt
2015-08-27 19:49 ` [PATCH bluetooth-next 2/4] at86rf230: interrupt tx with force trx_off Alexander Aring
2015-08-28  8:11   ` Stefan Schmidt
2015-08-27 19:49 ` [PATCH bluetooth-next 3/4] at86rf230: add debugfs support Alexander Aring
2015-08-28  8:14   ` Stefan Schmidt
2015-08-27 19:49 ` [PATCH bluetooth-next 4/4] at86rf230: detailed edge triggered irq warning Alexander Aring
2015-08-28  8:15   ` Stefan Schmidt [this message]
2015-08-28  8:18 ` [PATCH bluetooth-next 0/4] at86rf230: trac debugfs support Stefan Schmidt
2015-09-03 14:31 ` Marcel Holtmann

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=55E01897.2070004@osg.samsung.com \
    --to=stefan@osg.samsung.com \
    --cc=alex.aring@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-wpan@vger.kernel.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.