[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aXn5GXXHSZtq66d7@stanley.mountain>
Date: Wed, 28 Jan 2026 14:55:05 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Madhumitha Sundar <madhuananda18@...il.com>
Cc: sudipm.mukherjee@...il.com, teddy.wang@...iconmotion.com,
gregkh@...uxfoundation.org, linux-fbdev@...r.kernel.org,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] staging: sm750fb: replace magic number with jiffies
timeout
On Tue, Jan 27, 2026 at 03:40:56PM +0000, Madhumitha Sundar wrote:
> The hardware wait loop in hw_sm750_de_wait used a hardcoded loop
> counter (0x10000000), which depends on CPU speed and is unreliable.
>
> Replace the loop counter with a jiffies-based timeout (1 second)
> using time_before(). This ensures consistent delays across architectures.
>
> Signed-off-by: Madhumitha Sundar <madhuananda18@...il.com>
> ---
This feels like an AI patch? AI patches need to be disclosed.
Anyway, we couldn't merge something like this without testing.
regards,
dan carpenter
Powered by blists - more mailing lists