Linux Framebuffer Layer development
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Lucas Antunes <lucasantunes@free.fr>
Cc: linux-staging@lists.linux.dev, linux-fbdev@vger.kernel.org
Subject: Re: [PATCH] staging: fbtft: upd161704: use fsleep() instead of udelay()
Date: Thu, 3 Dec 2026 23:19:59 +0100	[thread overview]
Message-ID: <2026120337-calamari-hungry-c822@gregkh> (raw)
In-Reply-To: <20261121171610.16391-1-lucasantunes@free.fr>

On Sat, Nov 21, 2026 at 06:16:10PM +0100, Lucas Antunes wrote:
> init_display() is called from the probe path, which runs in process
> context and is allowed to sleep. Replace the busy-waiting udelay()
> calls with fsleep(), which picks the best delay mechanism for the
> requested duration, as recommended by
> Documentation/timers/delay_sleep_functions.rst.
> 
> Delays of 10us or less keep busy-waiting inside fsleep(), so only the
> 100us and 200us delays actually change behaviour.

as behaviour changes, this requires hardware testing.  Please do so and
resend explaining how it was tested.

thanks,

greg k-h

      reply	other threads:[~2026-12-04  3:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21 17:16 [PATCH] staging: fbtft: upd161704: use fsleep() instead of udelay() Lucas Antunes
2026-12-03 22:19 ` Greg Kroah-Hartman [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=2026120337-calamari-hungry-c822@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=lucasantunes@free.fr \
    /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