diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2011-02-02 11:59:56 +0530 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-02-02 17:20:56 -0800 |
commit | 50cc69413c7ac5f1e093273c6b93131c1752e143 (patch) | |
tree | c865c431210d685fe21b17ee3592bbfdb2ad39fd /drivers/serial | |
parent | 06516faa6f60d82e535cc164c1cce604211aec89 (diff) |
arm: tegra_hsuart: Add wake_peer operation
Recently wake_peer op was added to uart_ops. Add this op for
tegra_hsuart allowing a platform to implement peer specific wakeup.
BUG 781303
Change-Id: Icfbac324815d7737c0e0820e57a2e8d844855ba0
Reviewed-on: http://git-master/r/17993
Tested-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/tegra_hsuart.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/serial/tegra_hsuart.c b/drivers/serial/tegra_hsuart.c index 3c8e83b807b9..0250789253ea 100644 --- a/drivers/serial/tegra_hsuart.c +++ b/drivers/serial/tegra_hsuart.c @@ -41,6 +41,8 @@ #include <linux/debugfs.h> #include <linux/slab.h> #include <linux/workqueue.h> +#include <linux/tegra_uart.h> + #include <mach/dma.h> #include <mach/clk.h> @@ -813,6 +815,14 @@ static void tegra_shutdown(struct uart_port *u) dev_vdbg(u->dev, "-tegra_shutdown\n"); } +static void tegra_wake_peer(struct uart_port *u) +{ + struct tegra_uart_platform_data *pdata = u->dev->platform_data; + + if (pdata && pdata->wake_peer) + pdata->wake_peer(u); +} + static unsigned int tegra_get_mctrl(struct uart_port *u) { /* RI - Ring detector is active @@ -1113,6 +1123,7 @@ static struct uart_ops tegra_uart_ops = { .break_ctl = tegra_break_ctl, .startup = tegra_startup, .shutdown = tegra_shutdown, + .wake_peer = tegra_wake_peer, .set_termios = tegra_set_termios, .pm = tegra_pm, .type = tegra_type, |