pinctrl: qcom: ssbi-mpp: hardcode IRQ counts
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 8 Oct 2021 01:25:12 +0000 (04:25 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 17 Oct 2021 21:31:59 +0000 (23:31 +0200)
commit461030b804fbc615c2931787425e3dc717b03abc
tree971f851c886c360ae66a80d4b7ab47e694d2c772
parentf9a06b8109516c35be33c4cd6c86c07a8f4a740f
pinctrl: qcom: ssbi-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,ssbi-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-14-dmitry.baryshkov@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c