Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2528987imj; Mon, 11 Feb 2019 04:29:59 -0800 (PST) X-Google-Smtp-Source: AHgI3IZM3DAO01xGOxHf64I99OK9gNKycv6qB0DsVzDkD0Jln7zOrfXz2ExXRcv9vSpXuOD7TnlV X-Received: by 2002:a17:902:264:: with SMTP id 91mr37607487plc.108.1549888199026; Mon, 11 Feb 2019 04:29:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549888199; cv=none; d=google.com; s=arc-20160816; b=mIjnicfSp9wncm36cumJdnnPg0Z31QVUTQ3VnPugRJh9iH49H95m0xRgW2M8yzJPt+ IkUTFrF/OxZPo7cxpDHY4PnBdhRdctB0ZgL5x5j5RkkQwPIRuyCpz8k8NlcHKOIThsMR iDdt0SgCWhMZ5XE/eD0BqJAHzd7CYcOfK1ePPBr/Bdy7WFDUkQdIba4GCy6GxJD0Z615 AAQXhlBxN1jg6e7FfEs6xIHvwUfWJhPyuIv0UH+mpqeyHudoOVsuW1WhYLKQTnkIxlL3 +/cYn/xhRMdf6O/5UPJGeWzJoPKTxs/Z1AA14VqcenEODo70VPkkyLAnFBwFfJRm97oU 8T1A== 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=3iFNXNJpMgxpSvLUlNs5UzXd58xkcnpCTcNMUIsP+iw=; b=mJitT/QowSUDNrVBh4PTxUsavH5jNTGzyyMfjbLsAu7dJaGxFtlxuuAJ59tqTP/ANJ yoUbcMud4cbA0GjKfBNrJUMnFxya9L8dFjIJ+gDUy9NM/wLP1nh8z2ATv6cnRp6TEa4r DRfqZJd2ML4KFuh+WS4yI26JE6KDlPXuYPeOI7DT01kO4VEDKWmgMl9xW81fSi0YfBzk Q9yXbZtuOTxMXuENdtr3LqxGCbmtJvD1fzLL2azTDyUWnkVYRt/BiO85gkjpU/xUWt6u 9d8MDV5r+ELRzlDya89hYruAQruIXHZmVpxGiRwrWPMrrMj7SkRG3fDcoFeEhYek1a+n lvHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=YeTM9cV6; 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 u17si10092802pfi.7.2019.02.11.04.29.43; Mon, 11 Feb 2019 04:29:59 -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=YeTM9cV6; 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 S1727542AbfBKM00 (ORCPT + 99 others); Mon, 11 Feb 2019 07:26:26 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:50838 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727509AbfBKM0Y (ORCPT ); Mon, 11 Feb 2019 07:26:24 -0500 Received: by mail-wm1-f65.google.com with SMTP id x7so1573123wmj.0 for ; Mon, 11 Feb 2019 04:26:22 -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=3iFNXNJpMgxpSvLUlNs5UzXd58xkcnpCTcNMUIsP+iw=; b=YeTM9cV6nqL1NTA9+MrgptEjY8Ucimt72SqcFCuffw1TfHOW4xZK4qpg3XQBztVZzH CUC1iCP1Jl0R1Hquv3ZtYlhxouZ2Vivr31acjAqa+sJAWbrDGuLWuKVLDypM5dUqcaBN moNhNZ7/db745CjFyNcExXVpqJ3US6WTIkKlvKQxdS7vHLmB4hYqejAXd6xTmdJNne66 Yf72DSBxwGomr5345ybVQnkKDZ8fyJGH4CpO9un6Q+SAzNwdfNSvKffqmpaphLhNxiDW u0hrFd52wTdKCwUeFW2vNH6d9FkWNzmjle2zebeRptWQ3cK2AHUzqBGJV6TtjMfhnY9F /o2g== 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=3iFNXNJpMgxpSvLUlNs5UzXd58xkcnpCTcNMUIsP+iw=; b=AzvUJq9YZiq+CPb1wdFbgK/XP+Qm1ousp5W+BG9nOYA5YqMeNj7uQipi06Vq5Indao CtG7VpgOh+hMWS3XdXXxeGwmvgoLkGPoJA+tk0GDXnTtrzBScGWcqLkbHfIVB1mUwOQ4 RO6ykfD8X9Zi2FGDXfFB7NZaPLX44cHgPU3Zvi2V9MOpuczCTYvOpYL/dKU3sBrT8Tk1 528BqmhcWBolo3Ys4vMMq3+OJjz1NOmLmlz9aXaOa5ERDhhNhdMYlxlFeMepqooyvtlT 6Axe08IDThXKpH37ju2ARSkDKEObAOL9l3bQN2zGcc9B8CaY0vvWxxKv8AkNMhAst2kR 8qRA== X-Gm-Message-State: AHQUAuZEnZkQ3NZCrPlMOwWjj+rMOJqFyPMM9ZNbtRWoWUYr68ylmxyg Mh+CQiJhUxxovY5p0zsEAiExBA== X-Received: by 2002:a7b:cc13:: with SMTP id f19mr7560778wmh.83.1549887982139; Mon, 11 Feb 2019 04:26:22 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id l20sm19494321wrb.93.2019.02.11.04.26.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 04:26:21 -0800 (PST) From: Bartosz Golaszewski To: 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: [RESEND PATCH v2 07/33] ARM: davinci: select SPARSE_IRQ Date: Mon, 11 Feb 2019 13:25:40 +0100 Message-Id: <20190211122606.8662-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211122606.8662-1-brgl@bgdev.pl> References: <20190211122606.8662-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 de31be42a394..16ac28833eb4 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