2
0

042-0002-mtd-add-arch-dependency-for-MTD_BCM47XXSFLASH-symbol.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. We dropped strict MIPS dependency for bcm47xxsflash driver in:
  9. commit 5651d6aaf489 ("mtd: bcm47xxsflash: use ioremap_cache() instead of
  10. KSEG0ADDR()") but using ioremap_cache still limits building it to few
  11. selected architectures only.
  12. A recent commit 57d8f7dd2132 ("bcma: allow enabling serial flash support
  13. on non-MIPS SoCs") automatically dropped MIPS dependency for
  14. MTD_BCM47XXSFLASH which broke building e.g. on powerpc and cris.
  15. The bcma change is alright as it doesn't break building bcma code in any
  16. way. MTD_BCM47XXSFLASH on the other hand should be limited to archs
  17. which need it and can build it (by providing ioremap_cache).
  18. Fixes: 57d8f7dd2132 ("bcma: allow enabling serial flash support on non-MIPS SoCs")
  19. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  20. Cc: Brian Norris <computersforpeace@gmail.com>
  21. Acked-by: Brian Norris <computersforpeace@gmail.com>
  22. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  23. ---
  24. drivers/mtd/devices/Kconfig | 2 +-
  25. 1 file changed, 1 insertion(+), 1 deletion(-)
  26. --- a/drivers/mtd/devices/Kconfig
  27. +++ b/drivers/mtd/devices/Kconfig
  28. @@ -114,7 +114,7 @@ config MTD_SST25L
  29. config MTD_BCM47XXSFLASH
  30. tristate "R/O support for serial flash on BCMA bus"
  31. - depends on BCMA_SFLASH
  32. + depends on BCMA_SFLASH && (MIPS || ARM)
  33. help
  34. BCMA bus can have various flash memories attached, they are
  35. registered by bcma as platform devices. This enables driver for