Skip to contentSkip to conversation

lib8390: use spin_lock_irqsave for locking

kernel,2.6.33-git11 David Miller 2 participants 3 messages Mar 7, 2010 – Mar 8, 2010

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

This change is not correct.

disable_irq is being intentionally used because the reset sequence can take a very long time and we don't want to have cpu interrupts disabled during the entire sequence.

Otherwise slow serial devices will drop characters and stuff like that.

#1 lore raw
Quoted 9 lines

This change is not correct.

disable_irq is being intentionally used because the reset sequence can take a very long time and we don't want to have cpu interrupts disabled during the entire sequence.

Otherwise slow serial devices will drop characters and stuff like that.

Actually, disable_irq is _not_ safe for lib8390 on SMP system. Same CPU or other CPU can call enable_irq.

so lib8390 does not work properly on my SMP system.

Ken.

author maintainer
#2 lore raw

From: Ken Kawasaki <[email protected]>
Date: Mon, 8 Mar 2010 21:24:33 +0900

Quoted 7 lines
Quoted 7 lines

This change is not correct.

disable_irq is being intentionally used because the reset sequence can take a very long time and we don't want to have cpu interrupts disabled during the entire sequence.

Quoted 8 lines
Quoted 2 lines

Otherwise slow serial devices will drop characters and stuff like that.

Actually, disable_irq is _not_ safe for lib8390 on SMP system. Same CPU or other CPU can call enable_irq.

so lib8390 does not work properly on my SMP system.

Then you need to fix that bug, because your patch here, again, is not correct.