[PATCH 5/7] ARM: OMAP: dmtimer: Do not call PM runtime functions when not needed.
tony at atomide.com
Mon May 9 12:36:24 PDT 2016
* Ivaylo Dimitrov <ivo.g.dimitrov.75 at gmail.com> [160507 08:24]:
> once omap_dm_timer_start() is called, which calls omap_dm_timer_enable()
> and thus pm_runtime_get_sync(), it doesn't make sense to call PM runtime
> functions again before omap_dm_timer_stop is called(). Otherwise PM runtime
> functions called in omap_dm_timer_enable/disable lead to long and unneeded
> Fix that by implementing an "enabled" counter, so the PM runtime functions
> get called only when really needed.
> Without that patch Nokia N900 IR TX driver (ir-rx51) does not function.
We should use pm_runtime for the refcounting though and call PM runtime
unconditionally. Can you try to follow the standard PM runtime usage
No idea what the timeout should be, maybe less than 200 ms. Also we need
to test that off idle still works with timer1, that might need special
More information about the linux-arm-kernel