I'd like to use pm_domain's power management operations instead of drivers' dev_pm_ops. So I created this pseudo kernel module to test pm domain ops.
- Load module
$ sudo insmod ./power-domain-test.ko
-
Runtime PM Test
- Increase reference count.
$ sudo echo 1 > /sys/devices/platform/vpd.0/open
- Decrease reference count.
$ sudo echo 1 > /sys/devices/platform/vpd.0/close
- Increase reference count.
-
System Suspend Test
$ sudo echo devices > /sys/power/pm_test
$ sudo echo disk > /sys/power/state