Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5247752ima; Tue, 5 Feb 2019 08:36:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ+zTE3Nh7GPXEYedWhQuQOjHG3CyN/8l2tbpezb6H76NSgHvfB4L6L5z1DrUcBIPseh8qj X-Received: by 2002:a62:3541:: with SMTP id c62mr5832158pfa.19.1549384608510; Tue, 05 Feb 2019 08:36:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549384608; cv=none; d=google.com; s=arc-20160816; b=pgUPkXS7tZY9Ms9G3OgtQFnnwDnDfcxz7c1UM2AKKrqJ+5XNgICGqe7/My58zxuZEk CvQvHFtSh9Je+PcnrmWKH9K/71rwRSsIsNwqgXwmxRqw19Xttdz81Z9W3kny+0rUr/io qAVwfVEEAldtpTqWlDbH5nCriXVAuleDVxiNsJVwsDiZgALgPUehHsW1QKO1Tpzq8px+ AqehymcZ47+1acCMRPLGlhdqLqFP1Ux9MovtMf+bzB+eKNWnPZcQIG3P0DZmRono8dro E4hjI3QsAoyEYsAh+XR9RVnhrLf90TUTQkh8aNG8W6s+hfGLHjUYRvYaBXnvdChAiTWz JlVA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bWb0pTnxhTUoywQeJFRJm0IcTK2TaI60KgoBc9nmwE4=; b=rO431+u8FR84D5tAZsFopgNI8S01grR0XExaCKhfrfqbwXt2xofgFCQJDEWKgCja0R UZPKX9EEK4NHRKjDnLpT8pFfQzAvb3cgbFC1KIRu6dOKShEq2f2/zpn9hMJzDZWgrK82 yirikDzn3PAwxkZ85O+jHbtfww0aYbXi5QNlzzFXcXBwg0xGq0zYL2ma7/9R913fVhfQ d0h9C7w8xI9TfGdSMuXGa58qixNLcHsP1AyIVdS1CUWZq69VYSwWk/kLAYwcNNfdfkq2 FLnvyuEaqzAfyqZ3jp3Xwt31jcPaXHQS4ML9lgf2aOp4UJ3Kir4wLeM80+w8RwqhxF33 ylPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=U8N1OMsO; 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 33si3439947pgn.230.2019.02.05.08.36.32; Tue, 05 Feb 2019 08:36:48 -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=U8N1OMsO; 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 S1730196AbfBEQRS (ORCPT + 99 others); Tue, 5 Feb 2019 11:17:18 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:36972 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728445AbfBEQRS (ORCPT ); Tue, 5 Feb 2019 11:17:18 -0500 Received: by mail-it1-f193.google.com with SMTP id b5so9592204iti.2 for ; Tue, 05 Feb 2019 08:17:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=bWb0pTnxhTUoywQeJFRJm0IcTK2TaI60KgoBc9nmwE4=; b=U8N1OMsOPN6G4pTD4KAVeKdHbThz2yJ6CbvowqBc13Qr60A0YCJCYtwEmeKqlsuRms vOE8Sl2bxyfLQdOYHcMWciYcgLUdDvUPtPnzTR6E9S2auZNbflrSUhNRNXwUPr7uCZlY 2IZm4Hb8Qb5k2jOgle2GmFrmT4sue0TbOAmE2WLH2uei/HsnfDrF9PaU5rgI3AAVNiTW KxNGCb/yvqXZfblr1fuAdG4AoAjhSG4+IDK9dGyJ0kppMry0ItSZE3vag0zLhQTManFI SDji2+PdoZ23slIpEJwnBzNNH5jtPNndf5BZAntZ8wV9lUgEp7cwFweh3KP0XCx6ZUSQ MvLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=bWb0pTnxhTUoywQeJFRJm0IcTK2TaI60KgoBc9nmwE4=; b=H0Koiu4N62aUJrP1AdP47pBAulFLMp6n4UrpFTTJ3nJW3SUBzdbS69zyULRTIc6C3d 9vzEXxrqCN+kukhVfC6bDc0oJDlpFR+cbZu3EffGKmJKQUPoz/jJXETHlRknH9+Ud60k u3SZblyxatYZMXYu7Gk2zHao0gY7yErw/gp/URHTExbZdB8XtgG5DM+Hd6nWKi88V5lx IAT5ESGJiYHNrIoi92E1yAL+BmuadOgWahSQILJUbAuVqRdTO8FJ0sfTKrwci8H/ZrBU iH7VDzQFSXfLBk9QXQC3oVBp009fcOrb6n0TELLaDzEHny2/Sb5oIHKjOEqPTopGOqPd GhLQ== X-Gm-Message-State: AHQUAuY3WaiQxdwzOTr7WbQF4blt/zYS30CHiNL7Jtes2rOc1fxXvzgE aBVb+Rq6IqUQ7TPbFk/z00Q0e5BazABOuCsQF3sdRw== X-Received: by 2002:a24:9d1:: with SMTP id 200mr3386013itm.53.1549383437227; Tue, 05 Feb 2019 08:17:17 -0800 (PST) MIME-Version: 1.0 References: <20190131133928.17985-1-brgl@bgdev.pl> <20190131133928.17985-7-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Tue, 5 Feb 2019 17:17:06 +0100 Message-ID: Subject: Re: [PATCH 06/35] ARM: davinci: wrap interrupt definitions with a macro for SPARSE_IRQ To: David Lechner Cc: Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier , Bartosz Golaszewski , Linux Kernel Mailing List , Linux ARM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pon., 4 lut 2019 o 23:32 David Lechner napisa=C5=82(= a): > > On 1/31/19 7:38 AM, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > This is done in preparation for selecting CONFIG_SPARSE_IRQ. The > > interrupt numbers will then start at the predefined NR_IRQS offset. > > > > For now wrap all interrupt numbers with a macro and define > > DAVINCI_INTC_START to 0. Logically nothing changes for now. > > > > Signed-off-by: Bartosz Golaszewski > > --- > > Reviewed-by: David Lechner > > > diff --git a/arch/arm/mach-davinci/include/mach/irqs.h b/arch/arm/mach-= davinci/include/mach/irqs.h > > index 03c446635301..14fa668d4e8d 100644 > > --- a/arch/arm/mach-davinci/include/mach/irqs.h > > +++ b/arch/arm/mach-davinci/include/mach/irqs.h > > @@ -30,371 +30,374 @@ > > /* Base address */ > > #define DAVINCI_ARM_INTC_BASE 0x01C48000 > > > > +#define DAVINCI_INTC_START 0 > > +#define DAVINCI_INTC_IRQ(_irqnum) (DAVINCI_INTC_START + (_irqnum)) > > Almost not worth mentioning, but DAVINCI_INTC_START is only > ever used once, so it could be omitted. I'd like to leave it here - it's more readable that way. Bart