From: Jitendra Kumar Khasdev <jkhasdev@gmail.com>
To: davem@davemloft.net, edumazet@google.com,
alexander.h.duyck@redhat.com, linus.luessing@c0d3.bluen,
hannes@stressinduktion.org, willemb@google.com
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Jitendra Kumar Khasdev <jitendra.khasdev@hotwaxsystems.com>,
Jitendra Kumar Khasdev <jkhasdev@gmail.com>
Subject: [PATCH] staging: dgnc: dgnc_cls.c: Replaced udelay by usleep_range
Date: Thu, 26 Nov 2015 22:04:25 +0530 [thread overview]
Message-ID: <1448555665-5021-1-git-send-email-jitendra.khasdev@hotwaxsystems.com> (raw)
This patch is to file dgnc_cls.c that fixes up udelay function by
usleep_range.
It is safe to use according to the following documentation
Documentation/timers/timers-howto.txt. So that is why I have given
an appropriate time range.
Signed-off-by: Jitendra Kumar Khasdev <jkhasdev@gmail.com>
---
drivers/staging/dgnc/dgnc_cls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/dgnc/dgnc_cls.c b/drivers/staging/dgnc/dgnc_cls.c
index 75040da..72f0aaa 100644
--- a/drivers/staging/dgnc/dgnc_cls.c
+++ b/drivers/staging/dgnc/dgnc_cls.c
@@ -934,7 +934,7 @@ static void cls_flush_uart_write(struct channel_t *ch)
writeb((UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_XMIT),
&ch->ch_cls_uart->isr_fcr);
- udelay(10);
+ usleep_range(10, 20);
ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
}
--
1.9.1
next reply other threads:[~2015-11-26 16:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-26 16:34 Jitendra Kumar Khasdev [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-11-24 17:31 Jitendra Kumar Khasdev
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=1448555665-5021-1-git-send-email-jitendra.khasdev@hotwaxsystems.com \
--to=jkhasdev@gmail.com \
--cc=alexander.h.duyck@redhat.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hannes@stressinduktion.org \
--cc=jitendra.khasdev@hotwaxsystems.com \
--cc=linus.luessing@c0d3.bluen \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=willemb@google.com \
/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
all inboxes | Powered by JetHome®