]> git.karo-electronics.de Git - mv-sheeva.git/commit
OMAP: DMA: Introduce errata handling feature
authorG, Manjunath Kondaiah <manjugk@ti.com>
Tue, 21 Dec 2010 02:27:18 +0000 (18:27 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 21 Dec 2010 02:38:29 +0000 (18:38 -0800)
commitd3c9be2f42223f256d06b2b69ed26afdcb02f64a
tree79c5c7cb971e24527773af86572cafcdab6d37a6
parenta4c537c7f60704691efc5f833b3d440252275c3b
OMAP: DMA: Introduce errata handling feature

Implement errata handling to use flags instead of cpu_is_* and
cpu_class_* in the code.

The errata flags are initialized at init time and during runtime we are
using the errata variable (via the IS_DMA_ERRATA macro) to execute the
required errata workaround.

Reused errata handling patch from: Peter Ujfalusi
<peter.ujfalusi@nokia.com>
https://patchwork.kernel.org/patch/231191/

Changes to above patch:
1. Changes are done for converting all the existing errata work arounds
to use this feature.
2. Detailed description for each errata is added.
3. Fixed bug in SET_DMA_ERRATA macro
4. Bit shifting in macro definitions are replaced with BIT() macro

Signed-off-by: G, Manjunath Kondaiah <manjugk@ti.com>
Tested-by: Kevin Hilman <khilman@deeprootsystems.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dma.c
arch/arm/plat-omap/include/plat/dma.h