[Letux-kernel] twl gpios / headset detect on gta04a5

Andreas Kemnade andreas at kemnade.info
Mon Sep 24 12:56:21 CEST 2018


On Sun, 23 Sep 2018 21:23:50 +0200
"H. Nikolaus Schaller" <hns at goldelico.com> wrote:


> > 
> > we are failing here:
> > sound/soc/soc-jack.c:
> >                ret = request_any_context_irq(gpiod_to_irq(gpios[i].desc),
> >                                              gpio_handler,
> >                                              IRQF_TRIGGER_RISING |
> >                                              IRQF_TRIGGER_FALLING,
> >                                              gpios[i].name,
> >                                              &gpios[i]);
> > 
> > Maybe irq does not work for twl gpio.  
> 
> It should...
> AFAIR, there are card-detect gpios (which we do not use in GTA04) but other OMAP3 devices use them.
> But I don't know if they are edge triggered?
> 
well, we need to compile twl4030-gpio statically
        /* maybe setup IRQs */
        if (is_module()) {
                dev_err(&pdev->dev, "can't dispatch IRQs from modules\n");
                goto no_irqs;
        }

Regards,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20180924/1a5298f9/attachment.asc>


More information about the Letux-kernel mailing list