]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
OMAP: PM: disable idle on suspend for GPIO and UART
authorKevin Hilman <khilman@ti.com>
Tue, 12 Jul 2011 20:48:42 +0000 (22:48 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Tue, 12 Jul 2011 20:48:42 +0000 (22:48 +0200)
Until these drivers are runtime PM converted, their device power
states are managed by calling custom driver hooks late in the
idle/suspend path.  Therefore, do not let the suspend/resume core code
automatically idle these devices since they will be managed manually
by the OMAP PM core very late in the idle/suspend path.

Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
arch/arm/mach-omap2/gpio.c
arch/arm/mach-omap2/serial.c

index 9529842ae054a72b869e9884b2ca11a27d11bde4..48e5eced6b5177d0a19e43eb391907b8f139f630 100644 (file)
@@ -87,6 +87,8 @@ static int omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused)
                return PTR_ERR(od);
        }
 
+       omap_device_disable_idle_on_suspend(od);
+
        gpio_bank_count++;
        return 0;
 }
index 1ac361b7b8cb097677d6a12ea9d557b4694ca654..466fc722fa0f39f03b8d93cf84e4dae4f57fd029 100644 (file)
@@ -805,6 +805,7 @@ void __init omap_serial_init_port(struct omap_board_data *bdata)
        WARN(IS_ERR(od), "Could not build omap_device for %s: %s.\n",
             name, oh->name);
 
+       omap_device_disable_idle_on_suspend(od);
        oh->mux = omap_hwmod_mux_init(bdata->pads, bdata->pads_cnt);
 
        uart->irq = oh->mpu_irqs[0].irq;