[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YENal0wZTYvKNN+6@jack.zhora.eu>
Date: Sat, 6 Mar 2021 12:33:59 +0200
From: Andi Shyti <andi@...zian.org>
To: Caleb Connolly <caleb@...nolly.tech>
Cc: andi@...zian.org, Dmitry Torokhov <dmitry.torokhov@...il.com>,
Rob Herring <robh@...nel.org>,
~postmarketos/upstreaming@...ts.sr.ht, phone-devel@...r.kernel.org,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] input: s6sy761: fix coordinate read bit shift
Hi Caleb,
On Fri, Mar 05, 2021 at 06:58:10PM +0000, Caleb Connolly wrote:
> The touch coordinate register contains the following:
>
> byte 3 byte 2 byte 1
> +--------+--------+ +-----------------+ +-----------------+
> | | | | | | |
> | X[3:0] | Y[3:0] | | Y[11:4] | | X[11:4] |
> | | | | | | |
> +--------+--------+ +-----------------+ +-----------------+
>
> Bytes 2 and 1 need to be shifted left by 4 bits, the least significant
> nibble of each is stored in byte 3. Currently they are only
> being shifted by 3 causing the reported coordinates to be incorrect.
>
> This matches downstream examples, and has been confirmed on my
> device (OnePlus 7 Pro).
>
> Fixes: 0145a7141e59 ("Input: add support for the Samsung S6SY761
> touchscreen")
> Signed-off-by: Caleb Connolly <caleb@...nolly.tech>
Reviewed-by: Andi Shyti <andi@...zian.org>
Thanks,
Andi
Powered by blists - more mailing lists