From: Paul Kocialkowski <paulk@sys-base.io>
To: Maxime Ripard <mripard@kernel.org>
Cc: "Linus Walleij" <linus.walleij@linaro.org>,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
"Uwe Kleine-König" <ukleinek@kernel.org>,
"Chen-Yu Tsai" <wens@csie.org>,
"Jernej Skrabec" <jernej.skrabec@gmail.com>,
"Samuel Holland" <samuel@sholland.org>,
"Paul Kocialkowski" <contact@paulk.fr>
Subject: Re: [PATCH] pinctrl: sunxi: Use minimal debouncing period as default
Date: Tue, 7 Jan 2025 12:55:57 +0100 [thread overview]
Message-ID: <Z30WTaDHQOotVnpl@collins> (raw)
In-Reply-To: <20241217-impossible-chameleon-of-flowers-8ce18a@houat>
[-- Attachment #1: Type: text/plain, Size: 1439 bytes --]
Hi,
Le Tue 17 Dec 24, 14:58, Maxime Ripard a écrit :
> On Tue, Dec 17, 2024 at 02:41:36PM +0100, Linus Walleij wrote:
> > On Tue, Nov 19, 2024 at 3:43 PM Maxime Ripard <mripard@kernel.org> wrote:
> >
> > > [Paul]
> > > > The pinctrl code supports an input-debounce device-tree property to set
> > > > a specific debouncing period and choose which clock source is most
> > > > relevant. However the property is specified in microseconds, which is
> > > > longer than the minimal period achievable from the high-frequency
> > > > oscillator without a pre-scaler.
> > >
> > > That can be fixed by introducing a new property with a ns resolution.
> >
> > Perhaps, but I think a setting of 0 should just yield the minimum
> > resolution in this case, as apparently the debounce cannot be
> > turned off? This would also make sense to expose for
> > gpiod_set_debounce() as explained in my other mail.
>
> Yeah, if we want to have 0 == lowest resolution, I'm all for it.
I agree that it would be easier and less confusing than introducing a new
property just to have a finer resolution.
I could craft a patch in that direction then, with a mention about it in the
bindings.
Cheers,
Paul
--
Paul Kocialkowski,
Independent contractor - sys-base - https://www.sys-base.io/
Free software developer - https://www.paulk.fr/
Expert in multimedia, graphics and embedded hardware support with Linux.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2025-01-07 12:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-19 14:08 [PATCH] pinctrl: sunxi: Use minimal debouncing period as default Paul Kocialkowski
2024-11-19 14:43 ` Maxime Ripard
2024-11-19 15:00 ` Paul Kocialkowski
2024-11-19 15:43 ` Maxime Ripard
2024-11-19 18:47 ` Paul Kocialkowski
2024-11-20 8:01 ` Maxime Ripard
2024-11-20 10:05 ` Paul Kocialkowski
2024-11-29 15:37 ` Maxime Ripard
2024-11-30 10:34 ` Paul Kocialkowski
2024-12-02 11:03 ` Maxime Ripard
2024-12-03 10:58 ` Paul Kocialkowski
2024-12-17 13:39 ` Linus Walleij
2025-01-07 11:53 ` Paul Kocialkowski
2024-12-17 13:41 ` Linus Walleij
2024-12-17 13:58 ` Maxime Ripard
2025-01-07 11:55 ` Paul Kocialkowski [this message]
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=Z30WTaDHQOotVnpl@collins \
--to=paulk@sys-base.io \
--cc=contact@paulk.fr \
--cc=jernej.skrabec@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=mripard@kernel.org \
--cc=samuel@sholland.org \
--cc=ukleinek@kernel.org \
--cc=wens@csie.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.