Re: [RFC PATCH v2 1/3] serial: 8250: Fix autoconfig_irq() to avoid race conditions

2015-08-06 Thread Peter Hurley
On 07/29/2015 04:12 AM, Taichi Kageyama wrote: > The following race conditions can happen when a serial port is used > as console. > > Case1: CPU_B is used to detect an interrupt from a serial port, >but it can have interrupts disabled during the waiting time. > Case2: CPU_B clears UART_IE

[RFC PATCH v2 1/3] serial: 8250: Fix autoconfig_irq() to avoid race conditions

2015-07-29 Thread Taichi Kageyama
The following race conditions can happen when a serial port is used as console. Case1: CPU_B is used to detect an interrupt from a serial port, but it can have interrupts disabled during the waiting time. Case2: CPU_B clears UART_IER just after CPU_A sets UART_IER and then a serial p