From: York Sun <yorksun-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
To: Alexander Sverdlin
<alexander.sverdlin-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>,
wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Paul Bolle <pebolle-IWqWACnzNjzz+pZb47iToQ@public.gmane.org>,
Peter Korsgaard
<peter.korsgaard-ob4gmnvZ1/cAvxtiuMwx3w@public.gmane.org>
Subject: Re: [Patch v2] driver/i2c/mux: Add register based mux i2c-mux-reg
Date: Thu, 18 Jun 2015 08:08:51 -0700 [thread overview]
Message-ID: <5582DF03.7010109@freescale.com> (raw)
In-Reply-To: <5582BB1F.5050606-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
On 06/18/2015 05:35 AM, Alexander Sverdlin wrote:
> Hello!
>
> On 17/06/15 23:13, ext York Sun wrote:
>> + switch (mux->data.reg_size) {
>> + case 4:
>> + iowrite32(mux->data.values[chan], mux->data.reg);
>> + break;
>> + case 2:
>> + iowrite16(mux->data.values[chan], mux->data.reg);
>> + break;
>> + case 1:
>> + iowrite8(mux->data.values[chan], mux->data.reg);
>> + break;
>
> I'd like to see at least [optional] read-back operation after each write.
Maybe I should add ioread after each write without using an option. I want to
avoid additional option if possible.
> And if you stick with iowrite*(), maybe it desires a comment (in the Documentation/ file?),
> that write will be little-Endian, therefore BE users must take care...
I am consulting with my colleagues. If I cannot come up with a native endianess
solution, I will keep using iowrite and add a comment.
>
> Other than that it looks good to me...
>
Thanks.
York
WARNING: multiple messages have this Message-ID (diff)
From: York Sun <yorksun@freescale.com>
To: Alexander Sverdlin <alexander.sverdlin@nokia.com>, <wsa@the-dreams.de>
Cc: <linux-kernel@vger.kernel.org>, <linux-i2c@vger.kernel.org>,
Paul Bolle <pebolle@tiscali.nl>,
Peter Korsgaard <peter.korsgaard@barco.com>
Subject: Re: [Patch v2] driver/i2c/mux: Add register based mux i2c-mux-reg
Date: Thu, 18 Jun 2015 08:08:51 -0700 [thread overview]
Message-ID: <5582DF03.7010109@freescale.com> (raw)
In-Reply-To: <5582BB1F.5050606@nokia.com>
On 06/18/2015 05:35 AM, Alexander Sverdlin wrote:
> Hello!
>
> On 17/06/15 23:13, ext York Sun wrote:
>> + switch (mux->data.reg_size) {
>> + case 4:
>> + iowrite32(mux->data.values[chan], mux->data.reg);
>> + break;
>> + case 2:
>> + iowrite16(mux->data.values[chan], mux->data.reg);
>> + break;
>> + case 1:
>> + iowrite8(mux->data.values[chan], mux->data.reg);
>> + break;
>
> I'd like to see at least [optional] read-back operation after each write.
Maybe I should add ioread after each write without using an option. I want to
avoid additional option if possible.
> And if you stick with iowrite*(), maybe it desires a comment (in the Documentation/ file?),
> that write will be little-Endian, therefore BE users must take care...
I am consulting with my colleagues. If I cannot come up with a native endianess
solution, I will keep using iowrite and add a comment.
>
> Other than that it looks good to me...
>
Thanks.
York
next prev parent reply other threads:[~2015-06-18 15:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-17 21:13 [Patch v2] driver/i2c/mux: Add register based mux i2c-mux-reg York Sun
2015-06-17 21:13 ` York Sun
[not found] ` <1434575634-27977-1-git-send-email-yorksun-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-06-18 12:35 ` Alexander Sverdlin
2015-06-18 12:35 ` Alexander Sverdlin
[not found] ` <5582BB1F.5050606-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
2015-06-18 15:08 ` York Sun [this message]
2015-06-18 15:08 ` York Sun
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=5582DF03.7010109@freescale.com \
--to=yorksun-kzfg59tc24xl57midrcfdg@public.gmane.org \
--cc=alexander.sverdlin-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=pebolle-IWqWACnzNjzz+pZb47iToQ@public.gmane.org \
--cc=peter.korsgaard-ob4gmnvZ1/cAvxtiuMwx3w@public.gmane.org \
--cc=wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.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.