drivers: gpio_sifive: Disable interrupts

The interrupt functionality of this driver is incomplete,
but for the sake of not slowing down the GPIO API refactor,
I'm just returning -ENOTSUP until we can track down the issue.

Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
This commit is contained in:
Nathaniel Graff 2019-10-30 10:14:58 -07:00 committed by Carles Cufí
commit 3c986e970d

View file

@ -341,6 +341,12 @@ static int gpio_sifive_pin_interrupt_configure(struct device *dev,
irq_disable(gpio_sifive_pin_irq(cfg->gpio_irq_base, pin));
break;
case GPIO_INT_MODE_LEVEL:
/* TODO: The interrupt functionality of this driver is incomplete,
* but for the sake of not slowing down the GPIO API refactor,
* I'm just returning -ENOTSUP until we can track down the issue.
*/
return -ENOTSUP;
gpio->rise_ie &= ~BIT(pin);
gpio->fall_ie &= ~BIT(pin);
@ -356,6 +362,12 @@ static int gpio_sifive_pin_interrupt_configure(struct device *dev,
irq_enable(gpio_sifive_pin_irq(cfg->gpio_irq_base, pin));
break;
case GPIO_INT_MODE_EDGE:
/* TODO: The interrupt functionality of this driver is incomplete,
* but for the sake of not slowing down the GPIO API refactor,
* I'm just returning -ENOTSUP until we can track down the issue.
*/
return -ENOTSUP;
gpio->high_ie &= ~BIT(pin);
gpio->low_ie &= ~BIT(pin);