Skip to content

Commit 1097995

Browse files
nategraff-sifivegalak
authored andcommitted
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 <[email protected]>
1 parent 66ca48a commit 1097995

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

drivers/gpio/gpio_sifive.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,12 @@ static int gpio_sifive_pin_interrupt_configure(struct device *dev,
337337
irq_disable(gpio_sifive_pin_irq(cfg->gpio_irq_base, pin));
338338
break;
339339
case GPIO_INT_MODE_LEVEL:
340+
/* TODO: The interrupt functionality of this driver is incomplete,
341+
* but for the sake of not slowing down the GPIO API refactor,
342+
* I'm just returning -ENOTSUP until we can track down the issue.
343+
*/
344+
return -ENOTSUP;
345+
340346
gpio->rise_ie &= ~BIT(pin);
341347
gpio->fall_ie &= ~BIT(pin);
342348

@@ -352,6 +358,12 @@ static int gpio_sifive_pin_interrupt_configure(struct device *dev,
352358
irq_enable(gpio_sifive_pin_irq(cfg->gpio_irq_base, pin));
353359
break;
354360
case GPIO_INT_MODE_EDGE:
361+
/* TODO: The interrupt functionality of this driver is incomplete,
362+
* but for the sake of not slowing down the GPIO API refactor,
363+
* I'm just returning -ENOTSUP until we can track down the issue.
364+
*/
365+
return -ENOTSUP;
366+
355367
gpio->high_ie &= ~BIT(pin);
356368
gpio->low_ie &= ~BIT(pin);
357369

0 commit comments

Comments
 (0)