From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] net/designware: Add-on: Consecutive writes must have delay
Date: Fri, 08 Jun 2012 00:32:03 +0200 [thread overview]
Message-ID: <20120607223203.5809620000C@gemini.denx.de> (raw)
In-Reply-To: <1339104480-6191-1-git-send-email-dinguyen@altera.com>
Dear Dinh,
In message <1339104480-6191-1-git-send-email-dinguyen@altera.com> you wrote:
> This commit is an add-on to f6c4191f. There are a few other registers where
> consecutive writes must have a delay.
Sorry, but this commit message is misleading - I was expecting to see
something like udelay() in the code, but there wasn't any...
> Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
> ---
> drivers/net/designware.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/designware.c b/drivers/net/designware.c
> index e8e669b..34952c0 100644
> --- a/drivers/net/designware.c
> +++ b/drivers/net/designware.c
> @@ -163,8 +163,8 @@ static int dw_eth_init(struct eth_device *dev, bd_t *bis)
> writel(FIXEDBURST | PRIORXTX_41 | BURST_16,
> &dma_p->busmode);
>
> - writel(FLUSHTXFIFO | readl(&dma_p->opmode), &dma_p->opmode);
> - writel(STOREFORWARD | TXSECONDFRAME, &dma_p->opmode);
> + writel(readl(&dma_p->opmode) | FLUSHTXFIFO | STOREFORWARD | \
> + TXSECONDFRAME, &dma_p->opmode);
There is no need for the continuation line here; please drop the
backslash.
Hm... Should we not rather use something like setbits_le32() here?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You said you didn't want to use CGI.pm, but methinks you are
needlessly reinventing the wheel, one spoke at a time. Either you are
masochistic, or you just haven't seen enough of what CGI.pm can do
for you. -- Randal L. Schwartz in <8cyb81rg81.fsf@gadget.cscaper.com>
next prev parent reply other threads:[~2012-06-07 22:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-07 21:28 [U-Boot] [PATCH] net/designware: Add-on: Consecutive writes must have delay Dinh Nguyen
2012-06-07 22:32 ` Wolfgang Denk [this message]
[not found] ` <71B37E0559AC6849A68C5BA94C509FB458298D3C24@SJ-ITMSG02.altera.priv.altera.com>
2012-06-07 23:07 ` Wolfgang Denk
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=20120607223203.5809620000C@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/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