All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio: gyro: mpu3050: Allow open drain with anything
Date: Sat, 1 Jul 2017 10:59:53 +0100	[thread overview]
Message-ID: <20170701105953.75141cf1@kernel.org> (raw)
In-Reply-To: <20170629115704.20717-1-linus.walleij@linaro.org>

On Thu, 29 Jun 2017 13:57:04 +0200
Linus Walleij <linus.walleij@linaro.org> wrote:

> Open drain should work fine with rising or high level IRQs,
> this code was due to some misunderstanding on my part.
Me too ;)

Applied to the togreg branch of iio.git and pushed out as
testing for the autobuilders to play with it.

Thanks,

Jonathan
> 
> Reported-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  drivers/iio/gyro/mpu3050-core.c | 10 ----------
>  1 file changed, 10 deletions(-)
> 
> diff --git a/drivers/iio/gyro/mpu3050-core.c b/drivers/iio/gyro/mpu3050-core.c
> index 2be2a5d287e6..e0d241a9aa30 100644
> --- a/drivers/iio/gyro/mpu3050-core.c
> +++ b/drivers/iio/gyro/mpu3050-core.c
> @@ -1063,11 +1063,6 @@ static int mpu3050_trigger_probe(struct iio_dev *indio_dev, int irq)
>  	case IRQF_TRIGGER_RISING:
>  		dev_info(&indio_dev->dev,
>  			 "pulse interrupts on the rising edge\n");
> -		if (mpu3050->irq_opendrain) {
> -			dev_info(&indio_dev->dev,
> -				 "rising edge incompatible with open drain\n");
> -			mpu3050->irq_opendrain = false;
> -		}
>  		break;
>  	case IRQF_TRIGGER_FALLING:
>  		mpu3050->irq_actl = true;
> @@ -1078,11 +1073,6 @@ static int mpu3050_trigger_probe(struct iio_dev *indio_dev, int irq)
>  		mpu3050->irq_latch = true;
>  		dev_info(&indio_dev->dev,
>  			 "interrupts active high level\n");
> -		if (mpu3050->irq_opendrain) {
> -			dev_info(&indio_dev->dev,
> -				 "active high incompatible with open drain\n");
> -			mpu3050->irq_opendrain = false;
> -		}
>  		/*
>  		 * With level IRQs, we mask the IRQ until it is processed,
>  		 * but with edge IRQs (pulses) we can queue several interrupts


      reply	other threads:[~2017-07-01  9:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-29 11:57 [PATCH] iio: gyro: mpu3050: Allow open drain with anything Linus Walleij
2017-07-01  9:59 ` Jonathan Cameron [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=20170701105953.75141cf1@kernel.org \
    --to=jic23@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-iio@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.