Closed
Description
I called this function in the probe and the handler is immeadiately called and the value on the GPIO is 0. It seems the irq handler is configured with POLLing enabled but I want only rising edge.
rc = devm_request_irq(&vhub->spi->dev, vhub->irq, ast_vhub_irq, IRQF_TRIGGER_RISING | IRQF_SHARED,
KBUILD_MODNAME, vhub);
Under /proc/interrupts the interrupt appears with the "Edge" attribute
50: 3744 0 0 0 pinctrl-bcm2835 17 Edge v_hub
And the pin is defined:
GPIO 17: level=0 fsel=0 func=INPUT pull=DOWN
Is this a bug or what leads to this?
Tested with PI4 4GB and kernel
Linux pi 5.10.4-v8+ #1389 SMP PREEMPT Wed Jan 6 13:52:18 GMT 2021 aarch64 GNU/Linux
Metadata
Metadata
Assignees
Labels
No labels