From: Winson Yung Date: Tue, 10 Apr 2012 16:41:56 +0000 (-0700) Subject: sfi: Change SFI based device IRQ polarity to active high X-Git-Tag: 2.1b_release~973 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ed4165a34ebfa428aeaa4027d46976f77d50b79;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git sfi: Change SFI based device IRQ polarity to active high BZ: 31180 Found during HSI/modem integration with ICS that setting SFI based device IRQ polarity to active low causes lots of spurious interrupts. Change it to active high to make SFI base device IRQ work correctly. Change-Id: I9a61751cbd1bac3745a94687bac2255fe6a68d5f Signed-off-by: Winson Yung Reviewed-on: http://android.intel.com:8080/42969 Reviewed-by: Yang, Fei Reviewed-by: Monroy, German Reviewed-by: Kuppuswamy, Sathyanarayanan Reviewed-by: Gross, Mark Reviewed-by: Sahukar, Surya P Tested-by: Ng, Cheon-woei Reviewed-by: buildbot Tested-by: buildbot --- diff --git a/arch/x86/platform/intel-mid/intel-mid.c b/arch/x86/platform/intel-mid/intel-mid.c index fafdbef..fe5b53e 100644 --- a/arch/x86/platform/intel-mid/intel-mid.c +++ b/arch/x86/platform/intel-mid/intel-mid.c @@ -722,7 +722,11 @@ static int __init sfi_parse_devs(struct sfi_table_header *table) irq_attr.ioapic = ioapic; irq_attr.ioapic_pin = irq; irq_attr.trigger = 1; - irq_attr.polarity = 1; +#ifdef CONFIG_X86_MRFLD + irq_attr.polarity = 0; /* Active high */ +#else + irq_attr.polarity = 1; /* Active low */ +#endif io_apic_set_pci_routing(NULL, irq, &irq_attr); }