• Guo Ren's avatar
    irqchip/csky: fixup handle_irq_perbit break irq · dad4502d
    Guo Ren authored
    [ Upstream commit 56752b21 ]
    
    The handle_irq_perbit function loop every bit in hwirq local variable.
    
    handle_irq_perbit(hwirq) {
      for_everyt_bit_in(hwirq) {
    	handle_domain_irq()
    		->irq_exit()
    		->invoke_softirq()
    		->__do_softirq()
    		->local_irq_enable() // Here will cause new interrupt.
      }
    }
    
    When new interrupt coming at local_irq_enable, it will finish another
    interrupt handler and pull down the interrupt source. But hwirq is the
    local variable for handle_irq_perbit(), it can't get new interrupt
    controller pending reg status. So we need update hwirq with pending reg
    in every loop.
    
    Also change write_relax to writel could prevent stw from fast retire.
    When local_irq is enabled, intc regs is really set-in.
    Signed-off-by: Guo Ren's avatarGuo Ren <ren_guo@c-sky.com>
    Cc: Lu Baoquan <lu.baoquan@intellif.com>
    Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
    dad4502d
Name
Last commit
Last update
Documentation Loading commit data...
LICENSES Loading commit data...
arch Loading commit data...
block Loading commit data...
certs Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt Loading commit data...
.clang-format Loading commit data...
.cocciconfig Loading commit data...
.get_maintainer.ignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...