Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967206AbXEGXUo (ORCPT ); Mon, 7 May 2007 19:20:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S967190AbXEGXUl (ORCPT ); Mon, 7 May 2007 19:20:41 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:59385 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S967173AbXEGXUj (ORCPT ); Mon, 7 May 2007 19:20:39 -0400 Date: Mon, 07 May 2007 16:20:42 -0700 (PDT) Message-Id: <20070507.162042.38710851.davem@davemloft.net> To: mark@mtfhpc.demon.co.uk Cc: wli@holomorphy.com, linux-kernel@vger.kernel.org, sparclinux@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [TESTING NEEDED] drivers/serial/sunzilog: Interrupt enable before ISR handler installed From: David Miller In-Reply-To: References: <20070428.210147.111207684.davem@davemloft.net> X-Mailer: Mew version 5.1.52 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1927 Lines: 45 From: Mark Fortescue Date: Sun, 29 Apr 2007 23:00:29 +0100 (BST) > I have altered the patch as advised and I have attached it to prevent my > email client from making a mess of it. > > The attached patch changes the interrupt enable sequence for the sunzilog > driver so that interrupts are not enabled untill after the interrupt > handler has been installed. If this is not done, some SS1 and SS2 sun4c > systems panic on un-handled interrupt before the handler gets installed > preventing boot. > > It also adds in support for the ESCC version of the zilog chips. The ESCC > detection works but the FIFO enable may cause issues with modem and > receive character status. My interpretation of the SCC manual and the code > is that it sould be OK. Your patch looks good, thanks for working on this. As other's have mentioned you should provide a proper "Signed-off-by: " line with your patch changelog as describe in linux/Documentation/SubmittingPatches. I wonder if there is a way to get rid of all of that MIE twiddling logic during the probe. The chicken-and-egg problem in this driver is that we need to get all the chips mostly functional before we let the IRQ handler get at the chips in the sunzilog_irq_chain. That list is setup very early, so it isn't a datastructure problem. One thing we could do is check in the IRQ handler is skip chips which don't have their registers mapped yet. But that'd put silly logic in the fast path of this driver, whereas your solution does all of this out-of-line. So your patch is probably the best. Please resubmit with the proper "Signed-off-by: " line and I will apply your patch, thanks! - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/