Skip to content

Commit

Permalink
beagle: fix a race condition due to missing dependency
Browse files Browse the repository at this point in the history
The beaglebone bone and green drivers didn't set sysfs-gpio as
prerequisite, causing a race condition during initialization.
  • Loading branch information
maruel committed May 25, 2020
1 parent 588b1a3 commit dd85de5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion host/beagle/bone/bone.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (d *driver) String() string {
}

func (d *driver) Prerequisites() []string {
return []string{"am335x"}
return []string{"am335x", "sysfs-gpio"}
}

func (d *driver) After() []string {
Expand Down
2 changes: 1 addition & 1 deletion host/beagle/green/green.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (d *driver) String() string {
}

func (d *driver) Prerequisites() []string {
return []string{"am335x"}
return []string{"am335x", "sysfs-gpio"}
}

func (d *driver) After() []string {
Expand Down

0 comments on commit dd85de5

Please sign in to comment.