Subject: wrong definition in cpm_8260.h?

From: "Shen Rong" <[email-masked]>
Date: Wed, 22 Jan 2003 19:03:25 +0800

Hi,

In cpm_8260.h, BD_ENET_RX_STATS is defined to 0x1ff, which leads
to the fcc driver can't clean the BD_ENET_RX_LAST&BD_ENET_RX_FIRST bits
with the following statement:
    bdp->cbd_sc &= ~BD_ENET_RX_STATS;

The first&last bits are set by the CPM not the CPU, so they
should be cleared after the frame is received. So it should be:

#define BD_ENET_RX_STATS ((ushort)0x0fff) /* All status bits */

The same problem in ppcboot.

Shenrong

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/