All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Oleksij Rempel <o.rempel@pengutronix.de>,
	 Janusz Krzysztofik <jmkrzyszt@gmail.com>,
	Tony Lindgren <tony@atomide.com>,
	 Linus Walleij <linusw@kernel.org>,
	linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
	 linux-omap@vger.kernel.org
Subject: Re: [PATCH v2 1/2] Input: ads7846 - restore half-duplex support
Date: Mon, 4 May 2026 21:45:22 -0700	[thread overview]
Message-ID: <afl1zxCOyzd-al-N@google.com> (raw)
In-Reply-To: <aeZ_M7jjisCExva8@darkstar.musicnaut.iki.fi>

On Mon, Apr 20, 2026 at 10:32:03PM +0300, Aaro Koskinen wrote:
> Hi,
> 
> On Sun, Apr 19, 2026 at 05:13:56PM -0700, Dmitry Torokhov wrote:
> > > +static void ads7846_halfd_read_state(struct ads7846 *ts)
> > > +{
> > > +	struct ads7846_packet *packet = ts->packet;
> > > +	int msg_idx = 0;
> > > +
> > > +	packet->ignore = false;
> > > +
> > > +	while (msg_idx < ts->msg_count) {
> > > +		int error;
> > > +
> > > +		ads7846_wait_for_hsync(ts);
> > > +
> > > +		error = spi_sync(ts->spi, &ts->msg[msg_idx]);
> > > +		if (error) {
> > > +			dev_err_ratelimited(&ts->spi->dev, "spi_sync --> %d\n",
> > > +					    error);
> > > +			packet->ignore = true;
> > > +			return;
> > 
> > Sashiko recommends trying to power down ADC on errors, what do you
> > think?
> 
> If we want to re-work error handling, then I guess it should be done the
> same way for both full and half-duplex modes, and belongs to a separate
> change set. This code has been in use quite a while, maybe 20 years,
> and I haven't seen those errors in real use anyway, and AFAIK there
> hasn't been any bug/problem reports by others either.
> 
> Maybe it wasn't so clearly stated in the commit message, but the patch
> just restores the old code verbatim that was working fine for half-duplex
> mode.

Fair enough, applied.

Thanks.

-- 
Dmitry

  reply	other threads:[~2026-05-05  4:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-19 16:18 [PATCH v2 0/2] Input/omap1: fix touchscreen functionality on Nokia 770 Aaro Koskinen
2026-04-19 16:18 ` [PATCH v2 1/2] Input: ads7846 - restore half-duplex support Aaro Koskinen
2026-04-20  0:13   ` Dmitry Torokhov
2026-04-20 19:32     ` Aaro Koskinen
2026-05-05  4:45       ` Dmitry Torokhov [this message]
2026-04-19 16:18 ` [PATCH v2 2/2] Input: ads7846 - fix up the pendown GPIO setup on Nokia 770 Aaro Koskinen
2026-04-20  0:06   ` Dmitry Torokhov
2026-04-20 19:43     ` Aaro Koskinen
2026-04-19 20:10 ` [PATCH v2 0/2] Input/omap1: fix touchscreen functionality " Linus Walleij

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=afl1zxCOyzd-al-N@google.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=aaro.koskinen@iki.fi \
    --cc=jmkrzyszt@gmail.com \
    --cc=linusw@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=o.rempel@pengutronix.de \
    --cc=tony@atomide.com \
    /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.