]> git.karo-electronics.de Git - linux-beck.git/commitdiff
sh-sci / PM: Use power.irq_safe
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 24 Aug 2011 19:41:08 +0000 (21:41 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Wed, 24 Aug 2011 19:41:08 +0000 (21:41 +0200)
Since sci_port_enable() and sci_port_disable() may be run with
interrupts off and they execute pm_runtime_get_sync() and
pm_runtime_put_sync(), respectively, the SCI device's
power.irq_safe flag has to be set to indicate that it is safe
to execute runtime PM callbacks for this device with interrupts off.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Magnus Damm <damm@opensource.se>
drivers/tty/serial/sh-sci.c

index 2ec57b2fb2783a232df5aad9df1a276a6f2edd1e..a9414facda477dc7bbddd55c6f6c11e597483121 100644 (file)
@@ -1913,6 +1913,7 @@ static int __devinit sci_init_single(struct platform_device *dev,
 
                port->dev = &dev->dev;
 
+               pm_runtime_irq_safe(&dev->dev);
                pm_runtime_enable(&dev->dev);
        }