All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthias Meier <matthias.j.meier@gmx.net>
To: linux-iio@vger.kernel.org
Subject: Re: iio_interrupt_trigger
Date: Tue, 20 Oct 2015 18:00:39 +0200	[thread overview]
Message-ID: <56266527.1030705@gmx.net> (raw)
In-Reply-To: <5624BB59.20003@metafoo.de>

> The problem is that you can't really instantiate the
iio-interrupt-trigger
> from the devicetree. IIO is a software concept, there is no hardware
> associated with it that you could describe in the devicetree.

I managed to execute the 'iio_interrupt_trigger' ISR by executing 
'generic_handle_irq(intnr)' out of my PWM ISR - it works but its ugly.

For 'intnr' I used a gpio interrupt number on which I registerd the 
platform data for 'iio_interrupt_trigger' inside the 'pwm-imx' driver.

I also tried to share the same intnr for 'iio_interrupt_trigger' and the 
pwm but this did not work.

Is it possible to get a software INT Nr somehow istead of a gpio interrupt?

Btw:
generic_buffer from 4.1.y
	works well on 4.1.y and 4.2.y kernel,

whereas generic_buffer from 4.2.y and v4.3-rc6
	gives following error on a 4.2.y

"Problem reading scan element information
      diag /sys/bus/iio/devices/iio:device0
"

thx Matthias


  reply	other threads:[~2015-10-20 16:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-18 12:53 iio_interrupt_trigger Matthias Meier
2015-10-19  9:43 ` iio_interrupt_trigger Lars-Peter Clausen
2015-10-20 16:00   ` Matthias Meier [this message]
2015-10-20 17:05   ` iio_interrupt_trigger Matthias Meier
2015-10-20 17:31     ` iio_interrupt_trigger Lars-Peter Clausen

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=56266527.1030705@gmx.net \
    --to=matthias.j.meier@gmx.net \
    --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.