Settings | Sign in | Sign up

The author has 3 posts.

Linux内核 Runtime PM

Floor 4 巨大八爪鱼 12/5/25 15:16
参考驱动程序:Luckfox_Nova_SDK_250430/kernel/drivers/input/misc/bma150.c
巨大八爪鱼 12/5/25 16:43
电源管理入门:驱动Runtime PM管理

https://www.elecfans.com/d/2327034.html

巨大八爪鱼 12/5/25 17:19

如果不想让设备频繁地开、关,可以使用autosuspend功能

驱动里: 执行pm_runtime_use_autosuspend来设置启动autosuspend功能,
put设备时, 执行这2个函数:
pm_runtime_mark_last_busy(&lcd_dev.dev);(更新power.last_busy的状态)
pm_runtime_put_sync_autosuspend(&lcd_dev.dev);(根据power.last_busy的状态启动定时器,一段时间后如果没有再次打开动作才休眠)

(pm_runtime_get_sync不需要改,open的时候应该马上上电运行)

https://www.cnblogs.com/liusiluandzhangkun/p/8977059.html

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.