Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176299727
D17978.id50371.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
743 B
Referenced Files
None
Subscribers
None
D17978.id50371.diff
View Options
Index: sys/dev/extres/regulator/regulator_fixed.c
===================================================================
--- sys/dev/extres/regulator/regulator_fixed.c
+++ sys/dev/extres/regulator/regulator_fixed.c
@@ -161,10 +161,13 @@
enable = sc->param->boot_on || sc->param->always_on;
if (!sc->param->enable_active_high)
enable = !enable;
- rv = GPIO_PIN_SET(pin->dev, pin->pin, enable);
- if (rv != 0) {
- device_printf(dev, "Cannot set GPIO pin: %d\n", pin->pin);
- return (rv);
+ if (enable) {
+ rv = GPIO_PIN_SET(pin->dev, pin->pin, enable);
+ if (rv != 0) {
+ device_printf(dev, "Cannot set GPIO pin: %d\n",
+ pin->pin);
+ return (rv);
+ }
}
rv = GPIO_PIN_SETFLAGS(pin->dev, pin->pin, flags);
if (rv != 0) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 18, 6:34 PM (3 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41007836
Default Alt Text
D17978.id50371.diff (743 B)
Attached To
Mode
D17978: regulator_fixed: Do not disable fixed regulator at probe
Attached
Detach File
Event Timeline
Log In to Comment