bcma: fix building without OF_IRQ
Quoted 17 lines · On Wednesday 23 March 2016 15:52:43 Kalle Valo wrote:
Quoted 17 lines
The bcma driver core can be built with or without DT support, but it fails to build when
CONFIG_OF=yandCONFIG_OF_IRQ=n, which can happen on platforms that do not support IRQ domains.ERROR: "
irq_create_of_mapping" [drivers/bcma/bcma.ko] undefined!
ERROR: "of_irq_parse_raw" [drivers/bcma/bcma.ko] undefined!
ERROR: "of_irq_parse_one" [drivers/bcma/bcma.ko] undefined!This adds another compile-time check for
OF_IRQ, but also gets rid of now unneeded #ifdef checks: Using the simplerIS_ENABLED()check forOF_IRQalso covers the case of not havingCONFIG_OFenabled. The check forCONFIG_OF_ADDRESSwas added to allow building on architectures withoutOF_ADDRESS, but that has been addressed already inb1d06b60e90c("of: Provide static inline function forof_translate_addressif needed").
Quoted 4 lines
Quoted 1 line
Signed-off-by Arnd Bergmann <[email protected]>Thanks, applied to wireless-drivers.git.
Thanks! I see you have applied patch 1/2 but not patch 2/2.
As mentioned in the comment for patch 2, it should be tested better, but I want to make sure that someone still has it on their radar.
Arnd
Quoted 20 lines · Arnd Bergmann
Quoted 19 lines · On Wednesday 23 March 2016 15:52:43 Kalle Valo wrote:
Quoted 18 lines
The bcma driver core can be built with or without DT support, but it fails to build when
CONFIG_OF=yandCONFIG_OF_IRQ=n, which can happen on platforms that do not support IRQ domains.ERROR: "
irq_create_of_mapping" [drivers/bcma/bcma.ko] undefined!
ERROR: "of_irq_parse_raw" [drivers/bcma/bcma.ko] undefined!
ERROR: "of_irq_parse_one" [drivers/bcma/bcma.ko] undefined!This adds another compile-time check for
OF_IRQ, but also gets rid of now unneeded #ifdef checks: Using the simplerIS_ENABLED()check forOF_IRQalso covers the case of not havingCONFIG_OFenabled. The check forCONFIG_OF_ADDRESSwas added to allow building on architectures withoutOF_ADDRESS, but that has been addressed already inb1d06b60e90c("of: Provide static inline function forof_translate_addressif needed").Signed-off-by Arnd Bergmann <[email protected]>
Quoted 8 lines
Quoted 2 lines
Thanks, applied to wireless-drivers.git.
Thanks! I see you have applied patch 1/2 but not patch 2/2.
As mentioned in the comment for patch 2, it should be tested better, but I want to make sure that someone still has it on their radar.
Just to avoid any confusions I assume you are talking about this patch:
[v2] bcma: use of_dma_configure() to set initial dma mask
https://patchwork.kernel.org/patch/8608751/
It's on my patchwork queue and I'm planning to apply it to wireless-drivers-next once it opens again. But I'm not able to test the patch myself, I hope someone else could do it.
Signature · 1 line
Kalle Valo
Quoted 27 lines · On Thursday 24 March 2016 15:53:14 Kalle Valo wrote:
Quoted 25 lines · Arnd Bergmann
Quoted 17 lines · On Wednesday 23 March 2016 15:52:43 Kalle Valo wrote:
Quoted 17 lines
The bcma driver core can be built with or without DT support, but it fails to build when
CONFIG_OF=yandCONFIG_OF_IRQ=n, which can happen on platforms that do not support IRQ domains.ERROR: "
irq_create_of_mapping" [drivers/bcma/bcma.ko] undefined!
ERROR: "of_irq_parse_raw" [drivers/bcma/bcma.ko] undefined!
ERROR: "of_irq_parse_one" [drivers/bcma/bcma.ko] undefined!This adds another compile-time check for
OF_IRQ, but also gets rid of now unneeded #ifdef checks: Using the simplerIS_ENABLED()check forOF_IRQalso covers the case of not havingCONFIG_OFenabled. The check forCONFIG_OF_ADDRESSwas added to allow building on architectures withoutOF_ADDRESS, but that has been addressed already inb1d06b60e90c("of: Provide static inline function forof_translate_addressif needed").Quoted 4 lines
Quoted 1 line
Signed-off-by Arnd Bergmann <[email protected]>Thanks, applied to wireless-drivers.git.
Thanks! I see you have applied patch 1/2 but not patch 2/2.
Quoted 8 lines
Quoted 3 lines
As mentioned in the comment for patch 2, it should be tested better, but I want to make sure that someone still has it on their radar.
Just to avoid any confusions I assume you are talking about this patch:
[v2] bcma: use
of_dma_configure()to set initial dma mask
https://patchwork.kernel.org/patch/8608751/
Correct.
Quoted 2 lines
It's on my patchwork queue and I'm planning to apply it to wireless-drivers-next once it opens again.
Ok, sounds good.
Arnd