From: Jean Delvare <khali@linux-fr.org>
To: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: David Brownell <david-b@pacbell.net>,
linux-mips@linux-mips.org, mgreer@mvista.com,
rtc-linux@googlegroups.com, Atsushi Nemoto <anemo@mba.ocn.ne.jp>,
linux-kernel@vger.kernel.org, i2c@lm-sensors.org, ab@mycable.de,
Alessandro Zummo <alessandro.zummo@towertech.it>
Subject: Re: [i2c] [RFC][PATCH 4/4] RTC: SMBus support for the M41T80,
Date: Fri, 9 May 2008 23:21:46 +0200 [thread overview]
Message-ID: <20080509232146.18638986@hyperion.delvare> (raw)
In-Reply-To: <Pine.LNX.4.55.0805092127410.10552@cliff.in.clinika.pl>
Hi Maciej,
On Fri, 9 May 2008 21:55:38 +0100 (BST), Maciej W. Rozycki wrote:
> > This is reimplementing i2c_smbus_write_i2c_block_data().
>
> Where does it come from? I fail to see this type of transfer being
> defined anywhere in the SMBus spec.
It is indeed not.
> I checked the spec before I referred
> to the implementation in our I2C core and I hope you agree I may not have
> expected any extensions beyond what the SMBus spec defines.
The "smbus" in these function names are more about "what SMBus
controllers usually can do" than about the SMBus specification. But I
admit you couldn't guess.
> That written, you are of course correct WRT the reimplementation and I am
> eager to remove it -- thanks for the point. I'll skip all your other
> comments related as obviously implied by this change.
>
> Given the function and friends make use of apparently a non-standard
> SMBus transfer, I think they should be called differently, perhaps
> i2c_smbusext_write_i2c_block_data(), etc. or suchlike.
This was an option when the functions where introduced 9 years ago.
But now that it was done, renaming them would cause even more
confusion, I think. I would be fine with adding comments in i2c-core.c
or improving Documentation/i2c/smbus-protocol to make it more obious,
though.
On a related note, you will notice that the other i2c_smbus_* functions
do not follow the naming of SMBus transactions. Again that's something
I regret but I feel that changing the names now would cause a lot of
confusion amongst developers, so I'm not doing it.
> > Mixing code cleanups with functional changes is a Bad Idea (TM).
>
> I am happy to bother you with a separate patch including style fixes. I
> can even create a handful of them, grouping functionally consistent
> changes.
Just one patch should be enough, if I agree with all the changes. You
might make a separate patch with the things I may not agree with, so
that you don't have to cherry-revert them if I indeed don't agree, and
we just merge them if I do agree.
> > > dev_info(&client->dev,
> > > - "chip found, driver version " DRV_VERSION "\n");
> > > + "%s chip found, driver version " DRV_VERSION "\n",
> > > + client->name);
> >
> > Incorrect change, dev_info() already includes the chip name.
>
> My system must be a notable exception then, as this change modifies
> output:
>
> rtc-m41t80 1-0068: chip found, driver version 0.05
>
> to:
>
> rtc-m41t80 1-0068: m41t81 chip found, driver version 0.05
>
> here.
My bad, for some reason I thought that dev_printk() included the device
name but it in fact includes the driver name. I was wrong, just ignore
me.
--
Jean Delvare
next prev parent reply other threads:[~2008-05-09 21:21 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-07 8:20 [RFC][PATCH 4/4] RTC: SMBus support for the M41T80, David Brownell
[not found] ` <200805070120.03821.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-05-07 22:28 ` Maciej W. Rozycki
[not found] ` <Pine.LNX.4.55.0805072226180.25644-j8+e0ZhYU2SU0huXySazC6sMm+1xrEX8@public.gmane.org>
2008-05-07 23:25 ` David Brownell
[not found] ` <200805071625.20430.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-05-08 7:46 ` Jean Delvare
[not found] ` <20080508094620.5e6c973b-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-05-09 8:39 ` David Brownell
2008-05-09 0:43 ` Maciej W. Rozycki
2008-05-09 8:08 ` [i2c] " Jean Delvare
2008-05-09 20:55 ` Maciej W. Rozycki
2008-05-09 21:21 ` Jean Delvare [this message]
2008-05-10 2:21 ` Maciej W. Rozycki
2008-05-10 6:53 ` Jean Delvare
2008-05-10 16:36 ` David Brownell
2008-05-20 9:20 ` Jean Delvare
2008-05-09 9:18 ` David Brownell
2008-05-09 21:22 ` Maciej W. Rozycki
2008-05-10 7:08 ` Jean Delvare
2008-05-09 14:17 ` Atsushi Nemoto
2008-05-08 7:34 ` [RFC][PATCH 4/4] RTC: SMBus support for the M41T80 Jean Delvare
[not found] ` <20080508093456.340a42b0-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-05-09 19:18 ` Maciej W. Rozycki
[not found] ` <Pine.LNX.4.55.0805091917370.10552-j8+e0ZhYU2SU0huXySazC6sMm+1xrEX8@public.gmane.org>
2008-05-09 20:27 ` Jean Delvare
2008-05-10 1:35 ` Maciej W. Rozycki
2008-05-10 8:35 ` Jean Delvare
2008-05-11 1:59 ` Maciej W. Rozycki
2008-05-11 7:40 ` Jean Delvare
2008-05-12 2:45 ` Atsushi Nemoto
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=20080509232146.18638986@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=ab@mycable.de \
--cc=alessandro.zummo@towertech.it \
--cc=anemo@mba.ocn.ne.jp \
--cc=david-b@pacbell.net \
--cc=i2c@lm-sensors.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=macro@linux-mips.org \
--cc=mgreer@mvista.com \
--cc=rtc-linux@googlegroups.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