mtd: add arch dependency for MTD_BCM47XXSFLASH symbol
PATCH 1/1 mtd: add arch dependency for MTD_BCM47XXSFLASH symbol
We dropped strict MIPS dependency for bcm47xxsflash driver in:
commit 5651d6aaf489 ("mtd: bcm47xxsflash: use ioremap_cache() instead of KSEG0ADDR()") but using ioremap_cache still limits building it to few selected architectures only.
A recent commit 57d8f7dd2132 ("bcma: allow enabling serial flash support on non-MIPS SoCs") automatically dropped MIPS dependency for MTD_BCM47XXSFLASH which broke building e.g. on powerpc and cris.
The bcma change is alright as it doesn't break building bcma code in any way. MTD_BCM47XXSFLASH on the other hand should be limited to archs which need it and can build it (by providing ioremap_cache).
---
That bcma commit breaking building landed in the wireless-drivers-next. Is that possible to get this patch through the same tree?
--- drivers/mtd/devices/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/devices/Kconfig +1 -1
@@ -114,7 +114,7 @@ config MTD_SST25L config MTD_BCM47XXSFLASH tristate "R/O support for serial flash on BCMA bus" - depends on BCMA_SFLASH + depends on BCMA_SFLASH && (MIPS || ARM) help BCMA bus can have various flash memories attached, they are registered by bcma as platform devices. This enables driver for
Signature · 1 line
1.8.4.5
Quoted 9 lines · Rafał Miłecki
We dropped strict MIPS dependency for bcm47xxsflash driver in:
commit5651d6aaf489("mtd: bcm47xxsflash: useioremap_cache()instead ofKSEG0ADDR()") but usingioremap_cachestill limits building it to few selected architectures only.A recent commit
57d8f7dd2132("bcma: allow enabling serial flash support on non-MIPS SoCs") automatically dropped MIPS dependency forMTD_BCM47XXSFLASHwhich broke building e.g. on powerpc and cris.
Quoted 7 lines
The bcma change is alright as it doesn't break building bcma code in any way.
MTD_BCM47XXSFLASHon the other hand should be limited to archs which need it and can build it (by providingioremap_cache).Fixes 57d8f7dd2132 ("bcma: allow enabling serial flash support on non-MIPS SoCs")Signed-off-by Rafał Miłecki <[email protected]>Cc Brian Norris <[email protected]>
While I might prefer we have a better consistent set of portable I/O accessors (it's really a mess), it seems quite reasonable to restrict the damage to ARM and MIPS here if it saves some short-term hassle:
Quoted 3 lines
---
That bcma commit breaking building landed in the wireless-drivers-next. Is that possible to get this patch through the same tree?
That's fine with me.
Regards,
Brian
Quoted 20 lines
--- drivers/mtd/devices/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mtd/devices/Kconfig +1
-1@@ -114,7 +114,7 @@ config MTD_SST25L config MTD_BCM47XXSFLASH tristate "R/O support for serial flash on BCMA bus" - depends on BCMA_SFLASH + depends on BCMA_SFLASH && (MIPS || ARM) help BCMA bus can have various flash memories attached, they are registered by bcma as platform devices. This enables driver forSignature · 1 line
1.8.4.5
Quoted 22 lines · Brian Norris
Quoted 9 lines · Rafał Miłecki
We dropped strict MIPS dependency for bcm47xxsflash driver in:
commit5651d6aaf489("mtd: bcm47xxsflash: useioremap_cache()instead ofKSEG0ADDR()") but usingioremap_cachestill limits building it to few selected architectures only.A recent commit
57d8f7dd2132("bcma: allow enabling serial flash support on non-MIPS SoCs") automatically dropped MIPS dependency forMTD_BCM47XXSFLASHwhich broke building e.g. on powerpc and cris.Quoted 7 lines
The bcma change is alright as it doesn't break building bcma code in any way.
MTD_BCM47XXSFLASHon the other hand should be limited to archs which need it and can build it (by providingioremap_cache).Fixes 57d8f7dd2132 ("bcma: allow enabling serial flash support on non-MIPS SoCs")Signed-off-by Rafał Miłecki <[email protected]>Cc Brian Norris <[email protected]>While I might prefer we have a better consistent set of portable I/O accessors (it's really a mess), it seems quite reasonable to restrict the damage to ARM and MIPS here if it saves some short-term hassle:
Quoted 7 lines
Acked-by Brian Norris <[email protected]>Quoted 3 lines
---
That bcma commit breaking building landed in the wireless-drivers-next. Is that possible to get this patch through the same tree?That's fine with me.
Great, thanks. I'm planning to apply this later tonight to fix the build error.
Signature · 1 line
Kalle Valo
Quoted 9 lines · Rafał Miłecki
We dropped strict MIPS dependency for bcm47xxsflash driver in:
commit5651d6aaf489("mtd: bcm47xxsflash: useioremap_cache()instead ofKSEG0ADDR()") but usingioremap_cachestill limits building it to few selected architectures only.A recent commit
57d8f7dd2132("bcma: allow enabling serial flash support on non-MIPS SoCs") automatically dropped MIPS dependency forMTD_BCM47XXSFLASHwhich broke building e.g. on powerpc and cris.
Quoted 8 lines
The bcma change is alright as it doesn't break building bcma code in any way.
MTD_BCM47XXSFLASHon the other hand should be limited to archs which need it and can build it (by providingioremap_cache).Fixes 57d8f7dd2132 ("bcma: allow enabling serial flash support on non-MIPS SoCs")Signed-off-by Rafał Miłecki <[email protected]>Cc Brian Norris <[email protected]>Acked-by Brian Norris <[email protected]>
Thanks, 1 patch applied to wireless-drivers-next.git:
efacc699139e mtd: add arch dependency for MTD_BCM47XXSFLASH symbol
Signature · 2 lines
Sent by pwcli https://patchwork.kernel.org/patch/9236053/
Quoted 9 lines · Rafał Miłecki
We dropped strict MIPS dependency for bcm47xxsflash driver in:
commit5651d6aaf489("mtd: bcm47xxsflash: useioremap_cache()instead ofKSEG0ADDR()") but usingioremap_cachestill limits building it to few selected architectures only.A recent commit
57d8f7dd2132("bcma: allow enabling serial flash support on non-MIPS SoCs") automatically dropped MIPS dependency forMTD_BCM47XXSFLASHwhich broke building e.g. on powerpc and cris.
Quoted 8 lines
The bcma change is alright as it doesn't break building bcma code in any way.
MTD_BCM47XXSFLASHon the other hand should be limited to archs which need it and can build it (by providingioremap_cache).Fixes 57d8f7dd2132 ("bcma: allow enabling serial flash support on non-MIPS SoCs")Signed-off-by Rafał Miłecki <[email protected]>Cc Brian Norris <[email protected]>Acked-by Brian Norris <[email protected]>
Thanks, 1 patch applied to wireless-drivers-next.git:
efacc699139e mtd: add arch dependency for MTD_BCM47XXSFLASH symbol
Signature · 2 lines
Sent by pwcli https://patchwork.kernel.org/patch/9236053/