Home
last modified time | relevance | path

Searched hist:"6 fb49e4aa08e5d4f4081840b0b30160e98becf27" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/net/
H A Dpcnet.c6fb49e4aa08e5d4f4081840b0b30160e98becf27 Mon Apr 07 15:41:48 UTC 2014 Paul Burton <paul.burton@imgtec.com> pcnet: force ordering of descriptor accesses

The ordering of accesses to the rx & tx descriptors is important, yet
the send & recv functions accessed them via regular structure accesses.
This leaves the compiler with the opportunity to reorder those accesses
or to hoist them outside of loops. Prevent that from happening by using
readl & writel to access the descriptors. As a nice bonus, this removes
the need for the driver to care about endianness.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>