Skip to content

Commit

Permalink
drivers: gpio_sifive: Disable interrupts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
nategraff-sifive authored and galak committed Nov 13, 2019
1 parent 72b71f8 commit a205c54
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions drivers/gpio/gpio_sifive.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit a205c54

Please sign in to comment.