libubox: update to the latest version
[openwrt/staging/wigyori.git] / target / linux / generic / pending-4.4 / 042-0002-mtd-add-arch-dependency-for-MTD_BCM47XXSFLASH-symbol.patch
1 From efacc699139e13f9d3ed8b47df92acb88ff8479f Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Tue, 19 Jul 2016 09:08:32 +0200
4 Subject: [PATCH] mtd: add arch dependency for MTD_BCM47XXSFLASH symbol
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 We dropped strict MIPS dependency for bcm47xxsflash driver in:
10 commit 5651d6aaf489 ("mtd: bcm47xxsflash: use ioremap_cache() instead of
11 KSEG0ADDR()") but using ioremap_cache still limits building it to few
12 selected architectures only.
13
14 A recent commit 57d8f7dd2132 ("bcma: allow enabling serial flash support
15 on non-MIPS SoCs") automatically dropped MIPS dependency for
16 MTD_BCM47XXSFLASH which broke building e.g. on powerpc and cris.
17
18 The bcma change is alright as it doesn't break building bcma code in any
19 way. MTD_BCM47XXSFLASH on the other hand should be limited to archs
20 which need it and can build it (by providing ioremap_cache).
21
22 Fixes: 57d8f7dd2132 ("bcma: allow enabling serial flash support on non-MIPS SoCs")
23 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
24 Cc: Brian Norris <computersforpeace@gmail.com>
25 Acked-by: Brian Norris <computersforpeace@gmail.com>
26 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
27 ---
28 drivers/mtd/devices/Kconfig | 2 +-
29 1 file changed, 1 insertion(+), 1 deletion(-)
30
31 --- a/drivers/mtd/devices/Kconfig
32 +++ b/drivers/mtd/devices/Kconfig
33 @@ -114,7 +114,7 @@ config MTD_SST25L
34
35 config MTD_BCM47XXSFLASH
36 tristate "R/O support for serial flash on BCMA bus"
37 - depends on BCMA_SFLASH
38 + depends on BCMA_SFLASH && (MIPS || ARM)
39 help
40 BCMA bus can have various flash memories attached, they are
41 registered by bcma as platform devices. This enables driver for