From patchwork Thu Aug 23 10:32:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 1365761 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 34A693FC66 for ; Thu, 23 Aug 2012 10:41:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933943Ab2HWKkA (ORCPT ); Thu, 23 Aug 2012 06:40:00 -0400 Received: from na3sys009aog129.obsmtp.com ([74.125.149.142]:48471 "EHLO na3sys009aog129.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933879Ab2HWKhy (ORCPT ); Thu, 23 Aug 2012 06:37:54 -0400 Received: from mail-lpp01m010-f42.google.com ([209.85.215.42]) (using TLSv1) by na3sys009aob129.postini.com ([74.125.148.12]) with SMTP ID DSNKUDYIASHi1HV4GM3U7K9jxxmrW6pm6cho@postini.com; Thu, 23 Aug 2012 03:37:54 PDT Received: by lahl5 with SMTP id l5so333598lah.29 for ; Thu, 23 Aug 2012 03:37:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=KFQXXdE1vFJF7LkU0lsTyIosF+P/JUDN8kfJmoeqzbk=; b=FcpmDEGe84gIaqUpg2RvSXIXy6GdbPZ343Vle2UEKpEhPZfZo/2q6RdL6D9ylHbSbn sbKUJflOONYHaq2QzZOBP+QzKEx6xYP8cd55flgcY4rG+nOlQK/u0Hu/mBp6Kxy7N9C7 T07C99iWSLbpEjQDUywXjVeGAn6vf5N92H2N0Jyhvl0KOu62ixXonjsdroVDNOIziyyy t6TQvo29D1j/DjSmASGfBjle2wYqDFizXjXjmOLl5QIVIDFFyDWGmdiz4Bb0MxwhU3sf Ir9ieyI4cQgNJuXejabTdejtPUVhuAfMZEWbByTFKAyNUg747nqLasgB9/cXL3FSf4u8 p/yg== Received: by 10.112.82.42 with SMTP id f10mr657065lby.95.1345718272517; Thu, 23 Aug 2012 03:37:52 -0700 (PDT) Received: from localhost (cs78217178.pp.htv.fi. [62.78.217.178]) by mx.google.com with ESMTPS id fd1sm1782604lbb.7.2012.08.23.03.37.50 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Aug 2012 03:37:51 -0700 (PDT) From: Felipe Balbi To: alan@linux.intel.com Cc: Tony Lindgren , Kevin Hilman , Linux OMAP Mailing List , Linux ARM Kernel Mailing List , linux-serial@vger.kernel.org, Linux Kernel Mailing List , Santosh Shilimkar , Shubhrajyoti Datta , Sourav Poddar , Felipe Balbi Subject: [PATCH v3 18/23] serial: omap: implement set_wake Date: Thu, 23 Aug 2012 13:32:58 +0300 Message-Id: <1345717983-18179-19-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.12.rc3 In-Reply-To: <1345717983-18179-1-git-send-email-balbi@ti.com> References: <1345717983-18179-1-git-send-email-balbi@ti.com> X-Gm-Message-State: ALoCoQk7pz8qdqmZRTtrQsLxsNQhGYQ018B52OMKsyz4uvGgADuVhmaHWW7W9BI7BNtFs8Qhv6iZ Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org This has been missing from OMAP UART driver for quite a while and it's simple enough to implement it. Tested-by: Shubhrajyoti D Signed-off-by: Felipe Balbi --- drivers/tty/serial/omap-serial.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index e871635..d6f5eed 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c @@ -861,6 +861,15 @@ serial_omap_set_termios(struct uart_port *port, struct ktermios *termios, dev_dbg(up->port.dev, "serial_omap_set_termios+%d\n", up->port.line); } +static int serial_omap_set_wake(struct uart_port *port, unsigned int state) +{ + struct uart_omap_port *up = to_uart_omap_port(port); + + serial_omap_enable_wakeup(up, state); + + return 0; +} + static void serial_omap_pm(struct uart_port *port, unsigned int state, unsigned int oldstate) @@ -1115,6 +1124,7 @@ static struct uart_ops serial_omap_pops = { .shutdown = serial_omap_shutdown, .set_termios = serial_omap_set_termios, .pm = serial_omap_pm, + .set_wake = serial_omap_set_wake, .type = serial_omap_type, .release_port = serial_omap_release_port, .request_port = serial_omap_request_port,