pinctrl: rockchip: create irq mapping in gpio_to_irq
authorJianqun Xu <jay.xu@rock-chips.com>
Tue, 13 Oct 2020 06:37:31 +0000 (14:37 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 4 Nov 2020 14:00:28 +0000 (15:00 +0100)
commit8045ec42d14c6f77b5e925d1421150c043dfb75d
tree240d2747cb0f67634a3574731aef391f1311c288
parent63fbf8013b2f6430754526ef9594f229c7219b1f
pinctrl: rockchip: create irq mapping in gpio_to_irq

Remove totally irq mappings create in probe, the gpio irq mapping will
be created when do
    gpio_to_irq ->
        rockchip_gpio_to_irq ->
            irq_create_mapping

This patch can speed up system boot on, also abandon many unused irq
mappings' create.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Kever Yang<kever.yang@rock-chips.com>
Link: https://lore.kernel.org/r/20201013063731.3618-4-jay.xu@rock-chips.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rockchip.c