• L
    pinctrl: st: use gpiolib irqchip helpers · 130cbe30
    Linus Walleij 提交于
    This lets the gpiolib core handle the irqchip set-up and
    chained IRQ on the primary (behind the mux) IRQ chip in
    the st pinctrl driver.
    
    Default irq type is set to level low at irqchip add time.
    
    The v1 was sent by Linus
    (https://lkml.org/lkml/2014/4/4/287).
    
    Two changes were necessary to make it to work properly
    on STiH416:
      1 - dev reference was not passed to the gpio_chip
          struct, causing a panic.
      2 - gpiochip_irqchip_add passed IRQ_TYPE_NONE as
          default type, which caused lot of warnings at
          init time. I choose IRQ_TYPE_LEVEL_LOW as default.
    
    Cc: Srinivas Kandagatla <srinivas.kandagatla@gmail.com>
    Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
    Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
    Signed-off-by: NMaxime COQUELIN <maxime.coquelin@st.com>
    130cbe30
Kconfig 8.4 KB