From 6342dd3a191a4ced6c72a2415808df3a4455ccd4 Mon Sep 17 00:00:00 2001 From: Karan Misra Date: Sun, 30 Mar 2014 04:15:21 +0530 Subject: [PATCH] bbb: add a comment explaining why we cannot disable the analog and pwm modules by removing them from the slots file --- bbb.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bbb.go b/bbb.go index 2a6ce55..61534d6 100644 --- a/bbb.go +++ b/bbb.go @@ -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)