Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: bfin-sport-uart: Rx interrupt is not called always with irq disabled.

Replace local_irq_disable by local_irq_save.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Sonic Zhang and committed by
Greg Kroah-Hartman
07143eae f5b6940c

+3 -2
+3 -2
drivers/tty/serial/bfin_sport_uart.h
··· 45 45 #define SPORT_GET_RX32(sport) \ 46 46 ({ \ 47 47 unsigned int __ret; \ 48 + unsigned long flags; \ 48 49 if (ANOMALY_05000473) \ 49 - local_irq_disable(); \ 50 + local_irq_save(flags); \ 50 51 __ret = bfin_read32((sport)->port.membase + OFFSET_RX); \ 51 52 if (ANOMALY_05000473) \ 52 - local_irq_enable(); \ 53 + local_irq_restore(flags); \ 53 54 __ret; \ 54 55 }) 55 56 #define SPORT_GET_RCR1(sport) bfin_read16(((sport)->port.membase + OFFSET_RCR1))