From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Jeaho Hwang <jhhwang@rtst.co.kr>
Cc: linux-rt-users@vger.kernel.org
Subject: Re: "RTOS unfriendly" in chipidea udc code
Date: Tue, 15 Sep 2020 10:12:54 +0200 [thread overview]
Message-ID: <20200915081254.urefcscoqe42rglg@linutronix.de> (raw)
In-Reply-To: <CAJk_X9g7+AiD0mq4ZUq02stOg3FvMEzrwXjDfaRJNB7SfD2qgg@mail.gmail.com>
On 2020-09-14 10:01:46 [+0900], Jeaho Hwang wrote:
> The function hw_usb_reset, called by isr_reset_handler, is using
> udelay to wait hw reset and commented "RTOS unfriendly". Can I be sure
> RT-safe is it? Could you suggest any better alternative?
If I traced it right, that function is used as an interrupt handler
which should run threaded on PREEMPT_RT (it should be requested via
request_irq() or so). That means that the udelay() can be preempted by a
task with higher priority.
> Thanks. Regards
Sebastian
prev parent reply other threads:[~2020-09-15 8:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-14 1:01 "RTOS unfriendly" in chipidea udc code Jeaho Hwang
2020-09-15 8:12 ` Sebastian Andrzej Siewior [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=20200915081254.urefcscoqe42rglg@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=jhhwang@rtst.co.kr \
--cc=linux-rt-users@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).