linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: "Mark A. Greer" <mgreer@mvista.com>
Cc: Andrey Volkov <avolkov@varma-el.com>,
	adi@hexapodia.org, lm-sensors@lm-sensors.org,
	linux-kernel@vger.kernel.org
Subject: Re: [RFC] i2c: Combined ST m41txx i2c rtc chip driver
Date: Thu, 19 Jan 2006 08:25:41 +0100	[thread overview]
Message-ID: <20060119082541.17aff81f.khali@linux-fr.org> (raw)
In-Reply-To: <20060118220600.GF15714@mag.az.mvista.com>

Hi Mark, Andrey,

> On Wed, Jan 11, 2006 at 10:03:24PM +0300, Andrey Volkov wrote:
> <snip>
> > P.S. Jean, "i2c_master_send vs i2c_smbus_write_byte_data"
> > problem still open.
> > Could you made executive decision about it?
> 
> I'm taking the roaring silence to mean nobody really cares so I don't
> really have a problem going your way.  I'll submit a patch and if it
> gets pooh-pooh'd, we can always change it back.

Sorry for the very late answer, I hadn't realized you were waiting for
me.

The I2C vs. SMBus interface choice is yours (as long as the device
supports both). I2C brings performance, SMBus gives you compatibility.
Depending on the device you are writing a driver for, compatibility may
or may not matter. For example, for a hardware monitoring chip driver,
we always go for SMBus, because these chips are almost always connected
to non-I2C SMBus masters. But RTC drivers are typically not used on
mainstream PC motherboards so the compatibility may not be needed.

So, as Mark says, you should just go with the code you have right now.
If it is SMBus and someone finds it too slow, that person can always
add I2C access afterwards. OTOH if it is I2C and someone ever needs
compatibility with a non-I2C master, that person gets to add the code.
Note that it is perfectly acceptable to have *both* I2C and SMBus
access methods in the same driver, if compatibility is wanted but the
performance gain using I2C is significant. Of course it means more code
in the driver, but as long as both access methods work and are properly
maintained, it's fine with me.

Thanks,
-- 
Jean Delvare

  reply	other threads:[~2006-01-19  7:24 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-14 13:50 [PATCH 1/1] Added support of ST m41t85 rtc chip Andrey Volkov
2005-11-15  0:41 ` Andrew Morton
2005-11-15 21:24   ` Andrey Volkov
2005-11-15 20:52 ` Jean Delvare
2005-11-15 21:48   ` Andrey Volkov
2005-11-16  3:15     ` Mark A. Greer
2005-11-16 14:50       ` Andrey Volkov
2005-11-16 18:55       ` Andy Isaacson
2005-11-16 22:24         ` Mark A. Greer
2005-11-18 20:35           ` Mark A. Greer
2005-11-21 12:35             ` Andrey Volkov
2005-12-06 21:18               ` Mark A. Greer
2005-11-16  2:57   ` Mark A. Greer
2005-11-16 14:45     ` Andrey Volkov
2005-11-16 15:19       ` Jean Delvare
2005-11-16 16:43         ` Andrey Volkov
2005-11-16 21:36           ` Mark A. Greer
2005-11-17  9:20           ` Jean Delvare
2005-11-16 21:24         ` Mark A. Greer
2005-12-19 21:03     ` [RFC] i2c: Combined ST m41txx i2c rtc chip driver (was: [PATCH 1/1] Added support of ST m41t85 rtc chip) Mark A. Greer
2005-12-19 21:06       ` Mark A. Greer
2005-12-20 10:05       ` [RFC] i2c: Combined ST m41txx i2c rtc chip driver Andrey Volkov
2005-12-21 21:25         ` Mark A. Greer
     [not found]         ` <20060111000912.GA11471@mag.az.mvista.com>
     [not found]           ` <43C4D275.2070505@varma-el.com>
     [not found]             ` <20060111161954.GB6405@mag.az.mvista.com>
2006-01-11 19:03               ` Andrey Volkov
2006-01-18 22:06                 ` Mark A. Greer
2006-01-19  7:25                   ` Jean Delvare [this message]
2006-01-26  2:01                     ` Mark A. Greer
2006-01-26 20:50                       ` Mark A. Greer

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=20060119082541.17aff81f.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=adi@hexapodia.org \
    --cc=avolkov@varma-el.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm-sensors@lm-sensors.org \
    --cc=mgreer@mvista.com \
    /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).