netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: michael@amarulasolutions.com
Cc: peppe.cavallaro@st.com, festevam@gmail.com, netdev@vger.kernel.org
Subject: Re: [PATCH V2] net: stmmac: use msleep instead of udelay for gpio reset
Date: Tue, 21 Apr 2015 17:35:40 -0400 (EDT)	[thread overview]
Message-ID: <20150421.173540.1253961571051792975.davem@davemloft.net> (raw)
In-Reply-To: <1429614973-6883-1-git-send-email-michael@amarulasolutions.com>

From: Michael Trimarchi <michael@amarulasolutions.com>
Date: Tue, 21 Apr 2015 13:16:13 +0200

> -			udelay(data->delays[0]);
 ...
> +			msleep(max(1U, data->delays[0] / 1000));

That looks very ugly with that max() expression in there.

Please find some clean way to get rid of it if you want to
make this conversion.

Thanks.

  reply	other threads:[~2015-04-21 21:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-21 11:16 [PATCH V2] net: stmmac: use msleep instead of udelay for gpio reset Michael Trimarchi
2015-04-21 21:35 ` David Miller [this message]
2015-04-21 23:13   ` Michael Trimarchi
2015-04-22  0:31     ` David Miller
2015-04-22  0:55       ` Michael Trimarchi

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=20150421.173540.1253961571051792975.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=festevam@gmail.com \
    --cc=michael@amarulasolutions.com \
    --cc=netdev@vger.kernel.org \
    --cc=peppe.cavallaro@st.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;
as well as URLs for NNTP newsgroup(s).