pinctrl: qcom: spmi-mpp: hardcode IRQ counts
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 8 Oct 2021 01:25:14 +0000 (04:25 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 17 Oct 2021 21:32:33 +0000 (23:32 +0200)
commitf24dbaaab48a2fadefa27071580b6d1aeb9378b6
treec22254b1b12e86e53858d20bb92d6cbdd328de54
parent56b2443fb4ba5b17ffa9c0e902fe7791cc48b086
pinctrl: qcom: spmi-mpp: hardcode IRQ counts

The probing of this driver calls platform_irq_count, which will
setup all of the IRQs that are configured in device tree. In
preparation for converting this driver to be a hierarchical IRQ
chip, hardcode the IRQ count based on the hardware type so that all
the IRQs are not configured immediately and are configured on an
as-needed basis later in the boot process.

This change will also allow for the removal of the interrupts property
later in this patch series once the hierarchical IRQ chip support is in.

This patch also removes the generic qcom,spmi-mpp OF match since we
don't know the number of pins. All of the existing upstream bindings
already include the more-specific binding.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211008012524.481877-16-dmitry.baryshkov@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-spmi-mpp.c