From: Alistair <alistair@alistair23.me>
To: "Hugo Villeneuve" <hugo@hugovil.com>,
"Linus Walleij" <linus.walleij@linaro.org>,
"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Mylène Josserand" <mylene.josserand@bootlin.com>
Cc: "Hugo Villeneuve" <hvilleneuve@dimonoff.com>,
stable@vger.kernel.org, linux-input@vger.kernel.org,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Input: cyttsp5 - ensure minimum reset pulse width
Date: Wed, 05 Feb 2025 20:15:21 +1000 [thread overview]
Message-ID: <66041e5a-1686-4ee1-9a59-5fbfa21d1cb1@app.fastmail.com> (raw)
In-Reply-To: <20250204190100.2210863-1-hugo@hugovil.com>
On Wed, 5 Feb 2025, at 5:01 AM, Hugo Villeneuve wrote:
> From: Hugo Villeneuve <hvilleneuve@dimonoff.com>
>
> The current reset pulse width is measured to be 5us on a
> Renesas RZ/G2L SOM. The manufacturer's minimum reset pulse width is
> specified as 10us.
>
> Extend reset pulse width to make sure it is long enough on all platforms.
>
> Also reword confusing comments about reset pin assertion.
>
> Fixes: 5b0c03e24a06 ("Input: Add driver for Cypress Generation 5 touchscreen")
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Acked-by: Alistair Francis <alistair@alistair23.me>
> ---
> drivers/input/touchscreen/cyttsp5.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/input/touchscreen/cyttsp5.c b/drivers/input/touchscreen/cyttsp5.c
> index eafe5a9b8964..bb09e84d0e92 100644
> --- a/drivers/input/touchscreen/cyttsp5.c
> +++ b/drivers/input/touchscreen/cyttsp5.c
> @@ -870,13 +870,16 @@ static int cyttsp5_probe(struct device *dev, struct regmap *regmap, int irq,
> ts->input->phys = ts->phys;
> input_set_drvdata(ts->input, ts);
>
> - /* Reset the gpio to be in a reset state */
> + /* Assert gpio to be in a reset state */
> ts->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH);
> if (IS_ERR(ts->reset_gpio)) {
> error = PTR_ERR(ts->reset_gpio);
> dev_err(dev, "Failed to request reset gpio, error %d\n", error);
> return error;
> }
> +
> + fsleep(1000); /* Ensure long-enough reset pulse (minimum 10us). */
> +
> gpiod_set_value_cansleep(ts->reset_gpio, 0);
>
> /* Need a delay to have device up */
>
> base-commit: 0de63bb7d91975e73338300a57c54b93d3cc151c
> --
> 2.39.5
>
>
next prev parent reply other threads:[~2025-02-05 10:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-04 19:01 Hugo Villeneuve
2025-02-05 10:15 ` Alistair [this message]
2025-02-05 15:33 ` Dmitry Torokhov
2025-02-05 15:50 ` Hugo Villeneuve
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=66041e5a-1686-4ee1-9a59-5fbfa21d1cb1@app.fastmail.com \
--to=alistair@alistair23.me \
--cc=dmitry.torokhov@gmail.com \
--cc=hugo@hugovil.com \
--cc=hvilleneuve@dimonoff.com \
--cc=linus.walleij@linaro.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mripard@kernel.org \
--cc=mylene.josserand@bootlin.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®