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


Groups > linux.kernel > #1602075 > unrolled thread

Re: [PATCH v2 2/3] Input: add support for the STMicroelectronics FingerTip touchscreen

Started byAndrzej Hajda <a.hajda@samsung.com>
First post2017-03-16 09:40 +0100
Last post2017-03-16 09:40 +0100
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 v2 2/3] Input: add support for the STMicroelectronics  FingerTip touchscreen Andrzej Hajda <a.hajda@samsung.com> - 2017-03-16 09:40 +0100

#1602075 — Re: [PATCH v2 2/3] Input: add support for the STMicroelectronics FingerTip touchscreen

FromAndrzej Hajda <a.hajda@samsung.com>
Date2017-03-16 09:40 +0100
SubjectRe: [PATCH v2 2/3] Input: add support for the STMicroelectronics FingerTip touchscreen
Message-ID<tlz6V-42c-5@gated-at.bofh.it>
Hi Andi,

On 10.02.2017 03:17, Andi Shyti wrote:
(...)
> +
> +	err = devm_request_threaded_irq(&client->dev, client->irq,
> +					NULL, stmfts_irq_handler,
> +					IRQF_ONESHOT | IRQF_TRIGGER_LOW,
> +					"stmfts_irq", sdata);
> +	if (err)
> +		return err;
> +
> +	/*
> +	 * Disable irq they, they are not needed at this stage.
> +	 * One possible case when an IRQ can be already rased is e.g. if the
> +	 * regulator is set as always on and the stmfts device sends an IRQ as
> +	 * soon as it gets powered, de-synchronizing the power on sequence.
> +	 * During power on, the device will be reset and all the initialization
> +	 * IRQ will be resent.
> +	 */
> +	disable_irq(sdata->client->irq);

It is safer to set:
    irq_set_status_flags(client->irq, IRQ_NOAUTOEN);
before devm_request_threaded_irq

Regards
Andrzej

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web