mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 15:12:59 +02:00
soc: rockchip: fiq debugger: clear busy interrupt before ATF fiq init
If uart has busy interrupt before ATF fiq init, although IER is 0, it would cause interrupt. Thus after enable uart fiq of gic during init, it may cause infinite interrupt because there is no uart handler to clear the interrupts. Change-Id: If530d266068e25132206519e5bf41762f6a7c9bd Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
This commit is contained in:
parent
50dc19e1d9
commit
21ac5604d3
|
|
@ -466,6 +466,8 @@ void rk_serial_debug_init(void __iomem *base, phys_addr_t phy_base,
|
|||
goto out3;
|
||||
}
|
||||
|
||||
/* clear busy interrupt, make sure all interrupts are disabled */
|
||||
rk_fiq_read(t, UART_USR);
|
||||
#ifdef CONFIG_FIQ_DEBUGGER_TRUST_ZONE
|
||||
if ((signal_irq > 0) && (serial_hwirq > 0)) {
|
||||
ret = fiq_debugger_bind_sip_smc(t, phy_base, serial_hwirq,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user