summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2016-11-30 10:53:51 -0600
committerArnd Bergmann <arnd@arndb.de>2016-11-30 22:10:23 +0100
commit920f8bf7f366ed20935669f782ffcb5a36d5df8f (patch)
treeae19dd640cbeee8bb46b535803c051fabf6530ff /drivers/soc
parent44b736d0a0f2441cab1c2ebc03518ba5102a796f (diff)
downloadlinux-920f8bf7f366ed20935669f782ffcb5a36d5df8f.tar.bz2
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>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/ti/knav_qmss_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c
index b73e3534f67b..eacad57f2977 100644
--- a/drivers/soc/ti/knav_qmss_queue.c
+++ b/drivers/soc/ti/knav_qmss_queue.c
@@ -1228,7 +1228,7 @@ static int knav_setup_queue_range(struct knav_device *kdev,
range->num_irqs++;
- if (oirq.args_count == 3)
+ if (IS_ENABLED(CONFIG_SMP) && oirq.args_count == 3)
range->irqs[i].cpu_map =
(oirq.args[2] & 0x0000ff00) >> 8;
}