In addition to my comment (#2), I further checked and noticed that for powerdebug to display gpio information, the GPIO first has to be exported to userspace by writing the GPIO number in /sys/class/gpio/export file.
May be some warning message can be added in addition to printing the message in comment (#5), to avoid user surprise.
In addition to my comment (#2), I further checked and noticed that for powerdebug to display gpio information, the GPIO first has to be exported to userspace by writing the GPIO number in /sys/class/ gpio/export file.
May be some warning message can be added in addition to printing the message in comment (#5), to avoid user surprise.