On Sat, 6 Aug 2016 10:18:03 +0200 Linus Walleij <linus.wall...@linaro.org> wrote:
> This reverts commit 1e2a7d78499ec8859d2b469051b7b80bad3b08aa. > > When using the APQ8060 Dragonboard I have lost all interrupts from > the PMIC after this commit: power button, keypad, RTC alarm and > all GPIOs. Reverting the commit solves the issue. > > The affected irqchip driver is drivers/mfd/pm8921-core.c > > I cannot immediately see what the problem is, so if you have a > better solution than just reverting the patch, please suggest. > > Cc: Jon Hunter <jonath...@nvidia.com> > Cc: Marc Zyngier <marc.zyng...@arm.com> > Cc: Thomas Gleixner <t...@linutronix.de> > Cc: John Stultz <john.stu...@linaro.org> > Cc: Björn Andersson <bjorn.anders...@linaro.org> > Cc: Stephen Boyd <sb...@codeaurora.org> > Cc: Abhijeet Dharmapurikar <adhar...@codeaurora.org> > Signed-off-by: Linus Walleij <linus.wall...@linaro.org> > --- > I am pretty sure that this is the same bug that John Stultz is > seeing on the Nexus 7, John: please confirm. Hi Linus, Before blindly reverting this patch (which itself is going to cause other things to break), I'd like to understand the failure mode. Any chance you could instrument pm8xxx_irq_set_type() and see if we get called (and which which parameters)? A call stack would be ideal. I'm normally expecting __irq_set_trigger() to be called from manage.c::__setup_irq(), but your failure mode would tend to indicate that it is not going that way. Is there any irq line sharing going on by any chance? Also, John has now isolated the failure to a much simpler piece of code, so I'd hope to narrow it down pretty quickly (see the other thread). Thanks, M. -- Jazz is not dead. It just smells funny.