android_kernel_oneplus_msm8998/arch/mips/alchemy/common
Paul Burton ad0828f49b UPSTREAM: MIPS: Sanitise coherentio semantics
The coherentio variable has previously been used as a boolean value,
indicating whether the user specified that coherent I/O should be
enabled or disabled. It failed to take into account the case where the
user does not specify any preference, in which case it makes sense that
we should default to coherent I/O if the hardware supports it
(hw_coherentio is non-zero).

Introduce an enum to clarify the 3 different values of coherentio & use
it throughout the code, modifying plat_device_is_coherent() &
r4k_cache_init() to take into account the default case.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Paul Burton <paul.burton@imgtec.com>
Patchwork: https://patchwork.linux-mips.org/patch/14347/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
(cherry picked from commit f23020230e682a43cc4706cabb041bba469df2d6)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2018-02-05 08:58:32 -08:00
..
clock.c MIPS: alchemy: Convert to clk_hw based provider APIs 2015-08-24 16:48:46 -07:00
dbdma.c UPSTREAM: MIPS: Fix misspellings in comments. 2018-02-05 08:58:30 -08:00
dma.c MIPS: Alchemy: remove au_read/write/sync 2014-07-30 13:56:34 +02:00
gpiolib.c MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
irq.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
Makefile MIPS: Remove all the uses of custom gpio.h 2015-09-03 12:08:02 +02:00
platform.c MIPS: Alchemy: platform: use clk framework for uarts 2014-07-30 14:09:02 +02:00
power.c MIPS: Alchemy: add helpers to access static memory ctrl registers. 2014-07-30 13:53:52 +02:00
prom.c MIPS: Alchemy: Resolve prom section mismatches 2010-10-04 18:33:59 +01:00
setup.c UPSTREAM: MIPS: Sanitise coherentio semantics 2018-02-05 08:58:32 -08:00
sleeper.S MIPS: Fix gigaton of warning building with microMIPS. 2014-03-31 18:17:12 +02:00
time.c MIPS: Alchemy: Migrate to new 'set-state' interface 2015-09-03 12:07:50 +02:00
usb.c MIPS: Alchemy: usb: use clk framework 2014-07-30 14:09:21 +02:00
vss.c MIPS: Alchemy: Au1300 SoC support 2011-12-07 22:02:05 +00:00