bbb: add a comment explaining why we cannot disable the analog and pwm

modules by removing them from the slots file
This commit is contained in:
Karan Misra 2014-03-30 04:15:21 +05:30
parent 9210e4ef1a
commit 6342dd3a19
1 changed files with 4 additions and 0 deletions

4
bbb.go
View File

@ -117,6 +117,10 @@ func bbbEnsureFeatureEnabled(id string) error {
return err
}
// This cannot be currently used to disable things like the
// analog and pwm modules. Removing them from slots file can
// potentially cause a kernel panic and unsettle things. So the
// recommended thing to do is to simply reboot.
func bbbEnsureFeatureDisabled(id string) error {
pattern := "/sys/devices/bone_capemgr.*/slots"
file, err := findFirstMatchingFile(pattern)