Thread (6 messages) 6 messages, 3 authors, 2012-01-19

Re: [PATCH] amba-pl011: clear previous interrupts before request_irq

From: Alan Cox <hidden>
Date: 2012-01-18 11:39:56
Also in: lkml

 	/*
+	 * Clear previous interrupts before installing interrupt handler
+	 */
+	spin_lock_irq(&uap->port.lock);
+	uap->im = 0;
+	writew(uap->im, uap->port.membase + UART011_IMSC);
+	writew(0xffff, uap->port.membase + UART011_ICR);
+	spin_unlock_irq(&uap->port.lock);
I'm confused why you use spin_lock_irq before you've enabled the IRQ in
the first place but looks fine.

Alan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help