From: "Francis Moreau" <francis.moro@gmail.com>
To: "Jean Delvare" <khali@linux-fr.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: i2c transfers during interrupt context
Date: Thu, 30 Aug 2007 22:16:09 +0200 [thread overview]
Message-ID: <38b2ab8a0708301316h45d83d9bkf5ba9a47e7b7eb00@mail.gmail.com> (raw)
In-Reply-To: <20070830173232.270c6f70@hyperion.delvare>
Bonjour Jean !
On 8/30/07, Jean Delvare <khali@linux-fr.org> wrote:
> Non. Tu n'as pas le droit de dormir dans un gestionnaire
> d'interruption, et la majorité des pilotes I2C dorment pendant les
> transferts.
>
Ok, c'est ce que je voulais savoir. Peut etre que cette regle pourrait
etre renforce par un "might_sleep()" ajoute dans les fonctions de
transfert de l'i2c-core ?
D'ailleurs pourquoi certains pilotes i2c ne dorment pas pendant les
transferts ? Qu'ont ils de different ?
> Si tu as besoin de faire ce genre de chose il faut typiquement passer
> par une workqueue.
Malheureusement dans certains cas la workqueue est schedulee trop
tardivement et le message i2c n'arrive pas a temps au device.
Une autre question, j'espere que je n'abuse pas: Comment peut on
changer la frequence du bus i2c depuis un driver ?
Merci pour tes reponses.
--
Francis
next prev parent reply other threads:[~2007-08-30 20:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <38b2ab8a0708300311x5479effn5999ba118221a47f@mail.gmail.com>
2007-08-30 13:55 ` Francis Moreau
2007-08-30 15:32 ` Jean Delvare
2007-08-30 20:16 ` Francis Moreau [this message]
2007-08-30 20:47 ` Jean Delvare
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=38b2ab8a0708301316h45d83d9bkf5ba9a47e7b7eb00@mail.gmail.com \
--to=francis.moro@gmail.com \
--cc=khali@linux-fr.org \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®