diff options
-rw-r--r-- | drivers/tty/serial/omap-serial.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index bfaf5d1..71b73a3 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c @@ -1824,6 +1824,15 @@ static int omap_serial_runtime_suspend(struct device *dev) /* wait a few bytes to allow current transmission to complete */ udelay(300); } + if (up->use_dma) { + struct omap_device *od; + + /* ENABLE IDLE MODE */ + od = to_omap_device(up->pdev); + omap_hwmod_set_slave_idlemode(od->hwmods[0], + HWMOD_IDLEMODE_SMART); + } + if (device_may_wakeup(dev)) up->enable_wakeup(up->pdev, true); else |