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)
commit5a50a01bf00c8191073fdf518e1af1e950ac3af5
treececd3d3f8d5ea4c3fe641b09870ead8adc7ef797
parentb7ab83edba2d50583bc9520431618489379718b2
sh-sci / PM: Use power.irq_safe

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