Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7145838imu; Thu, 31 Jan 2019 05:48:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN5sUDUjxo+jiplK3zyrCRRauVHpojOFwJDZSg35SAK4br9r+FuYfy3U7LbG7Qx+4hAOPMK5 X-Received: by 2002:a63:7418:: with SMTP id p24mr31761781pgc.196.1548942514605; Thu, 31 Jan 2019 05:48:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548942514; cv=none; d=google.com; s=arc-20160816; b=i5iaYHADRHydUG6rLk0gJ63ygInljByetPTiqEL8eFENX7Zo6QvVGigjeJDZutNm5U R6cRwlEEn1vBo4IGftt/dCSQy7yuzZvGsiR783S00M8rs0IW0h3v7z64RGxpNkuUHg3p 4z5L17R7NrS342dkfvEesCCURG/bjVtzeTXc9IYqbrbwu7Ob2VvB8oOjg55DgmZiBL/0 dQPrvkkvxk72beCPe1RhIxsWZzynGHtmvAa7CY450IbikJJwTzriB7YOELrW/koZDJrW 557g6wy8HlujLGZpG5xiCK0Ep/7O5dTxWvLK+5cQtyVS2ky9edz8eKxgpK7EAbRK+/9J fQiQ== 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=SFgXQcpQR4vdt1SMIVPSBQQ8pz6BekA4S3eBHk0UlR8=; b=L8qs3WbVb5ZHUcmTI068736i2HFhEQvNHBi4Te2Hw2PYZVA0Ur3MHOnvP4fV9NQEf4 XC9LfMM/bllf8UrtJIyA5pMjOyXbZdwgHmBGviCj8ivL497efhjeB9gZ+vdzIxrqbJhZ C/eLBuYzQ1kzOFZdNFFzAdl9DR/mFLPSics8lL6IhopERqO89emy1OvNsV0znRsnlZxE W6gNXEDfv6cBNEi8MlIT6L3JYMGPU5JHSSx8U6oLgADJlzm0qZg4NvnSGK1K8Piit4w1 4xVgg1mBrCOxQfds1BNqJnBivK9pO/ELzUm2nxrn1wU3opWHUEkD/B64BFXIxxtfcqq0 Llvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=brWI3BPY; 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 h32si4351599pgh.276.2019.01.31.05.48.19; Thu, 31 Jan 2019 05:48:34 -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=brWI3BPY; 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 S2387650AbfAaNjz (ORCPT + 99 others); Thu, 31 Jan 2019 08:39:55 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:38536 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387623AbfAaNjy (ORCPT ); Thu, 31 Jan 2019 08:39:54 -0500 Received: by mail-wm1-f66.google.com with SMTP id m22so2600762wml.3 for ; Thu, 31 Jan 2019 05:39:52 -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=SFgXQcpQR4vdt1SMIVPSBQQ8pz6BekA4S3eBHk0UlR8=; b=brWI3BPYpln2UJUSr1verribUHRv2VsT69CGVTL3vUAKKsnGH7XxRz/rQdnaNcLEDF eyk7A6/yCMU8XkK2MWZJWDfYbTb6pZ6wI4sKEP/hxjh7VqPdz6VeCp3k/5G+8xHbR8+i HKOVXI3CNiRNN2iZc2Fd8wu7PbYRu2x4z12eq7CVKESdGdrBur2lKJQQQq9Jqn/h4lfl W2SEcamaEemjeVm7Hqd6owEHwpE62SMczZy49MSG4GU7JBJmLSqq1o8Tdz/CXM0EZToM UEcTnxZu+qlk0arLSDdONSm1QNbuP04E0QJhIhrwURMrcqZQgUOtgbnCle4Pp96Y/BUy THLQ== 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=SFgXQcpQR4vdt1SMIVPSBQQ8pz6BekA4S3eBHk0UlR8=; b=cRUNzg1ro3hCrOMIFRadvcbBrpVfROp3zJGGC4sCHe8he644Wneu2KYMzBkIbprCo3 68CK7nQHNYa/Ce9Kv6hyXUN/S4mlHGpyBo+l93byQ09mky1KGCUYkbnNczSDE0zZFQbW KL3AeR4MP5Bd00xO0h+j1efqgV2uMpjeNQPa5OP8qFPWmiLc+jK2uRN3rDr4LqU9lsTd H4gR2syd2B/2XE3r2dKMXi7hJU+nEtrKjc4OgRA+0WYln2Fu/dtDU9hFWhNJiMaaeqBt h/7sn0Ivjfl6NjkeqWWNOSdUXCi31ufWNw97k4xo0Yo8JMmCT96hKd0VJZH8Aw1TvQuG ZSiA== X-Gm-Message-State: AJcUukeqdEex5hIlSnAf2MI33AsQKN39d2FIfzzoKF/zR4jgYqUZve8n cUPkdb0L+NB4D9iPSkzuySsfIw== X-Received: by 2002:a1c:a755:: with SMTP id q82mr30630055wme.6.1548941991499; Thu, 31 Jan 2019 05:39:51 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id h10sm5479768wmf.44.2019.01.31.05.39.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 05:39:50 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 08/35] ARM: davinci: select SPARSE_IRQ Date: Thu, 31 Jan 2019 14:39:01 +0100 Message-Id: <20190131133928.17985-9-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190131133928.17985-1-brgl@bgdev.pl> References: <20190131133928.17985-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 --- 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/irqs.h | 5 +++-- arch/arm/mach-davinci/irq.c | 1 + 7 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 cf78da5ab054..65edd2aa9db5 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/irqs.h b/arch/arm/mach-davinci/include/mach/irqs.h index 14fa668d4e8d..317cbc42e5cd 100644 --- a/arch/arm/mach-davinci/include/mach/irqs.h +++ b/arch/arm/mach-davinci/include/mach/irqs.h @@ -27,10 +27,12 @@ #ifndef __ASM_ARCH_IRQS_H #define __ASM_ARCH_IRQS_H +#include + /* Base address */ #define DAVINCI_ARM_INTC_BASE 0x01C48000 -#define DAVINCI_INTC_START 0 +#define DAVINCI_INTC_START NR_IRQS #define DAVINCI_INTC_IRQ(_irqnum) (DAVINCI_INTC_START + (_irqnum)) /* Interrupt lines */ @@ -404,6 +406,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 c874ea269411..2b8b653aeb98 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