From: Romain TISSERAND <romain.tisserand@gmail.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: "David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
sashiko-reviews@lists.linux.dev
Subject: Re: [PATCH 4/4] iio: adc: Add the PocketGo S30 analog stick MCU
Date: Sat, 28 Nov 2026 17:29:11 +0100 [thread overview]
Message-ID: <20261128162911.2534778-1-romain.tisserand@gmail.com> (raw)
In-Reply-To: <20261128023333.5873929d@jic23-hlaptop>
Hi Jonathan,
> I'd guess this is swapping ends of the pot to detect shorts or broken
> connections? That has to be on consecutive samples.
Most likely a transfer check: the MCU sends each value followed by its
one's complement. They come from consecutive samples, as you say: they
differ by a count or two at rest and more while the stick moves fast.
The comment says so; I'll make it clearer in v2.
> Does this actually happen? It is fairly unusual for a recv to fail.
I have not seen a short read in testing; the retry exists for the
complement mismatch. In v2 a short read will be a plain error, no
retry.
The rest (loop variables, state in iio_priv() instead of drvdata,
named initializer) will be in v2, whichever subsystem it ends up in
(see my answer on the cover letter).
Thanks,
Romain
next prev parent reply other threads:[~2026-11-28 16:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 1:26 [PATCH 0/4] iio: adc: Add the Miyoo A30 and PocketGo S30 analog stick MCUs Romain TISSERAND
2026-11-27 1:26 ` [PATCH 1/4] dt-bindings: iio: adc: Add the Miyoo A30 analog stick MCU Romain TISSERAND
2026-11-27 1:26 ` [PATCH 2/4] " Romain TISSERAND
2026-11-27 8:47 ` Uwe Kleine-König
2026-11-28 2:21 ` Jonathan Cameron
2026-11-27 1:26 ` [PATCH 3/4] dt-bindings: iio: adc: Add the PocketGo S30 " Romain TISSERAND
2026-11-27 1:26 ` [PATCH 4/4] " Romain TISSERAND
2026-11-28 2:33 ` Jonathan Cameron
2026-11-28 16:29 ` Romain TISSERAND [this message]
2026-11-27 11:49 ` [PATCH 0/4] iio: adc: Add the Miyoo A30 and PocketGo S30 analog stick MCUs Andy Shevchenko
2026-11-28 2:11 ` Jonathan Cameron
2026-11-28 16:29 ` Romain TISSERAND
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=20261128162911.2534778-1-romain.tisserand@gmail.com \
--to=romain.tisserand@gmail.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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
all inboxes | Powered by JetHome®