[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4520c798-9372-4aa8-b6cc-f919b0c2dc59@suswa.mountain>
Date: Thu, 26 Jun 2025 21:05:05 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Pratibimba Khadka <pratibimbakhadka@...il.com>
Cc: mchehab@...nel.org, Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Al Viro <viro@...iv.linux.org.uk>,
"open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB)" <linux-media@...r.kernel.org>,
"open list:STAGING SUBSYSTEM" <linux-staging@...ts.linux.dev>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] staging: av7110: Replace msleep() with usleep_range() in
tuner function
On Thu, Jun 26, 2025 at 09:53:50PM +0545, Pratibimba Khadka wrote:
> Replace msleep(10) with usleep_range(10000, 12000) in the PLL lock
> waiting loop of nexusca_stv0297_tuner_set_params().
>
> usleep_range() is preferred over msleep() for short delays (< 20ms) as
> it provides better accuracy and allows the scheduler flexibility for
> power management optimizations. The 10-12ms range maintains the same
> timing behavior while giving the kernel scheduler room to optimize.
>
> This change improves timing precision during the PLL lock detection
> phase without affecting the overall functionality of the tuner
> configuration process.
>
> Signed-off-by: Pratibimba Khadka <pratibimbakhadka@...il.com>
Sorry, these msleep() need to be tested on real hardware for us to
accept them.
regards,
dan carpenter
Powered by blists - more mailing lists