From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: Coiby Xu <coiby.xu@gmail.com>
Cc: "open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
Linus Walleij <linus.walleij@linaro.org>,
Hans de Goede <hdegoede@redhat.com>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] pinctrl: amd: print debounce filter info in debugfs
Date: Sun, 25 Oct 2020 19:12:16 +0200 [thread overview]
Message-ID: <CAHp75VdRBPcdRaTjnDNk5nSN8fMY--Gq=042+fYGddv=Xs6uHw@mail.gmail.com> (raw)
In-Reply-To: <20201024061552.4497-1-coiby.xu@gmail.com>
On Sat, Oct 24, 2020 at 2:32 PM Coiby Xu <coiby.xu@gmail.com> wrote:
>
> Print out the status of debounce filter as follows,
> $ cat /sys/kernel/debug/gpio|grep pin130
> pin130 interrupt is disabled| interrupt is masked| disable wakeup in S0i3 state| disable wakeup in S3 state|
> disable wakeup in S4/S5 state| input is high| pull-up is disabled| Pull-down is disabled| output is disabled| debouncing filter (high) enabled| debouncing timeout is 124800 (us)| 0x503c8
> + if (!tmr_large) {
> + if (!tmr_out_unit)
> + unit = 61;
> + else
> + unit = 244;
> + } else {
> + if (!tmr_out_unit)
> + unit = 15600;
> + else
> + unit = 62500;
> + }
In all three if:s can you use positive conditionals?
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2020-10-25 17:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-24 6:15 [PATCH] pinctrl: amd: print debounce filter info in debugfs Coiby Xu
2020-10-25 17:12 ` Andy Shevchenko [this message]
2020-10-26 15:16 ` Coiby Xu
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='CAHp75VdRBPcdRaTjnDNk5nSN8fMY--Gq=042+fYGddv=Xs6uHw@mail.gmail.com' \
--to=andy.shevchenko@gmail.com \
--cc=coiby.xu@gmail.com \
--cc=hdegoede@redhat.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@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;
as well as URLs for NNTP newsgroup(s).