linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Questions about i2c_transfer() usage in timer context...
@ 2012-02-20 13:01 Stephane Grosjean
       [not found] ` <4F424440.300-g4cQ8AsIbFbL9ATBNaCtXw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Stephane Grosjean @ 2012-02-20 13:01 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA

Hi,

I'm facing a deadlock regarding a timer callback which is only calling 
i2c_transfer(), and I wonder if this comes from that call: I first 
googled and found that i2c_transfer() may sleep (which is forbidden in 
my timer callback) but when I have a look the beginning of the function, 
it starts to check if it is in any atomic context, before trying to 
acquire  a lock...

So I'm afraid I'm lost and I hope someone will be able to understand to 
that question: might i2c_transfer() be used in a timer callback or 
should I handle my periodic call to i2c_tranfer() by means of a delayed 
work?

Thanks for your reply,

Regards,

Stéphane

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-20 14:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-20 13:01 Questions about i2c_transfer() usage in timer context Stephane Grosjean
     [not found] ` <4F424440.300-g4cQ8AsIbFbL9ATBNaCtXw@public.gmane.org>
2012-02-20 13:11   ` Jean Delvare
     [not found]     ` <20120220141112.1e633beb-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2012-02-20 13:19       ` Stephane Grosjean
     [not found]     ` <CADkCAusvXZC5Ju2oNbBgi6aZO2E9upoDPbtFqTbrbBhd8eCu8A@mail.gmail.com>
     [not found]       ` <CADkCAusvXZC5Ju2oNbBgi6aZO2E9upoDPbtFqTbrbBhd8eCu8A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-20 14:13         ` Jean Delvare

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).