Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1219600 > unrolled thread

Re: [PATCH v3 1/5] input: touchscreen: add imx6ul_tsc driver support

Started byDmitry Torokhov <dmitry.torokhov@gmail.com>
First post2015-09-05 21:00 +0200
Last post2015-09-05 21:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v3 1/5] input: touchscreen: add imx6ul_tsc driver support Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2015-09-05 21:00 +0200

#1219600 — Re: [PATCH v3 1/5] input: touchscreen: add imx6ul_tsc driver support

FromDmitry Torokhov <dmitry.torokhov@gmail.com>
Date2015-09-05 21:00 +0200
SubjectRe: [PATCH v3 1/5] input: touchscreen: add imx6ul_tsc driver support
Message-ID<q5qQW-tO-9@gated-at.bofh.it>
On Fri, Aug 28, 2015 at 05:09:32PM +0800, Haibo Chen wrote:
> Freescale i.MX6UL contains a internal touchscreen controller,
> this patch add a driver to support this controller.
> 
> Signed-off-by: Haibo Chen <haibo.chen@freescale.com>

Merged #1 and #2 and applied, thank you.

Also:

> +		/*
> +		 * Delay some time(max 2ms), wait the pre-charge done.
> +		 * After the pre-change mode, TSC go into detect mode.
> +		 * And in detect mode, we can get the xnur gpio value.
> +		 * If xnur is high, this means the touch screen still
> +		 * be touched. If xnur is low, this means finger leave
> +		 * the touch screen.
> +		 */
> +		timeout = jiffies + HZ/500;

I do not think that would quite work with HZ < 500. I changed this to

		timeout = jiffies + msecs_to_jiffies(2);

and also moved this block into a separate function.

Thanks.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web