* [BISECTED] input: ads7846: touchscreen broken on Nokia 770
@ 2022-02-27 18:50 Aaro Koskinen
2022-03-19 15:13 ` Aaro Koskinen
0 siblings, 1 reply; 3+ messages in thread
From: Aaro Koskinen @ 2022-02-27 18:50 UTC (permalink / raw)
To: Dmitry Torokhov, Oleksij Rempel, linux-input, linux-kernel
Hi,
I noticed touchscreen does not work anymore on Nokia 770:
[ 2.131011] ads7846 spi2.0: touchscreen, irq 175
[ 2.200622] input: ADS7846 Touchscreen as /devices/platform/omap_uwire/spi_master/spi2/spi2.0/input/input0
(then touching the screen:)
[ 52.316894] ads7846 spi2.0: spi_sync --> -22
[ 52.336944] ads7846 spi2.0: spi_sync --> -22
bisected this to:
commit 9c9509717b53e701469493a8d87ed42c7d782502
Author: Oleksij Rempel <o.rempel@pengutronix.de>
Date: Wed Nov 11 16:39:05 2020 -0800
Input: ads7846 - convert to full duplex
It seems it's failing on SPI_CONTROLLER_HALF_DUPLEX check in
__spi_validate(). The controller used on this board (spi-omap-uwire)
sets that flag. How ads7846 is now supposed to work in that case after
this conversion?
A.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BISECTED] input: ads7846: touchscreen broken on Nokia 770
2022-02-27 18:50 [BISECTED] input: ads7846: touchscreen broken on Nokia 770 Aaro Koskinen
@ 2022-03-19 15:13 ` Aaro Koskinen
2022-03-21 4:40 ` Dmitry Torokhov
0 siblings, 1 reply; 3+ messages in thread
From: Aaro Koskinen @ 2022-03-19 15:13 UTC (permalink / raw)
To: Dmitry Torokhov, Oleksij Rempel, linux-input, linux-kernel
Hi,
On Sun, Feb 27, 2022 at 08:50:39PM +0200, Aaro Koskinen wrote:
> I noticed touchscreen does not work anymore on Nokia 770:
>
> [ 2.131011] ads7846 spi2.0: touchscreen, irq 175
> [ 2.200622] input: ADS7846 Touchscreen as /devices/platform/omap_uwire/spi_master/spi2/spi2.0/input/input0
>
> (then touching the screen:)
>
> [ 52.316894] ads7846 spi2.0: spi_sync --> -22
> [ 52.336944] ads7846 spi2.0: spi_sync --> -22
>
> bisected this to:
>
> commit 9c9509717b53e701469493a8d87ed42c7d782502
> Author: Oleksij Rempel <o.rempel@pengutronix.de>
> Date: Wed Nov 11 16:39:05 2020 -0800
>
> Input: ads7846 - convert to full duplex
>
> It seems it's failing on SPI_CONTROLLER_HALF_DUPLEX check in
> __spi_validate(). The controller used on this board (spi-omap-uwire)
> sets that flag. How ads7846 is now supposed to work in that case after
> this conversion?
Any comments?
The touchscreen works after reverting the following patches:
6965eece2a89 ("Input: ads7846 - convert to one message")
9c9509717b53 ("Input: ads7846 - convert to full duplex")
A.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BISECTED] input: ads7846: touchscreen broken on Nokia 770
2022-03-19 15:13 ` Aaro Koskinen
@ 2022-03-21 4:40 ` Dmitry Torokhov
0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Torokhov @ 2022-03-21 4:40 UTC (permalink / raw)
To: Aaro Koskinen; +Cc: Oleksij Rempel, linux-input, linux-kernel
Hi Aaro,
On Sat, Mar 19, 2022 at 05:13:46PM +0200, Aaro Koskinen wrote:
> Hi,
>
> On Sun, Feb 27, 2022 at 08:50:39PM +0200, Aaro Koskinen wrote:
> > I noticed touchscreen does not work anymore on Nokia 770:
> >
> > [ 2.131011] ads7846 spi2.0: touchscreen, irq 175
> > [ 2.200622] input: ADS7846 Touchscreen as /devices/platform/omap_uwire/spi_master/spi2/spi2.0/input/input0
> >
> > (then touching the screen:)
> >
> > [ 52.316894] ads7846 spi2.0: spi_sync --> -22
> > [ 52.336944] ads7846 spi2.0: spi_sync --> -22
> >
> > bisected this to:
> >
> > commit 9c9509717b53e701469493a8d87ed42c7d782502
> > Author: Oleksij Rempel <o.rempel@pengutronix.de>
> > Date: Wed Nov 11 16:39:05 2020 -0800
> >
> > Input: ads7846 - convert to full duplex
> >
> > It seems it's failing on SPI_CONTROLLER_HALF_DUPLEX check in
> > __spi_validate(). The controller used on this board (spi-omap-uwire)
> > sets that flag. How ads7846 is now supposed to work in that case after
> > this conversion?
>
> Any comments?
>
> The touchscreen works after reverting the following patches:
>
> 6965eece2a89 ("Input: ads7846 - convert to one message")
> 9c9509717b53 ("Input: ads7846 - convert to full duplex")
I do not believe we should simply revert the patches as that would
penalize systems with nicer hardware, so my preference would be to see
if we could support half duplex controllers within the new driver
structure.
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-21 4:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-27 18:50 [BISECTED] input: ads7846: touchscreen broken on Nokia 770 Aaro Koskinen
2022-03-19 15:13 ` Aaro Koskinen
2022-03-21 4:40 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox