All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Patch: fschmd-watchdog-v2.patch
Date: Thu, 16 Oct 2008 14:52:34 +0000	[thread overview]
Message-ID: <20081016165234.43312f22@hyperion.delvare> (raw)
In-Reply-To: <487F4DDE.7040909@hhs.nl>

Hi Hans,

On Thu, 16 Oct 2008 16:02:22 +0200, Hans de Goede wrote:
> Jean Delvare wrote:
> > As a side note, I wonder if it would make sense to have a separate lock
> > for the watchdog struct members. fschmd_update_device() can hold
> > data->update_lock for a significant amount of time, and you probably
> > don(t want to delay watchdog_timer() too much.
> > 
> 
> Hmm, question: can one do multiple i2c_smbus_read/write_byte_data() requests 
> and will the i2c core then do locking to serialize requests?

Yes, i2c-core serializes transaction requests that go to each i2c
adapter, using the i2c_adapter->bus_lock mutex. This can be seen in
i2c-core.c, in functions i2c_smbus_xfer() and i2c_transfer().

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

      parent reply	other threads:[~2008-10-16 14:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-17 13:49 [lm-sensors] Patch: fschmd-watchdog-v2.patch Hans de Goede
2008-08-18 14:32 ` Jean Delvare
2008-10-16 14:02 ` Hans de Goede
2008-10-16 14:52 ` Jean Delvare [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=20081016165234.43312f22@hyperion.delvare \
    --to=khali@linux-fr.org \
    --cc=lm-sensors@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.