From: Yury Georgievskiy Date: Tue, 20 Jul 2010 22:26:50 +0000 (-0700) Subject: serial: mcf: don't take spinlocks in already protected functions X-Git-Tag: v2.6.36-rc1~294^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ac8382e9cfdd723445692fc97aaa4643929750d;p=pandora-kernel.git serial: mcf: don't take spinlocks in already protected functions Don't take the port spinlock in uart functions where the serial core already takes care of locking/unlocking them. The code would actually lock up on architectures where spinlocks are implemented. Also protect calling mcf_rx_chars/mcf_tx_chars in the interrupt handler by the port spinlock and use IRQ_RETVAL to return from isr. [akpm@linux-foundation.org: make irq-handler return value more explicit] Signed-off-by: Yury Georgievskiy Cc: Alan Cox Acked-by: Greg Ungerer Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed