]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commitdiff
xen: clear IRQ_NOAUTOEN and IRQ_NOREQUEST
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 22 Aug 2012 16:20:15 +0000 (17:20 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Wed, 27 Feb 2013 12:05:40 +0000 (12:05 +0000)
Reset the IRQ_NOAUTOEN and IRQ_NOREQUEST flags that are enabled by
default on ARM. If IRQ_NOAUTOEN is set, __setup_irq doesn't call
irq_startup, that is responsible for calling irq_unmask at startup time.
As a result event channels remain masked.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/events.c

index d75cc39b834d5ee67c9f4a01a9be39046e4c4668..0ae16a3e63e8a057dd54ec67ece450bcbdd20be8 100644 (file)
@@ -838,6 +838,7 @@ int bind_evtchn_to_irq(unsigned int evtchn)
 
                xen_irq_info_evtchn_init(irq, evtchn);
        }
+       irq_clear_status_flags(irq, IRQ_NOREQUEST|IRQ_NOAUTOEN);
 
 out:
        mutex_unlock(&irq_mapping_update_lock);