zephyriot / zephyr-issues

0 stars 0 forks source link

Power management-Device State #1789

Open nashif opened 7 years ago

nashif commented 7 years ago

Reported by Robert Beatty:

The RTOS shall facilitate device state power management.

(Imported from Jira ZEP-1944)

nashif commented 7 years ago

by Robert Beatty:

"Legacy Requirement , already supported Confirm if current support is sufficient"

nashif commented 7 years ago

by Youvedeep Singh:

Hi Robert Beatty

Current Zephyr implementation "Legacy suspend/resume of device" while entering into Sleep state. Any driver can make call back to device_set_power_state(struct device *device, uint32_t device_power_state) with 2nd parameter as "DEVICE_PM_SUSPEND_STATE" (for suspending) or DEVICE_PM_ACTIVE_STATE. provided device has implemented "device_pm_control" inside "device --> config".

Can you please elaborate further - what is needed on this front from OS perspective?

nashif commented 7 years ago

by Robert Beatty:

Youvedeep Singh , responding directly over email.