]> git.dujemihanovic.xyz Git - u-boot.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)
commit2303bff7d55df47105740e5d635d50ef9f6856b6
treeff94f77aa0bb50d3fd07ced4b4e0ea279c49a9d0
parent52e727c8eb449db8b8dcb38201cbe034c8fa3c04
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