kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: richard@nod.at (Richard Weinberger)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Handling interrupts in spidev
Date: Mon, 27 Jan 2014 10:23:17 +0100	[thread overview]
Message-ID: <52E62585.1040001@nod.at> (raw)
In-Reply-To: <1390814505.58456.YahooMailNeo@web125701.mail.ne1.yahoo.com>

Am 27.01.2014 10:21, schrieb Amit Mahadik:
> Thanks for your input. But I dont want to block the read call. Also I dont want to miss the interrupts.

Look how other drivers/programs deal with that...

Thanks,
//richard

> Regards,
> Amit.
> 
> 
> On Monday, 27 January 2014 12:22 PM, Richard Weinberger <richard@nod.at> wrote:
> Am 27.01.2014 06:37, schrieb Amit Mahadik:
>> Thanks for the reply Richard.
>>        The interrupt is not a GPIO  pin. I have read something about UIO (userspace I/O).
>> Also, I want the operation to be asynchronous. Any pointer to such mechanism will be very helpful.
> 
> Using UIO you can also catch an interrupt in userspace.
> You can have a read() which blocks till data is available.
> 
> 
> Thanks,
> //richard
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org <mailto:Kernelnewbies@kernelnewbies.org>
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 
> 

  reply	other threads:[~2014-01-27  9:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-26 12:25 Handling interrupts in spidev Amit Mahadik
2014-01-26 15:23 ` Richard Weinberger
2014-01-27  5:37   ` Amit Mahadik
2014-01-27  6:51     ` Richard Weinberger
2014-01-27  9:21       ` Amit Mahadik
2014-01-27  9:23         ` Richard Weinberger [this message]
2014-01-28 14:12           ` Amit Mahadik
2014-01-28 15:54             ` Richard Weinberger
2014-01-28 16:17               ` Vishwanath Govind
2014-02-14  6:19                 ` Nilesh Bacchewar
2014-02-14 18:49                   ` Anand Moon
2014-02-19 15:01                     ` Amit Mahadik

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=52E62585.1040001@nod.at \
    --to=richard@nod.at \
    --cc=kernelnewbies@lists.kernelnewbies.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).