Message ID | 20190119204252.18370-1-masneyb@onstation.org (mailing list archive) |
---|---|
Headers | show |
Series | qcom: spmi: add support for hierarchical IRQ chip | expand |
On Sat, Jan 19, 2019 at 9:43 PM Brian Masney <masneyb@onstation.org> wrote: > This patch series adds hierarchical IRQ chip support to spmi-gpio so > that device tree consumers can request an IRQ directly from the GPIO > block rather than having to request an IRQ from the underlying PMIC. > > For more background information, see the email thread with Linus > Walleij's excellent description of the problem at > https://www.spinics.net/lists/linux-gpio/msg34655.html. > > This work was tested on a LG Nexus 5 (hammerhead) phone. My status page > at https://masneyb.github.io/nexus-5-upstream/ describes what is working > so far with the upstream kernel. > > Changes since v5: > - Patch 4: Set handler to edge or level when the IRQ is mapped. > - Patch 7: Change IRQ_TYPE_NONE to IRQ_TYPE_EDGE_RISING > - Patch 14: New patch to validate type when mapping IRQ If Marc Z is happy I think I will apply all patches on an immutable branch in the pin control tree, so that ARM SoC and GPIO can pull it in later if need be. (E.g. if they get conflicts.) I was thinking to also include the DTS changes as it all is so neatly coupled, then offer the branch to ARM SoC. Anyone against? Yours, Linus Walleij
On Sat, 19 Jan 2019 23:13:45 +0000, Linus Walleij <linus.walleij@linaro.org> wrote: > > On Sat, Jan 19, 2019 at 9:43 PM Brian Masney <masneyb@onstation.org> wrote: > > > This patch series adds hierarchical IRQ chip support to spmi-gpio so > > that device tree consumers can request an IRQ directly from the GPIO > > block rather than having to request an IRQ from the underlying PMIC. > > > > For more background information, see the email thread with Linus > > Walleij's excellent description of the problem at > > https://www.spinics.net/lists/linux-gpio/msg34655.html. > > > > This work was tested on a LG Nexus 5 (hammerhead) phone. My status page > > at https://masneyb.github.io/nexus-5-upstream/ describes what is working > > so far with the upstream kernel. > > > > Changes since v5: > > - Patch 4: Set handler to edge or level when the IRQ is mapped. > > - Patch 7: Change IRQ_TYPE_NONE to IRQ_TYPE_EDGE_RISING > > - Patch 14: New patch to validate type when mapping IRQ > > If Marc Z is happy I think I will apply all patches on an immutable branch in As a matter of fact, I am! > the pin control tree, so that ARM SoC and GPIO can pull it in later if need > be. (E.g. if they get conflicts.) > > I was thinking to also include the DTS changes as it all is so neatly > coupled, then offer the branch to ARM SoC. > > Anyone against? No objection from me whatsoever. Thanks, M.
On Sat, Jan 19, 2019 at 9:43 PM Brian Masney <masneyb@onstation.org> wrote: > This patch series adds hierarchical IRQ chip support to spmi-gpio so > that device tree consumers can request an IRQ directly from the GPIO > block rather than having to request an IRQ from the underlying PMIC. I have applied all these patches including the DTS patches to the GPIO tree and pushed for linux-next. If all works out well I will solidify the branch, pull it into the pin control tree as well and offer the branch to ARM SoC. Yours, Linus Walleij
On Tue, Jan 22, 2019 at 04:31:20PM +0100, Linus Walleij wrote: > On Sat, Jan 19, 2019 at 9:43 PM Brian Masney <masneyb@onstation.org> wrote: > > > This patch series adds hierarchical IRQ chip support to spmi-gpio so > > that device tree consumers can request an IRQ directly from the GPIO > > block rather than having to request an IRQ from the underlying PMIC. > > I have applied all these patches including the DTS patches to the GPIO > tree and pushed for linux-next. > > If all works out well I will solidify the branch, pull it into the pin control > tree as well and offer the branch to ARM SoC. Thanks Linus!