Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1240395 > unrolled thread
| Started by | Sudip Mukherjee <sudipm.mukherjee@gmail.com> |
|---|---|
| First post | 2015-10-06 14:10 +0200 |
| Last post | 2015-10-16 17:10 +0200 |
| Articles | 5 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH] gpio: make GPIO_OMAP bool instead of tristate Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-10-06 14:10 +0200
Re: [PATCH] gpio: make GPIO_OMAP bool instead of tristate Grygorii Strashko <grygorii.strashko@ti.com> - 2015-10-06 22:50 +0200
Re: [PATCH] gpio: make GPIO_OMAP bool instead of tristate Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-10-07 09:30 +0200
Re: [PATCH] gpio: make GPIO_OMAP bool instead of tristate Grygorii Strashko <grygorii.strashko@ti.com> - 2015-10-07 21:20 +0200
Re: [PATCH] gpio: make GPIO_OMAP bool instead of tristate Linus Walleij <linus.walleij@linaro.org> - 2015-10-16 17:10 +0200
| From | Sudip Mukherjee <sudipm.mukherjee@gmail.com> |
|---|---|
| Date | 2015-10-06 14:10 +0200 |
| Subject | [PATCH] gpio: make GPIO_OMAP bool instead of tristate |
| Message-ID | <qgzea-5GN-21@gated-at.bofh.it> |
While building arm allmodconfig the build fails with the error:
ERROR: "handle_bad_irq" [drivers/gpio/gpio-omap.ko] undefined!
The build breaks as handle_bad_irq is not exported for module use.
Fixes: 450fa54cfd66 ("gpio: omap: convert to use generic irq handler")
Cc: Tony Lindgren <tony@atomide.com>
Cc: Austin Schuh <austin@peloton-tech.com>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
Same problem for pinctrl was fixed by
5ba341604a054294aeb812603349bba024d716ee
And for your reference:
https://lkml.org/lkml/2014/2/25/278
drivers/gpio/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 63000b1..d910fd1 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -330,7 +330,7 @@ config GPIO_OCTEON
family of SOCs.
config GPIO_OMAP
- tristate "TI OMAP GPIO support" if ARCH_OMAP2PLUS || COMPILE_TEST
+ bool "TI OMAP GPIO support" if ARCH_OMAP2PLUS || COMPILE_TEST
default y if ARCH_OMAP
depends on ARM
select GENERIC_IRQ_CHIP
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Grygorii Strashko <grygorii.strashko@ti.com> |
|---|---|
| Date | 2015-10-06 22:50 +0200 |
| Message-ID | <qgHlo-p0-11@gated-at.bofh.it> |
| In reply to | #1240395 |
On 10/06/2015 07:01 AM, Sudip Mukherjee wrote:
> While building arm allmodconfig the build fails with the error:
> ERROR: "handle_bad_irq" [drivers/gpio/gpio-omap.ko] undefined!
>
> The build breaks as handle_bad_irq is not exported for module use.
Not sure if this is right thing to do. We really want it to be a module if needed.
The handle_bad_irq() was used in this driver to catch the case when Omap
GPIO IRQ is enabled before calling .irq_set_type()
I think there are few option:
- export handle_bad_irq()
- pass NULL in gpiochip_irqchip_add() instead of handle_bad_irq()
- use handle_simple_irq()
- revert this change
Thought second one should work.
>
> Fixes: 450fa54cfd66 ("gpio: omap: convert to use generic irq handler")
> Cc: Tony Lindgren <tony@atomide.com>
> Cc: Austin Schuh <austin@peloton-tech.com>
> Cc: Grygorii Strashko <grygorii.strashko@ti.com>
> Cc: Santosh Shilimkar <ssantosh@kernel.org>
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
> ---
>
> Same problem for pinctrl was fixed by
> 5ba341604a054294aeb812603349bba024d716ee
>
> And for your reference:
> https://lkml.org/lkml/2014/2/25/278
>
> drivers/gpio/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
> index 63000b1..d910fd1 100644
> --- a/drivers/gpio/Kconfig
> +++ b/drivers/gpio/Kconfig
> @@ -330,7 +330,7 @@ config GPIO_OCTEON
> family of SOCs.
>
> config GPIO_OMAP
> - tristate "TI OMAP GPIO support" if ARCH_OMAP2PLUS || COMPILE_TEST
> + bool "TI OMAP GPIO support" if ARCH_OMAP2PLUS || COMPILE_TEST
> default y if ARCH_OMAP
> depends on ARM
> select GENERIC_IRQ_CHIP
>
--
regards,
-grygorii
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Sudip Mukherjee <sudipm.mukherjee@gmail.com> |
|---|---|
| Date | 2015-10-07 09:30 +0200 |
| Message-ID | <qgRkJ-6pe-1@gated-at.bofh.it> |
| In reply to | #1240982 |
On Tue, Oct 06, 2015 at 03:45:07PM -0500, Grygorii Strashko wrote: > On 10/06/2015 07:01 AM, Sudip Mukherjee wrote: > > While building arm allmodconfig the build fails with the error: > > ERROR: "handle_bad_irq" [drivers/gpio/gpio-omap.ko] undefined! > > > > The build breaks as handle_bad_irq is not exported for module use. > > Not sure if this is right thing to do. We really want it to be a module if needed. > > The handle_bad_irq() was used in this driver to catch the case when Omap > GPIO IRQ is enabled before calling .irq_set_type() > > I think there are few option: > - export handle_bad_irq() > - pass NULL in gpiochip_irqchip_add() instead of handle_bad_irq() > - use handle_simple_irq() > - revert this change > > Thought second one should work. I think that should be ok. If you want me to test the patch in my setup to verify that it fixes the build failure please let me know. But going through the old thread it looked like plan was on to export handle_bad_irq() atleast thats what looks like from Linus's (Linus Walleij) reply in https://lkml.org/lkml/2014/2/25/119 regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Grygorii Strashko <grygorii.strashko@ti.com> |
|---|---|
| Date | 2015-10-07 21:20 +0200 |
| Message-ID | <qh2pQ-5yQ-5@gated-at.bofh.it> |
| In reply to | #1241190 |
On 10/07/2015 02:27 AM, Sudip Mukherjee wrote: > On Tue, Oct 06, 2015 at 03:45:07PM -0500, Grygorii Strashko wrote: >> On 10/06/2015 07:01 AM, Sudip Mukherjee wrote: >>> While building arm allmodconfig the build fails with the error: >>> ERROR: "handle_bad_irq" [drivers/gpio/gpio-omap.ko] undefined! >>> >>> The build breaks as handle_bad_irq is not exported for module use. >> >> Not sure if this is right thing to do. We really want it to be a module if needed. >> >> The handle_bad_irq() was used in this driver to catch the case when Omap >> GPIO IRQ is enabled before calling .irq_set_type() >> >> I think there are few option: >> - export handle_bad_irq() >> - pass NULL in gpiochip_irqchip_add() instead of handle_bad_irq() >> - use handle_simple_irq() >> - revert this change >> >> Thought second one should work. > > I think that should be ok. If you want me to test the patch in my setup > to verify that it fixes the build failure please let me know. > > But going through the old thread it looked like plan was on to > export handle_bad_irq() atleast thats what looks like from Linus's > (Linus Walleij) reply in https://lkml.org/lkml/2014/2/25/119 There is patch from Arnd which implements option one. https://lkml.org/lkml/2015/10/6/836 -- regards, -grygorii -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Date | 2015-10-16 17:10 +0200 |
| Message-ID | <qkeNQ-1vA-15@gated-at.bofh.it> |
| In reply to | #1240395 |
On Tue, Oct 6, 2015 at 2:01 PM, Sudip Mukherjee
<sudipm.mukherjee@gmail.com> wrote:
> While building arm allmodconfig the build fails with the error:
> ERROR: "handle_bad_irq" [drivers/gpio/gpio-omap.ko] undefined!
>
> The build breaks as handle_bad_irq is not exported for module use.
>
> Fixes: 450fa54cfd66 ("gpio: omap: convert to use generic irq handler")
> Cc: Tony Lindgren <tony@atomide.com>
> Cc: Austin Schuh <austin@peloton-tech.com>
> Cc: Grygorii Strashko <grygorii.strashko@ti.com>
> Cc: Santosh Shilimkar <ssantosh@kernel.org>
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Fixed upstream. Dropping this patch.
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web