From: Martin Habets Date: Mon, 05 Sep 2005 11:51:43 +0000 Subject: Re: [PATCH 1/2] Enable magic SysRq key on SunZilog serial console Message-Id: <20050905115143.GB9564@palantir8> List-Id: References: <20050817205345.GA9337@palantir8> In-Reply-To: <20050817205345.GA9337@palantir8> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org On Thu, Sep 01, 2005 at 02:21:23PM -0700, David S. Miller wrote: > From: Martin Habets > Date: Wed, 17 Aug 2005 21:53:45 +0100 > > > It seems to me that all the BRK_ABRT handling in sunzilog_receive_chars() > > never gets executed, and could be cleaned up. Can anyone confirm/deny > > this? > > We run receive processing first, and OR in the BRK_ABRT bit > to the "r1" variable from the control register. > > Only later do we do status processing and actually clear > the interrupt status in the control register. On my SS20 the first interrupt received is CHAEXT, triggering the status processing. Only after that comes an interrupt with CHAxIP|CHAEXT set. > So the break handling code in sunzilog_receive_chars() very > much should be getting used. Not on my machine, but this could work different on other hardware. So best keep it. Thanks, -- Martin