[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170530233237.GA39733@google.com>
Date: Tue, 30 May 2017 16:32:38 -0700
From: Brian Norris <briannorris@...omium.org>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: jeffy <jeffy.chen@...k-chips.com>,
LKML <linux-kernel@...r.kernel.org>, dianders@...omium.org,
tfiga@...omium.org, Johannes Berg <johannes.berg@...el.com>
Subject: Re: [PATCH] genirq: Check irq disabled & masked states in
irq_shutdown
Sorry to respond to myself. Thomas, your reply to another mail in this
series helped me to notice:
On Tue, May 30, 2017 at 04:19:58PM -0700, Brian Norris wrote:
> Side note: for issues like the first problem above, I wonder why there
> isn't a flag that once could pass to request_irq() that suggests the IRQ
> should be initially disabled?
Is that what IRQ_NOAUTOEN is for?
> I know this wouldn't work for shared
> interrupts (but request_irq() could reject that combination, no?)
Hehe, but then I see this, for example, when grepping around:
drivers/usb/dwc3/dwc3-omap.c:
irq_set_status_flags(omap->irq, IRQ_NOAUTOEN);
ret = devm_request_threaded_irq(dev, omap->irq, dwc3_omap_interrupt,
dwc3_omap_interrupt_thread, IRQF_SHARED,
"dwc3-omap", omap);
IIUC, that's quite broken, no?
Brian
Powered by blists - more mailing lists