mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
irqchip/gic: allow to config pending function between different os
for rpmsg, it needs to set pending reg between different os, so allow to
config pending function between different os.
Fixes: 2e7658ef57 ("irqchip/gic: support config amp os irqs")
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Change-Id: I4b06f8a692e34c339d4facb40b8120fdbe1d7bcd
This commit is contained in:
@@ -271,7 +271,8 @@ static int gic_irq_set_irqchip_state(struct irq_data *d,
|
||||
u32 reg;
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_AMP
|
||||
if (rockchip_amp_check_amp_irq(gic_irq(d)))
|
||||
if (which != IRQCHIP_STATE_PENDING &&
|
||||
rockchip_amp_check_amp_irq(gic_irq(d)))
|
||||
return -EINVAL;
|
||||
#endif
|
||||
switch (which) {
|
||||
|
||||
Reference in New Issue
Block a user