linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: "Jérôme Pouiller" <jerome.pouiller@silabs.com>
To: Maxime Ripard <maxime@cerno.tech>
Cc: Marc Zyngier <maz@kernel.org>,
	Marc Dorval <marc.dorval@silabs.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Chen-Yu Tsai <wens@csie.org>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: Possible race while masking IRQ on Allwinner A20
Date: Thu, 21 May 2020 15:12:01 +0200	[thread overview]
Message-ID: <4228495.4SuWXshX0D@pc-42> (raw)
In-Reply-To: <20200521072634.6ig7jcuy5tmvmojf@gilmour.lan>

On Thursday 21 May 2020 09:26:34 CEST Maxime Ripard wrote:
[...]
> On Tue, May 19, 2020 at 10:59:26AM +0200, Jérôme Pouiller wrote:
[...] 
> > The chip WF200 allows to use a dedicated line for the IRQ (aka
> > "Out-Of-Band" IRQ). So I have enabled this feature with a edge triggered 
> > IRQ. However, I missed some IRQs. Indeed, it seems that Allwinner use a 
> > 32KHz clock to sample the IRQs. It is not fast enough for us. I think it 
> > explains why we miss some IRQs (using the attribute "input-debounce"[2], 
> > I tried to enable the 24Mhz clock, but without success).
> 
> Without success as in you couldn't make it use the 24MHz clock, or using it
> didn't change anything?

I didn't make the change myself, but it seems that the board was unable
to run correctly when the attribute "input-debounce" was used. Since
"input-debounce" impacts the whole GPIO bank, I think it has impacted
other devices.

Finally, I didn't spend so much time on this and I don't know if it the
24Mhz clock has been finally correctly enabled.

-- 
Jérôme Pouiller



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

      parent reply	other threads:[~2020-05-21 13:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19  8:59 Possible race while masking IRQ on Allwinner A20 Jérôme Pouiller
2020-05-21  7:26 ` Maxime Ripard
2020-05-21  8:02   ` Marc Zyngier
2020-05-21 13:28     ` Jérôme Pouiller
2020-05-21 13:39       ` Marc Zyngier
2020-05-21 14:08         ` Jérôme Pouiller
2020-05-21 13:12   ` Jérôme Pouiller [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=4228495.4SuWXshX0D@pc-42 \
    --to=jerome.pouiller@silabs.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=marc.dorval@silabs.com \
    --cc=maxime@cerno.tech \
    --cc=maz@kernel.org \
    --cc=tglx@linutronix.de \
    --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 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).