From patchwork Wed Jan 19 13:58:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Govindraj R X-Patchwork-Id: 489301 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 p0JEuJCY010815 for ; Wed, 19 Jan 2011 16:53:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754499Ab1ASN7J (ORCPT ); Wed, 19 Jan 2011 08:59:09 -0500 Received: from mail-wy0-f174.google.com ([74.125.82.174]:45089 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752850Ab1ASN7I (ORCPT ); Wed, 19 Jan 2011 08:59:08 -0500 Received: by wyb28 with SMTP id 28so960889wyb.19 for ; Wed, 19 Jan 2011 05:59:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=E0z3MEOsuvu9doHgMFQHbiJf9kpW5jjyWvGI/NJ4aKI=; b=JR+LAxWrBA3ByIuoMyMGNyNjfuKfBSHWHHursflSV9k/W+xRHIW2Tw84kiajIpyMHI 4tYhZPGT/mXWGO+S1KWKrFNwyFFG1JLxBBOf8apmgcD/j/OBKR24ILwcDX7jEazbvqdb HW27OtLZSnE+XRyxE+MgWNSsEV0NMyJ0nQxwE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=AVbcoy2U7PIayiRdo1j3Ms0waIKBZyNmzUhb0KhSC2fJRLjwL8+i3hR+wxPrJUg0Fr llVxbegMeYCSNCqvFwGRyRSCTsyMWzoq6V0U+KgAdjsAQFod7kVD9Y8UXH7ml3ub1kek x/Jiz8mVFoJEMBKrttGfk3zSnFzttze9mYeEM= Received: by 10.216.25.202 with SMTP id z52mr2574258wez.14.1295445546015; Wed, 19 Jan 2011 05:59:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.17.139 with HTTP; Wed, 19 Jan 2011 05:58:20 -0800 (PST) In-Reply-To: <4D36E7CC.5090303@corscience.de> References: <1295426461-12459-1-git-send-email-weber@corscience.de> <20110119130049.GB9365@m-desktop> <4D36E7CC.5090303@corscience.de> From: Govindraj Date: Wed, 19 Jan 2011 19:28:20 +0530 Message-ID: Subject: Re: [PATCHv2] OMAP: Enable Magic SysRq on serial console ttyOx To: Thomas Weber Cc: "G, Manjunath Kondaiah" , linux-omap@vger.kernel.org, Tony Lindgren , "Govindraj.R" , Greg Kroah-Hartman , Andrei Emeltchenko , linux-kernel@vger.kernel.org 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]); Wed, 19 Jan 2011 16:53:52 +0000 (UTC) diff --git a/drivers/serial/omap-serial.c b/drivers/serial/omap-serial.c index 1201eff..6df623e 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