Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp78019imm; Tue, 7 Aug 2018 14:16:25 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwiKC0D60O7/IC7qD4k5ckAAyoVjvdYdsyiMPToB9rrTTGq824WyrUeoYZjA1ZLO2TQWVie X-Received: by 2002:a63:27c1:: with SMTP id n184-v6mr62809pgn.29.1533676585571; Tue, 07 Aug 2018 14:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533676585; cv=none; d=google.com; s=arc-20160816; b=Tto+c4GGJfyykp1wB5Eo4RZnFuA+vvk9yofHTJnnm1Ut9vQ9DFzzmnFIO4BTgfxB+w Ocpc/n+ypnzqO647WEgLx3h8WPVhatVtyp4pZpmRm3re4DtU74yzQtdzfnedNkAH87ic THzxk7MbMyJU7SoX8Mnak5dilTM6tw98b0ly9tIYxAAevkCDHVVAKqc8A2Sjn+GT+3y0 K8TIYr0qC0rRnju4HO3GuwpC0o+wlkKS3wxKrz3F573d0MdJwdLIEUzh53Rizu9TPT0h g/SaUHFOCw8crzclQH1K0EBNKdAzla3wGucDxjzm269i8LAGrGuyY0s1NCgb4Ti0/qIX eN7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:organization:references:in-reply-to:date:cc:to:from :message-id:arc-authentication-results; bh=xchwtNTc9jqBZ4CdQGPrfgm68TMCrsTUNbtk3lvgntc=; b=f4o8jwRqoL/pHG6M/mMsMOtvPFw/xHsGvJ9Npb7KJkgOSX3jzy/Oi0Tlj/IYOHRa/b minOVo6SAWUWHqxUCZocyNgE0lOtNPqFqrg/Pt+BDMmky/d6NoZrj6WGodRtzmkIUg7t EEEAxj+hWG42fXpI0SaetYE2tDs+NDRyREdT7lDx7lCWSeFjHVlc3o8TNgUF6upg1IF/ BONDvOsBv7Wq2IHedrc4853Kbw1QIkWjG8Xx0Uoqe2tgvA38uLi3aPbrv2VfdE82BuZE uwyPBsdqS5e5LWGaDlhUZ4VJfWjUb8b909CrAIJKoUSfk2axo1zS/PKzCmlZ6fyLADOm 3J8g== ARC-Authentication-Results: i=1; mx.google.com; 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 f7-v6si2501098pfj.284.2018.08.07.14.16.11; Tue, 07 Aug 2018 14:16:25 -0700 (PDT) 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; 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 S1727121AbeHGXa2 (ORCPT + 99 others); Tue, 7 Aug 2018 19:30:28 -0400 Received: from baldur.buserror.net ([165.227.176.147]:53104 "EHLO baldur.buserror.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbeHGXa1 (ORCPT ); Tue, 7 Aug 2018 19:30:27 -0400 Received: from [2601:449:8400:7293:12bf:48ff:fe84:c9a0] by baldur.buserror.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fn9Im-0006Ck-77; Tue, 07 Aug 2018 16:14:00 -0500 Message-ID: From: Scott Wood To: Bharat Bhushan , benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, galak@kernel.crashing.org, mark.rutland@arm.com, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: robh@kernel.org, keescook@chromium.org, tyreld@linux.vnet.ibm.com, joe@perches.com Date: Tue, 07 Aug 2018 16:13:58 -0500 In-Reply-To: <1532684881-19310-6-git-send-email-Bharat.Bhushan@nxp.com> References: <1532684881-19310-1-git-send-email-Bharat.Bhushan@nxp.com> <1532684881-19310-6-git-send-email-Bharat.Bhushan@nxp.com> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2601:449:8400:7293:12bf:48ff:fe84:c9a0 X-SA-Exim-Rcpt-To: Bharat.Bhushan@nxp.com, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, galak@kernel.crashing.org, mark.rutland@arm.com, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, robh@kernel.org, keescook@chromium.org, tyreld@linux.vnet.ibm.com, joe@perches.com X-SA-Exim-Mail-From: oss@buserror.net X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on baldur.localdomain X-Spam-Level: X-Spam-Status: No, score=-17.5 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -15 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -1.5 GREYLIST_ISWHITE The incoming server has been whitelisted for this * recipient and sender Subject: Re: [RFC 5/5] powerpc/fsl: Add supported-irq-ranges for P2020 X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on baldur.buserror.net) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-07-27 at 15:18 +0530, Bharat Bhushan wrote: > MPIC on NXP (Freescale) P2020 supports following irq > ranges: > > 0 - 11 (External interrupt) > > 16 - 79 (Internal interrupt) > > 176 - 183 (Messaging interrupt) > > 224 - 231 (Shared message signaled interrupt) Why don't you convert to the 4-cell interrupt specifiers that make dealing with these ranges less error-prone? > diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c > b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c > index 1006950..49ff348 100644 > --- a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c > +++ b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c > @@ -57,6 +57,11 @@ void __init mpc85xx_rdb_pic_init(void) > MPIC_BIG_ENDIAN | > MPIC_SINGLE_DEST_CPU, > 0, 256, " OpenPIC "); > + } else if (of_machine_is_compatible("fsl,P2020RDB-PC")) { > + mpic = mpic_alloc(NULL, 0, > + MPIC_BIG_ENDIAN | > + MPIC_SINGLE_DEST_CPU, > + 0, 0, " OpenPIC "); > } else { > mpic = mpic_alloc(NULL, 0, > MPIC_BIG_ENDIAN | I don't think we want to grow a list of every single revision of every board in these platform files. -Scott