8250_core interrupt sharing problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The problem I am having is related to this function in 8250_core.c (based on kernel 4.9)
179 static int serial_link_irq_chain(struct uart_8250_port *up)
180 {
181         struct hlist_head *h;
182         struct hlist_node *n;
183         struct irq_info *i;
184         int ret, irq_flags = up->port.flags & UPF_SHARE_IRQ ? IRQF_SHARED : 0;
185 

I am running into genirq flags mismatch since on this line irq_flags is getting the value 0 instead of IRQF_SHARED. Forcing this value to shared fixes the conflict.

I have been trying to backtrack to find out where port.flags is set/initialized, to determine why it is not set to UPF_SHARE_IRQ

I imagine that it should be set based on kernel config option CONFIG_SERIAL_8250_SHARE_IRQ, which becomes this
53 static unsigned int share_irqs = SERIAL8250_SHARE_IRQS;

Maybe there is a default value for port.flags that should be set based on this kernel option?

I am configuring for a PCI plug in card which is being configured port&irq manually using setserial since the VENDOR/DEVICE is not in the supported list. I am using 8250 as a module and the parameter share_irqs = 1. I am not sure which initialize function is called in this case.

I'm sure I am missing something, can you please point me in the right direction?

Thanks.
J.


--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux