Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159484906
D28911.id85066.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
691 B
Referenced Files
None
Subscribers
None
D28911.id85066.diff
View Options
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_modify(sc, GPIO_BLINK_ENA, pin, 0);
gpio_modify(sc, GPIO_CONTROL_SET, pin, 1);
} else {
pin->gp_flags |= GPIO_PIN_INPUT;
@@ -779,8 +780,6 @@
gpio_modify(sc, GPIO_INT_MASK, pin, 0);
gpio_modify(sc, GPIO_INT_LEVEL_MASK, pin, 0);
gpio_modify(sc, GPIO_INT_CAUSE, pin, 0);
- gpio_modify(sc, GPIO_DATA_IN_POL, pin, 1);
- gpio_modify(sc, GPIO_BLINK_ENA, pin, 0);
}
if (sc->irq_res[0] != NULL) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jun 15, 6:58 PM (21 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33973389
Default Alt Text
D28911.id85066.diff (691 B)
Attached To
Mode
D28911: mvebu_gpio: do not force data in value invertion during attach
Attached
Detach File
Event Timeline
Log In to Comment