Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932377AbbFIV13 (ORCPT ); Tue, 9 Jun 2015 17:27:29 -0400 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:49032 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751265AbbFIV1U (ORCPT ); Tue, 9 Jun 2015 17:27:20 -0400 Date: Tue, 9 Jun 2015 22:27:09 +0100 From: Russell King - ARM Linux To: Mark Brown Cc: Rob Herring , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arm@kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH 02/15] regmap: kill off set_irq_flags usage Message-ID: <20150609212709.GJ7557@n2100.arm.linux.org.uk> References: <1433874401-27161-1-git-send-email-robh@kernel.org> <1433874401-27161-3-git-send-email-robh@kernel.org> <20150609191211.GA14071@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150609191211.GA14071@sirena.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1584 Lines: 34 On Tue, Jun 09, 2015 at 08:12:11PM +0100, Mark Brown wrote: > On Tue, Jun 09, 2015 at 01:26:28PM -0500, Rob Herring wrote: > > > clear that is really needed. There appears to be a great deal of blind > > copy and paste of this code. > > Well, I don't think it's blind - IIRC it's just that this code all > predates the genirq flags and ARM had the opposite default to x86 (I > guess because of being conservative about all the random interrupt > controllers you get and what might be hanging off them) so we needed to > do this dance to get interrupts to work. It's because there exist platforms where specific IRQs are permanently asserted, and unexpectedly claiming such an interrupt (eg, through IRQ probing) would lock the system - at least before we ended up with the detection in genirq (which has its roots in the ARM code.) The problem is we're dealing with history here, and flipping ARM from defaulting to "IRQs not valid" to "All IRQs valid" is a far from trivial task. I'd suggest people think carefully about applying these patches. They have only been around for a matter of hours, so to rush to apply them when they haven't been revewied as a whole to assess whether the approach is the right one is rather hasty. -- FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up according to speedtest.net. -- 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/