diff options
author | Scott Wood <scottwood@freescale.com> | 2007-05-16 22:06:59 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-05-18 02:43:15 +0200 |
commit | 3b6330ce2a3e1f152f79a6203f73d23356e243a7 (patch) | |
tree | 3325c488b05be904ecddd176a1eea3cb3fe2e6a1 /drivers/net/spider_net.c | |
parent | ibm_emac: fix link speed detection change (diff) | |
download | linux-3b6330ce2a3e1f152f79a6203f73d23356e243a7.tar.xz linux-3b6330ce2a3e1f152f79a6203f73d23356e243a7.zip |
gianfar: Add I/O barriers when touching buffer descriptor ownership.
The hardware must not see that is given ownership of a buffer until it is
completely written, and when the driver receives ownership of a buffer,
it must ensure that any other reads to the buffer reflect its final
state. Thus, I/O barriers are added where required.
Without this patch, I have observed GCC reordering the setting of
bdp->length and bdp->status in gfar_new_skb. Hardware reordering
was also theoretically possible.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/spider_net.c')
0 files changed, 0 insertions, 0 deletions