]> git.baikalelectronics.ru Git - uboot.git/commit
net: pch_gbe: Add cache maintenance
authorPaul Burton <paul.burton@imgtec.com>
Sun, 30 Apr 2017 19:57:08 +0000 (21:57 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 2 Jun 2017 19:44:20 +0000 (14:44 -0500)
commitc659762e7217dfaeea5b4b1b008cab725ac3b295
treeff94f77aa0bb50d3fd07ced4b4e0ea279c49a9d0
parent4bc821cb39d194b73f0ebf434282b9752fce63bc
net: pch_gbe: Add cache maintenance

On MIPS systems DMA isn't coherent with the CPU caches unless an IOCU is
present. When there is no IOCU we need to writeback or invalidate the
data caches at appropriate points. Perform this cache maintenance in
the pch_gbe driver which is used on the MIPS Boston development board.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/pch_gbe.c