Skip to content

Commit

Permalink
tty: bfin-sport-uart: Rx interrupt is not called always with irq disa…
Browse files Browse the repository at this point in the history
…bled.

Replace local_irq_disable by local_irq_save.

Signed-off-by: Sonic Zhang <[email protected]>
Acked-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
sonicz authored and gregkh committed Dec 10, 2011
1 parent f5b6940 commit 07143ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/tty/serial/bfin_sport_uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@
#define SPORT_GET_RX32(sport) \
({ \
unsigned int __ret; \
unsigned long flags; \
if (ANOMALY_05000473) \
local_irq_disable(); \
local_irq_save(flags); \
__ret = bfin_read32((sport)->port.membase + OFFSET_RX); \
if (ANOMALY_05000473) \
local_irq_enable(); \
local_irq_restore(flags); \
__ret; \
})
#define SPORT_GET_RCR1(sport) bfin_read16(((sport)->port.membase + OFFSET_RCR1))
Expand Down

0 comments on commit 07143ea

Please sign in to comment.