All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Gobbi <rodrigo.gobbi.7@gmail.com>
To: Jonathan Cameron <jic23@kernel.org>,
	Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
	~lkcamp/patches@lists.sr.ht, linux-iio@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] iio: adc: spear_adc: mask SPEAR_ADC_STATUS channel and avg sample before setting register
Date: Sun, 27 Jul 2025 21:45:32 -0300	[thread overview]
Message-ID: <110ae613-e881-4c75-8edc-ac99df0cf061@gmail.com> (raw)
In-Reply-To: <20250724134758.43df3ccc@jic23-huawei>

On 7/19/25 09:10, Jonathan Cameron wrote:
> On Thu, 17 Jul 2025 19:13:49 -0300
> Rodrigo Gobbi <rodrigo.gobbi.7@gmail.com> wrote:
> 
>> avg sample info is a bit field coded inside the following
>> bits: 5,6,7 and 8 of a device status register.
>> 
>> channel num info the same, but over bits: 1, 2 and 3.
>> 
>> mask both values in order to avoid touching other register bits,
>> since the first info (avg sample), came from dt.
>> 
> I read this as meaning this is a hardening change against bad DT rather
> than a bug fix?
> 
> As such applied for next cycle to the testing branch of iio.git.
> 
> Thanks,
> 
> Jonathan

Sorry for the late response, yes, that’s correct — this is a hardening change.

On 7/24/25 09:47, Jonathan Cameron wrote:
> On Wed, 23 Jul 2025 16:49:24 +0300
> Andy Shevchenko <andriy.shevchenko@intel.com> wrote:
> 
>> On Thu, Jul 17, 2025 at 07:13:49PM -0300, Rodrigo Gobbi wrote:
>> > avg sample info is a bit field coded inside the following
>> > bits: 5,6,7 and 8 of a device status register.
>> > 
>> > channel num info the same, but over bits: 1, 2 and 3.
>> > 
>> > mask both values in order to avoid touching other register bits,
>> > since the first info (avg sample), came from dt.  
>> 
>> Is there any issue with a Shift key?
> Sprinkled some capitals.
>> 

I'll make sure to pay more attention to that in future patches.
Tks for adjusting it, @Jonathan. 
Best regards to all!


      reply	other threads:[~2025-07-28  0:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-17 22:13 [PATCH v3] iio: adc: spear_adc: mask SPEAR_ADC_STATUS channel and avg sample before setting register Rodrigo Gobbi
2025-07-17 22:49 ` David Lechner
2025-07-19 12:10 ` Jonathan Cameron
2025-07-23 13:49 ` Andy Shevchenko
2025-07-24 12:47   ` Jonathan Cameron
2025-07-28  0:45     ` Rodrigo Gobbi [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=110ae613-e881-4c75-8edc-ac99df0cf061@gmail.com \
    --to=rodrigo.gobbi.7@gmail.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=~lkcamp/patches@lists.sr.ht \
    /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.