Re: [PATCH 14/15] sh: MTU2: Basic runtime PM support

2012-08-11 Thread Rafael J. Wysocki
On Saturday, August 11, 2012, Geert Uytterhoeven wrote: > On Mon, Aug 6, 2012 at 1:49 AM, Rafael J. Wysocki wrote: > > @@ -341,8 +346,19 @@ static int __devinit sh_mtu2_probe(struc > > if (ret) { > > kfree(p); > > platform_set_drvdata(pdev, NULL); > > +

Re: [PATCH 14/15] sh: MTU2: Basic runtime PM support

2012-08-11 Thread Geert Uytterhoeven
On Mon, Aug 6, 2012 at 1:49 AM, Rafael J. Wysocki wrote: > @@ -341,8 +346,19 @@ static int __devinit sh_mtu2_probe(struc > if (ret) { > kfree(p); > platform_set_drvdata(pdev, NULL); > + pm_runtime_idle(&pdev->dev); > + return ret;

[PATCH 14/15] sh: MTU2: Basic runtime PM support

2012-08-05 Thread Rafael J. Wysocki
Modify the SH MTU2 clock event device driver to support runtime PM at a basic level (i.e. device clocks can be disabled and enabled, but domain power must be on, because the device has to be marked as "irq safe"). Signed-off-by: Rafael J. Wysocki --- drivers/clocksource/sh_mtu2.c | 28 +++