diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-02-04 15:23:10 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-02-04 15:23:10 +0000 |
commit | b97aee1ee851c6ce0f48e9c231a8152c1151dbe4 (patch) | |
tree | 3f5f5e1f2c6c8577ee1388dcec0bf4ba7d7565bd /target/linux/coldfire/patches/050-Update-the-DMA-map-function-for-CF-platform.patch | |
parent | c41002971aeecd78e93ce553028f7cc01c4de777 (diff) | |
download | mtk-20170518-b97aee1ee851c6ce0f48e9c231a8152c1151dbe4.zip mtk-20170518-b97aee1ee851c6ce0f48e9c231a8152c1151dbe4.tar.gz mtk-20170518-b97aee1ee851c6ce0f48e9c231a8152c1151dbe4.tar.bz2 |
coldfire: R.I.P.
The target still uses 2.6.38. The support of that
kernel version has been removed ~9 months ago.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35489
Diffstat (limited to 'target/linux/coldfire/patches/050-Update-the-DMA-map-function-for-CF-platform.patch')
-rw-r--r-- | target/linux/coldfire/patches/050-Update-the-DMA-map-function-for-CF-platform.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/target/linux/coldfire/patches/050-Update-the-DMA-map-function-for-CF-platform.patch b/target/linux/coldfire/patches/050-Update-the-DMA-map-function-for-CF-platform.patch deleted file mode 100644 index a0a7ba7..0000000 --- a/target/linux/coldfire/patches/050-Update-the-DMA-map-function-for-CF-platform.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 2411a3e2b5dfa4784bbe2548f8ef0ce1aea0379e Mon Sep 17 00:00:00 2001 -From: Jason Jin <Jason.jin@freescale.com> -Date: Thu, 4 Aug 2011 09:59:55 +0800 -Subject: [PATCH 50/52] Update the DMA map function for CF platform - -In the DMA map, only the dcache need to be flushed. -Flush both dcache and icache will decrease the system -performance. - -Signed-off-by: Jason Jin <Jason.jin@freescale.com> ---- - arch/m68k/kernel/dma.c | 12 ++++++++++-- - 1 files changed, 10 insertions(+), 2 deletions(-) - ---- a/arch/m68k/kernel/dma.c -+++ b/arch/m68k/kernel/dma.c -@@ -94,10 +94,18 @@ void dma_sync_single_for_device(struct d - { - switch (dir) { - case DMA_TO_DEVICE: -- cache_push(handle, size); -+#if defined(CONFIG_M5445X) || defined(CONFIG_M5441X) -+ flush_dcache_range(handle, handle + size); -+#else -+ flush_dcache(); -+#endif - break; - case DMA_FROM_DEVICE: -- cache_clear(handle, size); -+#if defined(CONFIG_M5445X) || defined(CONFIG_M5441X) -+ cf_dcache_inv_range(handle, handle + size); -+#else -+ flush_dcache(); -+#endif - break; - case PCI_DMA_BIDIRECTIONAL: - flush_dcache(); |