From: "Paller, Kim Seer" <KimSeer.Paller@analog.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>,
"Hennerich, Michael" <Michael.Hennerich@analog.com>
Cc: linux-iio <linux-iio@vger.kernel.org>,
Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>
Subject: RE: [PATCH v9 2/2] iio: adc: max14001: New driver
Date: Tue, 11 Jul 2023 06:55:28 +0000 [thread overview]
Message-ID: <fe0cd5348f864a6392a7e0e5ca93bec5@analog.com> (raw)
In-Reply-To: <CAHp75VegvKFUXoJoJnuXstJa_L66M2Ah9yf1aEQ8-ET1QczDtQ@mail.gmail.com>
> -----Original Message-----
> From: Andy Shevchenko <andy.shevchenko@gmail.com>
> Sent: Monday, July 10, 2023 6:50 PM
> To: Paller, Kim Seer <KimSeer.Paller@analog.com>; Hennerich, Michael
> <Michael.Hennerich@analog.com>
> Cc: linux-iio <linux-iio@vger.kernel.org>; Jonathan Cameron
> <jic23@kernel.org>; Lars-Peter Clausen <lars@metafoo.de>
> Subject: Re: [PATCH v9 2/2] iio: adc: max14001: New driver
>
> [External]
>
> Return to the public space of the discussion.
Oh late to notice, I had mistakenly set my email client to "quick reply"
instead of 'reply to all'.
> On Mon, Jul 10, 2023 at 11:17 AM Paller, Kim Seer
> <KimSeer.Paller@analog.com> wrote:
> > > From: Andy Shevchenko <andy.shevchenko@gmail.com>
> > > Sent: Monday, July 10, 2023 3:37 PM
> > > On Mon, Jul 10, 2023 at 7:27 AM Kim Seer Paller
> <kimseer.paller@analog.com>
> > > wrote:
>
> ...
>
> > > > V8 -> V9: Changed SPI buffer data types to __le16,
> > >
> > > Why?
> >
> > Based on the previous comments, I have taken the __le16 data type
> > into account. The device seems to function the same as the __be data type.
> > I have not yet sure but technically speaking, do I have to retain the data
> > types as __be16 based on the overall operation?
>
> If the type is __be, the *be*() APIs should be used, otherwise __le and *le*().
I became a little confused with the previous discussions, will make the
necessary changes accordingly.
> > > Obviously it's incorrect now even more than before.
> > > The types are defined as __le, while ops are against __be.
> >
> > Would it be right to implement this by reverting the types back to __be?
> > What other considerations could there be?
>
> First of all, you need to document what you are doing with these bit
> twiddlers. Based on the clear understanding by everyone we can suggest
> what data type(s) suits the best.
>
> Hence instead of v10, reply with a draft of the comment in the code (I
> have asked before) that explains these bit twiddlers.
In patch v9, regarding with my bit arrangement comments, is it somewhat correct
or do I need to totally replace it?
I am not yet familiar with the terminologies, so I hope you can provide some
suggestions and I'll definitely send the draft first.
Thanks,
Kim
next prev parent reply other threads:[~2023-07-11 6:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-10 4:27 [PATCH v9 1/2] dt-bindings: iio: adc: add max14001 Kim Seer Paller
2023-07-10 4:27 ` [PATCH v9 2/2] iio: adc: max14001: New driver Kim Seer Paller
2023-07-10 7:36 ` Andy Shevchenko
2023-07-10 7:38 ` Andy Shevchenko
[not found] ` <11c30a02df784ca78be271fdf9190dad@analog.com>
2023-07-10 10:49 ` Andy Shevchenko
2023-07-11 6:55 ` Paller, Kim Seer [this message]
2023-07-11 9:08 ` Andy Shevchenko
2023-07-16 13:42 ` Jonathan Cameron
2023-07-20 18:24 ` Jonathan Cameron
2025-08-23 1:50 ` Marcelo Schmitt
2025-08-23 15:15 ` Marcelo Schmitt
2025-08-26 9:24 ` Paller, Kim Seer
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=fe0cd5348f864a6392a7e0e5ca93bec5@analog.com \
--to=kimseer.paller@analog.com \
--cc=Michael.Hennerich@analog.com \
--cc=andy.shevchenko@gmail.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@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