kernel: update 3.14 to 3.14.18
[openwrt/staging/yousong.git] / target / linux / ipq806x / patches / 0182-qcom-Kconfig-Make-drivers-mutually-exclusive.patch
1 From 0771849495b4128cac2faf7d49c85c729fc48b20 Mon Sep 17 00:00:00 2001
2 From: Andy Gross <agross@codeaurora.org>
3 Date: Mon, 30 Jun 2014 21:18:39 -0500
4 Subject: [PATCH 182/182] qcom: Kconfig: Make drivers mutually exclusive
5
6 This patch makes sure QCOM ADM dmaengine and QCOM Nand cannot be enabled at the
7 same time. This is an issue because the dma drivers will conflict with one
8 another.
9
10 Signed-off-by: Andy Gross <agross@codeaurora.org>
11 ---
12 drivers/dma/Kconfig | 2 +-
13 drivers/mtd/nand/Kconfig | 6 +++---
14 2 files changed, 4 insertions(+), 4 deletions(-)
15
16 --- a/drivers/dma/Kconfig
17 +++ b/drivers/dma/Kconfig
18 @@ -412,7 +412,7 @@ config QCOM_BAM_DMA
19
20 config QCOM_ADM
21 tristate "Qualcomm ADM support"
22 - depends on ARCH_QCOM || (COMPILE_TEST && OF && ARM)
23 + depends on !MTD_QCOM_ADM && (ARCH_QCOM || (COMPILE_TEST && OF && ARM))
24 select DMA_ENGINE
25 select DMA_VIRTUAL_CHANNELS
26 ---help---
27 --- a/drivers/mtd/nand/Kconfig
28 +++ b/drivers/mtd/nand/Kconfig
29 @@ -511,15 +511,15 @@ config MTD_NAND_XWAY
30 to the External Bus Unit (EBU).
31
32 config MTD_QCOM_DMA
33 - tristate "QCMO NAND DMA Support"
34 - depends on ARCH_QCOM && MTD_QCOM_NAND
35 + tristate "QCOM NAND DMA Support"
36 + depends on !QCOM_ADM && ARCH_QCOM && MTD_QCOM_NAND
37 default n
38 help
39 DMA support for QCOM NAND
40
41 config MTD_QCOM_NAND
42 tristate "QCOM NAND Device Support"
43 - depends on MTD && ARCH_QCOM
44 + depends on MTD && ARCH_QCOM && !QCOM_ADM
45 select CRC16
46 select BITREVERSE
47 select MTD_NAND_IDS