Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933495AbcK2WPp (ORCPT ); Tue, 29 Nov 2016 17:15:45 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:42764 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755167AbcK2WPg (ORCPT ); Tue, 29 Nov 2016 17:15:36 -0500 From: Grygorii Strashko To: Murali Karicheri , Santosh Shilimkar CC: Sekhar Nori , , , Grygorii Strashko Subject: [PATCH] soc: ti: qmss: fix the case when !SMP Date: Tue, 29 Nov 2016 16:15:08 -0600 Message-ID: <20161129221508.10551-1-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.10.1 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 826 Lines: 25 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. Cc: Murali Karicheri Signed-off-by: Grygorii Strashko --- drivers/soc/ti/knav_qmss_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c index b73e353..3aa0470 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(SMP) && oirq.args_count == 3) range->irqs[i].cpu_map = (oirq.args[2] & 0x0000ff00) >> 8; } -- 2.10.1