• Linus Walleij's avatar
    pinctrl: st: Pass irqchip when adding gpiochip · c77a4de2
    Linus Walleij authored
    We need to convert all old gpio irqchips to pass the irqchip
    setup along when adding the gpio_chip. For more info see
    drivers/gpio/TODO.
    
    For chained irqchips this is a pretty straight-forward
    conversion: the ST pin controller errors out of adding a
    irqchip if the interrupt is invalid or missing or if the
    irqmux is not present: the irqchip should not be added
    if either of these errors happen, so rewrite the code to
    deal with that. Keep the exit path where the gpio_chip
    is added no matter what the status of the irq is.
    
    Cc: Benjamin Gaignard <benjamin.gaignard@st.com>
    Cc: Amelie Delaunay <amelie.delaunay@st.com>
    Cc: Patrice Chotard <patrice.chotard@st.com>
    Cc: Thierry Reding <thierry.reding@gmail.com>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    Link: https://lore.kernel.org/r/20191001135147.29416-1-linus.walleij@linaro.org
    c77a4de2
pinctrl-st.c 47.3 KB