Re: [PATCH 1/5] i2c: omap: fix spurious IRQs: disable/enable IRQ atINTC when idle

From: Felipe Balbi
Date: Wed Jun 19 2013 - 16:56:18 EST


Hi,

On Wed, Jun 19, 2013 at 01:01:28PM -0700, Kevin Hilman wrote:
> Felipe Balbi <balbi@xxxxxx> writes:
>
> [...]
>
> > If you have 200 pm_runtime_get() followed by 200 pm_runtime_put() (put
> > is called only after 200 gets, no put-get ping-pong), your
> > ->runtime_resume() gets called once, your ->runtime_suspend() gets
> > called once but your ->runtime_idle() will get called 200 times.
>
> No. The driver's ->runtime_idle() will only be called when the usecount
> goes to zero.

Indeed, just re-read the code.

--
balbi

Attachment: signature.asc
Description: Digital signature