]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mpc8xxx: Fix support for IRQ_TYPE_LEVEL_LOW flow_type in mpc85xx
authorPali Rohár <pali@kernel.org>
Tue, 6 Sep 2022 10:54:31 +0000 (12:54 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 7 Sep 2022 11:17:23 +0000 (13:17 +0200)
commit75622f48169a45942d7bf46fc53c58837acf59c0
treec6eaf3cc7b491f1c7b2e31e898c2ef39cbde795d
parentfb4ff2bbeecbd28191ebeb06694fc5cebf5f1075
gpio: mpc8xxx: Fix support for IRQ_TYPE_LEVEL_LOW flow_type in mpc85xx

Commit edda97a9e5d2 ("powerpc/5xxx: extend mpc8xxx_gpio driver to support
mpc512x gpios") implemented support for IRQ_TYPE_LEVEL_LOW flow type in
mpc512x via falling edge type. Do same for mpc85xx which support was added
in commit 175654c2348a ("powerpc: Add interrupt support to mpc8xxx_gpio").

Fixes probing of lm90 hwmon driver on mpc85xx based board which use level
interrupt. Without it kernel prints error and refuse lm90 to work:

    [   15.258370] genirq: Setting trigger mode 8 for irq 49 failed (mpc8xxx_irq_set_type+0x0/0xf8)
    [   15.267168] lm90 0-004c: cannot request IRQ 49
    [   15.272708] lm90: probe of 0-004c failed with error -22

Fixes: 175654c2348a ("powerpc: Add interrupt support to mpc8xxx_gpio")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-mpc8xxx.c