From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: Rayyan Ansari <rayyan@ansari.sh>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-iio@vger.kernel.org, Bjorn Andersson <andersson@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jonathan Cameron <jic23@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
linux-kernel@vger.kernel.org,
"Rafael J. Wysocki" <rafael@kernel.org>,
Robert Yang <decatf@gmail.com>, Rob Herring <robh@kernel.org>,
Sean Rhodes <sean@starlabs.systems>
Subject: Re: [PATCH 2/3] iio: accel: kxcjk-1013: Add support for KX022-1020
Date: Thu, 24 Oct 2024 17:28:14 +0300 [thread overview]
Message-ID: <ZxpZfgsf-KldiX4w@black.fi.intel.com> (raw)
In-Reply-To: <823ce598-dffd-4983-bffa-32559558235d@redhat.com>
On Mon, Jul 15, 2024 at 10:30:46AM +0200, Hans de Goede wrote:
> On 7/14/24 7:33 PM, Rayyan Ansari wrote:
> > Add compatible for the KX022-1020 accelerometer [1] using the
> > KX022-1023 [2] register map as both have an identical i2c interface.
> >
> > [1]: https://kionixfs.azureedge.net/en/datasheet/KX022-1020%20Specifications%20Rev%2012.0.pdf
> > [2]: https://kionixfs.azureedge.net/en/datasheet/KX023-1025%20Specifications%20Rev%2012.0.pdf
> >
> > Signed-off-by: Rayyan Ansari <rayyan@ansari.sh>
>
> Thanks, patch looks good to me:
>
> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Note, this patch broke kx231025 case...
> > KXCJ91008,
> > KXTJ21009,
> > KXTF9,
> > + KX0221020,
> > KX0231025,
> > KX_MAX_CHIPS /* this must be last */
> > };
...because this enum is used of ODR startup timeout settings which
are all moved now to be 0 and new ID inherited the timeouts from
the KX0231025 case.
Since I have been looking into the driver, and I have a few patches
coming, I propose to do the following (as it's still ODR data being
missed) to:
1) revert this one;
2) apply my set;
3) re-apply this with the fixed data.
Another approach can be done (but probably not by me) is to move the ID
to the proper location, add ODR startup timeouts or explain why it's not
needed and then apply my patch.
But, taking into account that we are almost at -rc5 and I want my stuff
not to be postponed, I tend to follow the first approach.
Opinions, comments?
P.S. FWIW, my set will include switching this driver to use chip_info
structure so the similar mistakes won't happen again, that's also why
I prefer the first approach I listed above.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2024-10-24 14:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-14 17:33 [PATCH 0/3] KX022-1020 accel support + inertial sensors on msm8226-microsoft Rayyan Ansari
2024-07-14 17:33 ` [PATCH 1/3] dt-bindings: iio: kionix,kxcjk1013: Document KX022-1020 Rayyan Ansari
2024-07-15 8:59 ` Krzysztof Kozlowski
2024-07-14 17:33 ` [PATCH 2/3] iio: accel: kxcjk-1013: Add support for KX022-1020 Rayyan Ansari
2024-07-15 8:30 ` Hans de Goede
2024-10-24 14:28 ` Andy Shevchenko [this message]
2024-10-24 16:34 ` Jonathan Cameron
2024-10-25 18:33 ` Andy Shevchenko
2024-07-14 17:33 ` [PATCH 3/3] ARM: dts: qcom: msm8226-microsoft-common: Add inertial sensors Rayyan Ansari
2024-07-15 8:29 ` Konrad Dybcio
2024-07-20 13:12 ` [PATCH 0/3] KX022-1020 accel support + inertial sensors on msm8226-microsoft Jonathan Cameron
2024-08-15 20:40 ` (subset) " Bjorn Andersson
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=ZxpZfgsf-KldiX4w@black.fi.intel.com \
--to=andy.shevchenko@gmail.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=decatf@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=hdegoede@redhat.com \
--cc=jic23@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=rayyan@ansari.sh \
--cc=robh@kernel.org \
--cc=sean@starlabs.systems \
/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).