From: Hein Tibosch <hein_tibosch@yahoo.es>
To: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>,
netdev@vger.kernel.org, David Miller <davem@davemloft.net>,
Ludovic Desroches <ludovic.desroches@atmel.com>
Subject: Re: net/macb: clear tx/rx completion flags in ISR
Date: Fri, 19 Apr 2013 13:13:26 +0800 [thread overview]
Message-ID: <5170D276.6070208@yahoo.es> (raw)
Hi Steffen,
> At least in the cadence IP core on the Xilinx Zynq SoC the TCOMP/RCOMP flags
> are not auto-cleaned. As these flags are evaluated, they need to be cleaned.
This patch does not work for at least the AVR32 platform. Both RCOMP/RCOMP
are cleared by *reading* the ISR and writing them would be fatal.
Could you tell me the version of the macb of Xilinx Zynq?
u32 version = (macb_readl(bp, MID) & ((1 << MACB_REV_SIZE) - 1))
| MACB_GREGS_VERSION;
On an AP7000 it reads as 0x0000010D
I am thinking of making a patch like:
if (bp->version >= xxx)
macb_writel(bp, ISR, MACB_BIT(TCOMP));
if (bp->version >= xxx)
macb_writel(bp, ISR, MACB_BIT(RCOMP));
which would make it work on both platforms.
Hein
next reply other threads:[~2013-04-19 5:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-19 5:13 Hein Tibosch [this message]
2013-04-19 7:30 ` net/macb: clear tx/rx completion flags in ISR Steffen Trumtrar
2013-04-19 7:48 ` Nicolas Ferre
2013-04-19 9:21 ` Hein Tibosch
2013-04-19 9:38 ` Steffen Trumtrar
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=5170D276.6070208@yahoo.es \
--to=hein_tibosch@yahoo.es \
--cc=davem@davemloft.net \
--cc=ludovic.desroches@atmel.com \
--cc=netdev@vger.kernel.org \
--cc=nicolas.ferre@atmel.com \
--cc=s.trumtrar@pengutronix.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.