[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2026011432-disliking-boxlike-fcb3@gregkh>
Date: Wed, 14 Jan 2026 07:55:19 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Gideon Adjei <gideonadjei.dev@...il.com>
Cc: Andy Shevchenko <andy@...nel.org>,
Abdun Nihaal <abdun.nihaal@...il.com>,
Dan Carpenter <dan.carpenter@...aro.org>,
Jianglei Nie <niejianglei2021@....com>,
Matthew Wilcox <willy@...radead.org>,
dri-devel@...ts.freedesktop.org, linux-fbdev@...r.kernel.org,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] staging: fbtft: Change udelay() to fsleep()
On Tue, Jan 13, 2026 at 02:17:22PM -0800, Gideon Adjei wrote:
> Replace udelay() calls >= 100us with fsleep() to avoid busy-waiting.
>
> The delays are used in init_display() callbacks. These callbacks are
> invoked by fbtft_probe_common() during the driver's probe path. The
> probe path runs in process context which already uses sleeping APIs.
> This makes fsleep() safe to use in these situations.
>
> Signed-off-by: Gideon Adjei <gideonadjei.dev@...il.com>
> ---
> drivers/staging/fbtft/fb_tinylcd.c | 2 +-
> drivers/staging/fbtft/fb_upd161704.c | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/fbtft/fb_tinylcd.c b/drivers/staging/fbtft/fb_tinylcd.c
> index 9469248f2c50..3fb15df31592 100644
> --- a/drivers/staging/fbtft/fb_tinylcd.c
> +++ b/drivers/staging/fbtft/fb_tinylcd.c
> @@ -41,7 +41,7 @@ static int init_display(struct fbtft_par *par)
> 0x00, 0x35, 0x33, 0x00, 0x00, 0x00);
> write_reg(par, MIPI_DCS_SET_PIXEL_FORMAT, 0x55);
> write_reg(par, MIPI_DCS_EXIT_SLEEP_MODE);
> - udelay(250);
> + fsleep(250);
Without the hardware and specifications to test this with, we can't take
this type of patch. Please see the mailing list archives for the
multitude of times it has been rejected in the past.
sorry, but checkpatch can be ignored here.
thanks,
greg k-h
Powered by blists - more mailing lists