Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp98481imj; Thu, 14 Feb 2019 16:11:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IYYHOkr6tAGy0ofC3HjqxS8OxJh+178kMu0p+UNSwYyM/p7tgVOaPWhXtzBEHw+ohKrpKa5 X-Received: by 2002:a63:2bc6:: with SMTP id r189mr2506642pgr.201.1550189462506; Thu, 14 Feb 2019 16:11:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550189462; cv=none; d=google.com; s=arc-20160816; b=icOmrcyWvv1OYqULTx1RjEEfUyLID5gY6tDqM7nIgg9yR1N7StGd05NDvuHA95oqoC KF6mUwRT3KMoZS2mOxI3wQKYnGhjswdfrjf3uJyNuqkbCtgGIb7jOth+4czWdJ4tDAb9 lg6nb5SsBDK9eaWUJu1L0NPOGspL0bpxeEJK9exbAIGggmTQ35s8YMDIn4ZmxAEt3H2D lD5NT/2jAPob4lPE71gOgkDdljS22D/Hp7mGANZbCKt7afB5QFeabQMSuMzur7Yc/I8B tbI2uFVd+0lvNyjs3Fb2IYfdlx8agpVUj6mnZlR+55/jCzy0ctweaaQyFvzwMTMfeOFg rjLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9eYjYNduzPZNy43v8Fvj91hRMMSatkg8sxxgZqtJcIw=; b=BuiYAk33oDKR3nu/33fPgHx9JOhOxn+p2qLwaTweCdbgifkSH9QHsmVCsxzY0ZlMR0 SiYIKlG1wl5hmIVSSJKFqIXbPmZGB+tKGlqRVCnb5nwtMOqcgE93tOU5zrWTaKbzUJr6 ADEe59b9F23afYvUQHnKHgjbp/lOI0SIu0iJ9IspZuMN5CTqJ58jlcpnxTgVOCriK7DV U3VnpNmftshm7stz8tqBbWixLDf7nhYQ62GpBVD9romsC/EK1E9NuxYuGd0HiGUYAwGa rzOT6Z/mLGkpzNPD3GhWyniZsMNJMdBmiZxpjPAcuzg6Q3j4WDVFxDprqYGJBtjkX/2v X8+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="D35ls8L/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t11si3804529plo.293.2019.02.14.16.10.46; Thu, 14 Feb 2019 16:11:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="D35ls8L/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439512AbfBNOwz (ORCPT + 99 others); Thu, 14 Feb 2019 09:52:55 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:36683 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439502AbfBNOwz (ORCPT ); Thu, 14 Feb 2019 09:52:55 -0500 Received: by mail-wm1-f66.google.com with SMTP id j125so6395775wmj.1 for ; Thu, 14 Feb 2019 06:52:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9eYjYNduzPZNy43v8Fvj91hRMMSatkg8sxxgZqtJcIw=; b=D35ls8L/Iq6Fzg7hpEo0hLRu2+RJ1OaeR0MqRZLXTFda32un/4nuipp8M6RtWGDjVo AdOgy0ynmCrBzUbbDFm2KN8ijWDbXvLd3VADVf6XkT/GommgnERiCY46Vk+mpTwp2m2T jLB3VIAZmYfb6RXqA0ypxEQmkgoB/2h3DX16nt0grW7w8iOyYi15uJuXIEvZxoKaI7OH tTJ9G9/h42mYyDnZE0r7oggMj7y/xOylopq0xhzFMad6IFQWZZQUzDmN1OJSADB0uqeu 7qNDq31hVT4hxr+n/u+akww33kBWMl/BFh0qzKvw1WflhLWQfrNMkrQQxfPRPxwcOZ/e WojA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9eYjYNduzPZNy43v8Fvj91hRMMSatkg8sxxgZqtJcIw=; b=FnCOkUjMRp0Tew6TWJ0LkTqsjPNEGZK9QUFrrfj/CRuEgdYy780feqG27pxDcAmtkX jwgbCrIHptFcwuhtyeGtQ+8Ap6SMSMWh4Q7jsEOKN5Np+1gyXyk2bSsK0v+5RZPkm24e HAjajj/vier4Fk4CcHq9PgEoGKhFahS4wTOQPCl4oWKDPaWIrUIrnDx2+VbLuF6GBf38 mdlySzZJScompsUeQIDE2C0mba4Gjxi7Mwwi0f5QwLGp5JJh14ZG3MjSiRs+l11e5peR kkGTNzrWUdj1IKhkXm9b5wg2SfiWupcNr7eb0m4u5oNRkVD8bKn7H7J4yPvJ1cYrK70A EDUg== X-Gm-Message-State: AHQUAubMqZYlCwvZvDW8t2nZnZwinCylSk5+FCCdWTMtZsnzV8lPqBbr igL7j269ZUsLE0JkfKEc9mPPTA== X-Received: by 2002:a7b:cf3a:: with SMTP id m26mr997357wmg.144.1550155972349; Thu, 14 Feb 2019 06:52:52 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id y20sm4181005wra.51.2019.02.14.06.52.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 06:52:51 -0800 (PST) From: Bartosz Golaszewski To: Dmitry Torokhov , Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier , David Lechner Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v4 08/37] ARM: davinci: select SPARSE_IRQ Date: Thu, 14 Feb 2019 15:52:02 +0100 Message-Id: <20190214145231.8750-9-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190214145231.8750-1-brgl@bgdev.pl> References: <20190214145231.8750-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Everything is in place now for SPARSE_IRQ. Select it and set DAVINCI_INTC_START to NR_IRQS. We now need to include mach/irqs.h in a couple places as it is no longer indirectly included after selecting SPARSE_IRQ. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/Kconfig | 1 + arch/arm/mach-davinci/board-da830-evm.c | 1 + arch/arm/mach-davinci/board-da850-evm.c | 1 + arch/arm/mach-davinci/board-dm644x-evm.c | 1 + arch/arm/mach-davinci/devices-da8xx.c | 1 + arch/arm/mach-davinci/include/mach/common.h | 4 +++- arch/arm/mach-davinci/include/mach/irqs.h | 1 - arch/arm/mach-davinci/irq.c | 1 + 8 files changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f7770fdcad68..1037f49e050f 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -595,6 +595,7 @@ config ARCH_DAVINCI select PM_GENERIC_DOMAINS if PM select PM_GENERIC_DOMAINS_OF if PM && OF select RESET_CONTROLLER + select SPARSE_IRQ select USE_OF select ZONE_DMA help diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c index c4da635ee4ce..41f5a51fee9a 100644 --- a/arch/arm/mach-davinci/board-da830-evm.c +++ b/arch/arm/mach-davinci/board-da830-evm.c @@ -36,6 +36,7 @@ #include #include +#include #include "cp_intc.h" #include #include diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index 44bca048dfd0..317f48560534 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -46,6 +46,7 @@ #include "cp_intc.h" #include #include +#include #include "sram.h" #include diff --git a/arch/arm/mach-davinci/board-dm644x-evm.c b/arch/arm/mach-davinci/board-dm644x-evm.c index b80c4ee76217..16ffed2525e6 100644 --- a/arch/arm/mach-davinci/board-dm644x-evm.c +++ b/arch/arm/mach-davinci/board-dm644x-evm.c @@ -36,6 +36,7 @@ #include #include +#include #include #include #include diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index 298165095d31..3104a3eb2ddf 100644 --- a/arch/arm/mach-davinci/devices-da8xx.c +++ b/arch/arm/mach-davinci/devices-da8xx.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "asp.h" #include "cpuidle.h" diff --git a/arch/arm/mach-davinci/include/mach/common.h b/arch/arm/mach-davinci/include/mach/common.h index d840023eaaac..1ceed0345988 100644 --- a/arch/arm/mach-davinci/include/mach/common.h +++ b/arch/arm/mach-davinci/include/mach/common.h @@ -17,7 +17,9 @@ #include #include -#define DAVINCI_INTC_START 0 +#include + +#define DAVINCI_INTC_START NR_IRQS #define DAVINCI_INTC_IRQ(_irqnum) (DAVINCI_INTC_START + (_irqnum)) void davinci_timer_init(struct clk *clk); diff --git a/arch/arm/mach-davinci/include/mach/irqs.h b/arch/arm/mach-davinci/include/mach/irqs.h index 03c446635301..8f9fc7a56ce8 100644 --- a/arch/arm/mach-davinci/include/mach/irqs.h +++ b/arch/arm/mach-davinci/include/mach/irqs.h @@ -401,6 +401,5 @@ /* da850 currently has the most gpio pins (144) */ #define DAVINCI_N_GPIO 144 /* da850 currently has the most irqs so use DA850_N_CP_INTC_IRQ */ -#define NR_IRQS (DA850_N_CP_INTC_IRQ + DAVINCI_N_GPIO) #endif /* __ASM_ARCH_IRQS_H */ diff --git a/arch/arm/mach-davinci/irq.c b/arch/arm/mach-davinci/irq.c index 80bf99c8fa55..34b0eec4de4e 100644 --- a/arch/arm/mach-davinci/irq.c +++ b/arch/arm/mach-davinci/irq.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include -- 2.20.1