netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: net/macb: clear tx/rx completion flags in ISR
@ 2013-04-19  5:13 Hein Tibosch
  2013-04-19  7:30 ` Steffen Trumtrar
  0 siblings, 1 reply; 5+ messages in thread
From: Hein Tibosch @ 2013-04-19  5:13 UTC (permalink / raw)
  To: Steffen Trumtrar; +Cc: Nicolas Ferre, netdev, David Miller, Ludovic Desroches

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-19  9:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-19  5:13 net/macb: clear tx/rx completion flags in ISR Hein Tibosch
2013-04-19  7:30 ` Steffen Trumtrar
2013-04-19  7:48   ` Nicolas Ferre
2013-04-19  9:21     ` Hein Tibosch
2013-04-19  9:38       ` Steffen Trumtrar

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).