Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp410108img; Tue, 26 Feb 2019 02:12:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IZuJB9Kka0Q56G3yR+3zLZnjUmFe6LnlTzEcATnAilrDp+OLKXmGkuA5BXqJDah6W9v3LaV X-Received: by 2002:a17:902:7782:: with SMTP id o2mr25657579pll.315.1551175945121; Tue, 26 Feb 2019 02:12:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551175945; cv=none; d=google.com; s=arc-20160816; b=Wc/DD50idkiGx9c9AlG7fthneL+etnZRgSqbJQDIBs9Vlx1uPxm2WEt2DFZXXI6LAy U8PcpFxkpJdsHOJHxG8VX4idEiBfuRsGbVnydQLL5zdUsh6Y9BEW1yNn+VG6zeRkNzya cdmtdulTRwy0AQ0CZVYHlAwq1BrNgq2HmxiZdAOiEINQzG9w8t373LWI9MIJ2kY2TJPA 6znLFC3jI1zQxM7Rhn9Ne2zd0lxoMHdyaFc5dQpXXSPjXFzTlqRpNpVrKMFtvk0Eph7s 8MCNBttE0MtjqCM3Ibsm5Z807pWHrPnK1aKtKY6hUM7Jwyyobpy4puwGpOp6e35Gj282 wQLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=VUwFwSIdfiDEo6k9YkpeFTU6ChkELgnRTCdvU3pJ+DI=; b=ZGi6JcvYNLI3t6SI/Ji7++4d2u2qSdx0/opCNPxlcdWnFVKUkRCpdthgaYHxrkpu67 /7aKqC0ASYefL7cHCU1bDCHFgnfiC/5+Tqqkx7muWW4NUFhSFJ9MOZDp9Sn6B/9xBxW0 FeriOZ9WarGNi0GO1Un764Qd1qOb7/nKKs/sZFFUzmch5pcIzhawV2gSZVfgtb4QTkJ1 nSyIZMrF3nBmImzUgGoHhdrs6gaXJrCSUGxuOyn3WUIhbSGgCYgJaHYHEDGEX1mOZ4YD /1qaPDtI4LsUx0b/ZcVKiKbqrwR9U9yV5zHH05qQv+UsUoLe4G7lzAA0LIlIEfaYz4KX VRHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=OB2PLWme; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j73si11731810pge.263.2019.02.26.02.12.09; Tue, 26 Feb 2019 02:12:25 -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=@nxp.com header.s=selector1 header.b=OB2PLWme; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728527AbfBZKLm (ORCPT + 99 others); Tue, 26 Feb 2019 05:11:42 -0500 Received: from mail-eopbgr130079.outbound.protection.outlook.com ([40.107.13.79]:15333 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725940AbfBZKLh (ORCPT ); Tue, 26 Feb 2019 05:11:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VUwFwSIdfiDEo6k9YkpeFTU6ChkELgnRTCdvU3pJ+DI=; b=OB2PLWmeyAAC2m430rOhFlvK/QNdRmeKRl+ffread53o1zoUhRrEEJIspVVr9Z++8cptasPlPXbutFBdUiZA6xQwzLwknr8irgsk6jU5S31Fbb21If4Pu62sZfcO6PqAlZQIM1er3wUQ3QuJiMxQi3aiYSL5NMgCdGTtt+BWSss= Received: from VI1PR04MB4800.eurprd04.prod.outlook.com (20.177.48.221) by VI1PR04MB5726.eurprd04.prod.outlook.com (20.178.127.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.14; Tue, 26 Feb 2019 10:11:02 +0000 Received: from VI1PR04MB4800.eurprd04.prod.outlook.com ([fe80::7437:2195:ffd3:a33a]) by VI1PR04MB4800.eurprd04.prod.outlook.com ([fe80::7437:2195:ffd3:a33a%5]) with mapi id 15.20.1643.019; Tue, 26 Feb 2019 10:11:02 +0000 From: Vabhav Sharma To: "sudeep.holla@arm.com" , "oss@buserror.net" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" , "mturquette@baylibre.com" , "sboyd@kernel.org" , "rjw@rjwysocki.net" , "viresh.kumar@linaro.org" , "linux-clk@vger.kernel.org" , "linux-pm@vger.kernel.org" , "linux-kernel-owner@vger.kernel.org" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "gregkh@linuxfoundation.org" , "arnd@arndb.de" , "kstewart@linuxfoundation.org" , "yamada.masahiro@socionext.com" , Leo Li , "shawnguo@kernel.org" CC: "linux@armlinux.org.uk" , "adrian.hunter@intel.com" , "ulf.hansson@linaro.org" , Yogesh Narayan Gaur , Vabhav Sharma Subject: [PATCH v1 3/4] clk: qoriq: increase array size of cmux_to_group Thread-Topic: [PATCH v1 3/4] clk: qoriq: increase array size of cmux_to_group Thread-Index: AQHUzbuTW+87PyC8B0m+Dsh6bbDYrA== Date: Tue, 26 Feb 2019 10:11:02 +0000 Message-ID: <1551132245-6089-4-git-send-email-vabhav.sharma@nxp.com> References: <1551132245-6089-1-git-send-email-vabhav.sharma@nxp.com> In-Reply-To: <1551132245-6089-1-git-send-email-vabhav.sharma@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0011.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::21) To VI1PR04MB4800.eurprd04.prod.outlook.com (2603:10a6:803:53::29) authentication-results: spf=none (sender IP is ) smtp.mailfrom=vabhav.sharma@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.9.1 x-originating-ip: [92.120.1.65] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 37daa7c1-4c80-4633-8d47-08d69bd2b620 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB5726; x-ms-traffictypediagnostic: VI1PR04MB5726: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;VI1PR04MB5726;23:z/E3++NwvvdH3AzOsMjTUk2MZDLv/SD9wciSGuy?= =?iso-8859-1?Q?vnIyH8EuzwvglmO+TebNn0nuwmU+tBmffDzRdTRHztUYXp+CI/I581PO0Q?= =?iso-8859-1?Q?/4iIcaWB/TmaYDSLKs9EdVjmep1zxrX1Vlcl3HWvxrWN6cfEoy0yoLaLxz?= =?iso-8859-1?Q?0dC4bBY91/F1dYwKjMGMF6hRrTlcbPZLf5RoPWd1H7cI6iDACldq/57oqe?= =?iso-8859-1?Q?DSCRIZSPpklhh6x1LXlMmIx2PX/GH50T0ygz7M8LiHC+k3e7a3JzslkTUx?= =?iso-8859-1?Q?ONuZEzn/83ym4sptCltB7/vH3AaHXS6Z+BAUqR4sj/f/r8GjqK59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ye95EpXTgfQTlb4zU8RW/aQ6P6?= =?iso-8859-1?Q?QWw8QrFYOIrk7rL2ZSOb5z/aI4AsOWzDdk9KsK7UjvhszHggtdR/2wexou?= =?iso-8859-1?Q?X3QvVLVZ2a3GoZEtO8KnUnd7pVZEbFTDGta8LRtJTj+eGFrCG4i31CdScx?= =?iso-8859-1?Q?a/lZ12JgUDRNTFByczD9WROAlTnDy?= x-microsoft-antispam-prvs: x-forefront-prvs: 096029FF66 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(376002)(366004)(396003)(136003)(39860400002)(189003)(199004)(6116002)(3846002)(50226002)(4326008)(26005)(99286004)(6506007)(386003)(316002)(54906003)(110136005)(8936002)(8676002)(102836004)(305945005)(36756003)(25786009)(53936002)(6486002)(81156014)(81166006)(478600001)(6436002)(44832011)(2906002)(6512007)(71200400001)(2501003)(71190400001)(66066001)(106356001)(105586002)(5660300002)(14454004)(7416002)(97736004)(256004)(14444005)(446003)(68736007)(7736002)(76176011)(486006)(86362001)(2616005)(476003)(11346002)(2201001)(52116002)(186003)(921003)(21314003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB5726;H:VI1PR04MB4800.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 9A5U+6l1GJuAkyzCBySGyA26Zis4m8gF3tRGOeMazvgsVGVRj/Je42bt+ZeCahuPnRqWPkRgT4NBR3/dqSXiHmj8CzZ6zTkCVBorUidvZ2g4fUFMTKIsNcdObmxjGFxQofWARMx9ozecYYkp5BU3OsqFz+F25OF150IFng8+55DpiZmS00RufrwRqxCSiHoo8Cd0BFVgQQ+Uet1+l3H/+lbTmL5L5ki/5RRqiiyRVGvfl1REd+QgliLfP0P6nXcUC6OqVuBlBxeDDp0zITOjXLbUasIsodEQOWyN5kXY+WJQupb8b4q4u9MwGsPOVPxz3vo1AmoARLZ6bulswDwXkZ6xaHtC3CozIW6R8JEblLrO3LQb737gdt9BD48+5T+9G0tlAAeWIaJ9rx74mg+KI4MUjupl3xDU8IlfaM7dVlc= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 37daa7c1-4c80-4633-8d47-08d69bd2b620 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Feb 2019 10:10:56.9592 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5726 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yogesh Gaur Increase size of cmux_to_group array, to accomdate entry of -1 termination. Added -1, terminated, entry for 4080_cmux_grpX. Signed-off-by: Yogesh Gaur Signed-off-by: Vabhav Sharma Acked-by: Stephen Boyd --- drivers/clk/clk-qoriq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c index 5baa9e0..e75194a 100644 --- a/drivers/clk/clk-qoriq.c +++ b/drivers/clk/clk-qoriq.c @@ -79,7 +79,7 @@ struct clockgen_chipinfo { const struct clockgen_muxinfo *cmux_groups[2]; const struct clockgen_muxinfo *hwaccel[NUM_HWACCEL]; void (*init_periph)(struct clockgen *cg); - int cmux_to_group[NUM_CMUX]; /* -1 terminates if fewer than NUM_CMUX */ + int cmux_to_group[NUM_CMUX+1]; /* array should be -1 terminated */ u32 pll_mask; /* 1 << n bit set if PLL n is valid */ u32 flags; /* CG_xxx */ }; @@ -601,7 +601,7 @@ static const struct clockgen_chipinfo chipinfo[] =3D { &p4080_cmux_grp1, &p4080_cmux_grp2 }, .cmux_to_group =3D { - 0, 0, 0, 0, 1, 1, 1, 1 + 0, 0, 0, 0, 1, 1, 1, 1, -1 }, .pll_mask =3D 0x1f, }, --=20 2.7.4