Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: ti: qmss: fix the case when !SMP

The irq_set_affinity_hint() will always fail when !SMP and
Networking will fail on Keystone 2 devices in this case.
Hence, fix by ignoring IRQ affinity settings when !SMP.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Grygorii Strashko and committed by
Arnd Bergmann
920f8bf7 44b736d0

+1 -1
+1 -1
drivers/soc/ti/knav_qmss_queue.c
··· 1228 1228 1229 1229 range->num_irqs++; 1230 1230 1231 - if (oirq.args_count == 3) 1231 + if (IS_ENABLED(CONFIG_SMP) && oirq.args_count == 3) 1232 1232 range->irqs[i].cpu_map = 1233 1233 (oirq.args[2] & 0x0000ff00) >> 8; 1234 1234 }