summaryrefslogtreecommitdiff
path: root/drivers/net/armada100_fec.c
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2014-04-07 15:41:48 (GMT)
committerTom Rini <trini@ti.com>2014-04-18 14:42:30 (GMT)
commit6fb49e4aa08e5d4f4081840b0b30160e98becf27 (patch)
treef67077f0f8ddc5c91eb5567feecabeeca4bb8bec /drivers/net/armada100_fec.c
parenta354ddc3d7412c6d7cc702de60be32e580ccf348 (diff)
downloadu-boot-6fb49e4aa08e5d4f4081840b0b30160e98becf27.tar.xz
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>
Diffstat (limited to 'drivers/net/armada100_fec.c')
0 files changed, 0 insertions, 0 deletions