Adding Runtime Power Management Capabilities to Device Drivers
summary
Adds runtime-PM to the LTRF216A light sensor driver using helper calls like pm_runtime_resume_and_get and pm_runtime_mark_last_busy, enabling autosuspend with a 1 s inactivity delay via pm_runtime_set_autosuspend_delay. Device resumes before I/O and marks last busy after, so PM core defers suspend; overall system power drops when many devices adopt this pattern. Suspend clears hardware registers; solution is regcache restore on resume.
AI-written summary · about
chapters (5)
- 0:00Start
- 10:14Helper functions Initialization and Enabling
- 15:20Helper functions - Autosuspend
- 22:31Adding RPM support to LTRF216A light sensor driver
- 26:10What issues you might face?
related talks
41mLinux Power Management Features & Their Interactions, Part 2
59mDevice power management and idle
36mLinux Power Management Features, Their Relationships and Interactions
36mLinux Power Management Features, Their Relationships and Interactions
33mRemote Core Power Management in AMP Systems
25mMultiple system-wide low power-states
47mLinux Kernel Power Management - 101
32mCPU Power Saving Methods for Real-time Workloads
