Page MenuHomeFreeBSD

D28911.id84969.diff
No OneTemporary

D28911.id84969.diff

diff --git a/sys/arm/mv/mvebu_gpio.c b/sys/arm/mv/mvebu_gpio.c
--- a/sys/arm/mv/mvebu_gpio.c
+++ b/sys/arm/mv/mvebu_gpio.c
@@ -161,6 +161,7 @@
pin->gp_flags &= ~(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT);
if (flags & GPIO_PIN_OUTPUT) {
pin->gp_flags |= GPIO_PIN_OUTPUT;
+ gpio_write(sc, GPIO_BLINK_ENA, pin, 0);
gpio_write(sc, GPIO_CONTROL_SET, pin, 1);
} else {
pin->gp_flags |= GPIO_PIN_INPUT;
@@ -779,8 +780,6 @@
gpio_write(sc, GPIO_INT_MASK, pin, 0);
gpio_write(sc, GPIO_INT_LEVEL_MASK, pin, 0);
gpio_write(sc, GPIO_INT_CAUSE, pin, 0);
- gpio_write(sc, GPIO_DATA_IN_POL, pin, 1);
- gpio_write(sc, GPIO_BLINK_ENA, pin, 0);
}
if (sc->irq_res[0] != NULL) {

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 25, 9:15 PM (1 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26179083
Default Alt Text
D28911.id84969.diff (684 B)

Event Timeline