Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756108AbbLHI6j (ORCPT ); Tue, 8 Dec 2015 03:58:39 -0500 Received: from down.free-electrons.com ([37.187.137.238]:59126 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755247AbbLHI6i (ORCPT ); Tue, 8 Dec 2015 03:58:38 -0500 Date: Tue, 8 Dec 2015 09:58:35 +0100 From: Thomas Petazzoni To: Thomas Gleixner Cc: Jason Cooper , Marc Zyngier , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tawfik Bayouk , Nadav Haklai , Lior Amsalem , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement Subject: Re: [PATCH 0/5] Fix regression introduced by set_irq_flags() removal Message-ID: <20151208095835.582dc34b@free-electrons.com> In-Reply-To: References: <1445347435-2333-1-git-send-email-thomas.petazzoni@free-electrons.com> <20151020140427.GE3953@io.lakedaemon.net> <20151020160828.497fcc80@free-electrons.com> <20151111092638.587a53a4@free-electrons.com> <20151204120329.30a52cf4@free-electrons.com> Organization: Free Electrons X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1461 Lines: 38 Hello Thomas, On Sun, 6 Dec 2015 10:28:15 +0100 (CET), Thomas Gleixner wrote: > Second thoughts. That network driver example does not make sense. > > You have a suspend/resume mechanism and a cpu hotplug machinery in > that driver, right? So that should be responsible for > disabling/enabling the per cpu interrupts. I don't think it's the > proper way to do that in the irq chip driver at some random point > during resume as you'd reenable interrupts on cpus which are not > online yet. The irqchip driver would re-enable the per-CPU interrupts in a CPU notifier, so only when the secondary CPUs come online again after resume. When a device driver uses a normal (non per-CPU) interrupt, then it doesn't have to take care of disabling the interrupt on suspend and re-enabling the interrupt on resume at the interrupt controller level. This is all transparently handled by the irqchip driver. Why should the handling of per-CPU interrupts be different and require explicit handling from each device driver rather than being transparently handled by the irqchip driver ? Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- 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/