Skip to content

Commit

Permalink
sh-sci / PM: Use power.irq_safe
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki committed Aug 24, 2011
1 parent b7ab83e commit 5a50a01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/tty/serial/sh-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 5a50a01

Please sign in to comment.