From patchwork Fri Jan 21 10:01:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Weber X-Patchwork-Id: 494611 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0LA2njX030146 for ; Fri, 21 Jan 2011 10:02:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752999Ab1AUKCO (ORCPT ); Fri, 21 Jan 2011 05:02:14 -0500 Received: from moutng.kundenserver.de ([212.227.17.8]:55846 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751827Ab1AUKCN (ORCPT ); Fri, 21 Jan 2011 05:02:13 -0500 Received: from corscience.de (DSL01.212.114.252.242.ip-pool.NEFkom.net [212.114.252.242]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MOVaj-1PcdK32gIX-005luk; Fri, 21 Jan 2011 11:02:10 +0100 Received: from Lupus.CS.local (unknown [192.168.102.87]) by corscience.de (Postfix) with ESMTP id 04B8F52142; Fri, 21 Jan 2011 11:02:10 +0100 (CET) From: Thomas Weber To: linux-omap@vger.kernel.org Cc: Thomas Weber , manjugk@ti.com, gadiyar@ti.com, tony@atomide.com, govindraj@ti.com, gregkh@suse.de, andrei.emeltchenko@nokia.com, linux-kernel@vger.kernel.org Subject: [PATCHv3] OMAP: Enable Magic SysRq on serial console ttyOx Date: Fri, 21 Jan 2011 11:01:24 +0100 Message-Id: <1295604084-27761-1-git-send-email-weber@corscience.de> X-Mailer: git-send-email 1.7.4.rc2 X-Provags-ID: V02:K0:tAVTROuFpqi0MaJux9EouHv/eZTBp+8LMG/jlNgUptE zYoC/xC5Y9mYkhiHxYITuo8gJayjthDxz3hCNpaDv+YKMOzr2a 3d7n6TmkhAj3THdo6L8AXL5v89QCt9xvrLRda6gF58jYiENpBA zkbMmrTGWwd+YO02wK02mEuJjpHgXo0KHKTpxTtH3z+Vmu9W74 q3uvY/ZF+CJqnxQ0Lw1QA== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 21 Jan 2011 10:02:51 +0000 (UTC) diff --git a/drivers/serial/omap-serial.c b/drivers/serial/omap-serial.c index 7f2f010..699b344 100644 --- a/drivers/serial/omap-serial.c +++ b/drivers/serial/omap-serial.c @@ -20,6 +20,10 @@ * this driver as required for the omap-platform. */ +#if defined(CONFIG_SERIAL_OMAP_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) +#define SUPPORT_SYSRQ +#endif + #include #include #include @@ -190,7 +194,6 @@ static inline void receive_chars(struct uart_omap_port *up, int *status) if (up->port.line == up->port.cons->index) { /* Recover the break flag from console xmit */ lsr |= up->lsr_break_flag; - up->lsr_break_flag = 0; } #endif if (lsr & UART_LSR_BI)