[PATCH 2/4] s3c24xx_ts: report touch only when stylus is down
Vasily Khoruzhick
anarsoul at gmail.com
Fri Feb 19 05:02:10 EST 2010
Hi Dmitry,
В сообщении от 19 февраля 2010 11:17:55 автор Dmitry Torokhov написал:
> I do not think this is right. Here you reset sampling data regardless
> of whether you got the right number of samples or not. You should repeat
> s3c_adc_start only if you got (1 << ts.shift) samples. But I think I see
> why touchpad may stop reporintg sometimes - if timer fires before you
> get the needed number of samples nothing will happen as timer is not
> gettign rearmed.
Problem is driver reports "stylus down" event when stylus is already up,
anyway I agree that samples should not be discarded.
> > } else {
> >
> > ts.count = 0;
>
> I also think this branch is missing ts.xp = ts.yp = 0;
Ok.
Fixed version is in attachment
Thanks for review.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-s3c24xx_ts-report-touch-only-when-stylus-is-down.patch
Type: text/x-patch
Size: 1904 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100219/506975f2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100219/506975f2/attachment.sig>
More information about the linux-arm-kernel
mailing list