From: Greg KH <gregkh@linuxfoundation.org>
To: Fabrizio Benedetti <fabrizio.benedetti.82@gmail.com>
Cc: linux-iio@vger.kernel.org
Subject: Re: [PATCH] staging: fbtft: fb_agm1264k-fl.c: Replaced udelay by usleep_range
Date: Fri, 24 Jul 2020 15:24:46 +0200 [thread overview]
Message-ID: <20200724132446.GB316746@kroah.com> (raw)
In-Reply-To: <20200724100907.GA8977@fbenedet-HP>
On Fri, Jul 24, 2020 at 12:09:07PM +0200, Fabrizio Benedetti wrote:
> This patch replace udelay with usleep_range
> according to the Documentation/timers/timers-howto.txt .
> The usleep_range have a range that is >= of udelay.
>
> Signed-off-by: Fabrizio Benedetti <fabrizio.benedetti.82@gmail.com>
> ---
> drivers/staging/fbtft/fb_agm1264k-fl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c
> index eeeeec97ad27..4a67a660bb17 100644
> --- a/drivers/staging/fbtft/fb_agm1264k-fl.c
> +++ b/drivers/staging/fbtft/fb_agm1264k-fl.c
> @@ -85,7 +85,7 @@ static void reset(struct fbtft_par *par)
> dev_dbg(par->info->device, "%s()\n", __func__);
>
> gpiod_set_value(par->gpio.reset, 0);
> - udelay(20);
> + usleep_range(20, 25);
And are you sure that 25 is ok here?
Unless you have the hardware, don't make up random numbers for things
like delays :)
Also, be sure you use the correct mailing lists, why did you ignore the
output of scripts/get_maintainer.pl for this patch?
thanks,
greg k-h
next prev parent reply other threads:[~2020-07-24 13:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-24 10:09 [PATCH] staging: fbtft: fb_agm1264k-fl.c: Replaced udelay by usleep_range Fabrizio Benedetti
2020-07-24 13:24 ` Greg KH [this message]
2020-07-26 8:06 ` Andy Shevchenko
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=20200724132446.GB316746@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=fabrizio.benedetti.82@gmail.com \
--cc=linux-iio@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