Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp337898img; Tue, 26 Feb 2019 00:36:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IYdw30J+DWcZdibFUxT1O2zz5pkIqTnUNYLS4+ihx8xCKGZ1EBUkqtcGnGFxX4QArPZEqBy X-Received: by 2002:a63:4718:: with SMTP id u24mr18900122pga.381.1551170206213; Tue, 26 Feb 2019 00:36:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551170206; cv=none; d=google.com; s=arc-20160816; b=zD4gXWLeWGPrSoPJQkav9Sz/Y4+/A/m9nzSQUUJzlUjemr3X/iXMDVhj0JQZO/ABVK UFwPxDtpJ0Ne3jrFgB1MDzgTYwcHumsmPH4cJkIdkC0LooqO0+cR4DMAjLxQ/2pncabz fyO8Sy7AlVfnN5ibIzM77xLcf33vuXAOQhn1CzrmOdNVMlda7s7xz/91aRaxBmN4piLA 8ZibZ9Nn+gNjiFJReJB0AQHvvE/yfc+pw+U1N+9NDd+OK9dlSozXJGsRwHJUbcilkZzt DzW4zz3dtIwYQV/YUL6vbxkvA/YCiC9jK4Bss4C7kBI/QS7g180tmfQAxvUhs9w4qhRv LyuA== 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=lJTkzp+Wg+Z8nvcwEptwlGDT0zKHvUX5y9JaMZJt8sRxO45V0UnMcyFkTvMubLFXpS INxyvN96YN/paOts22MTLGx4Vpgj9wwMnFM70bvpDL6/cfoOElf2/oUCVcihIczJ9ZFS Uia4t2OVBxhZNfBRH9/beznwEpQ9xiABhXLQxKVX/8n2DDq5FPHjRDUNooMMUGgdt7Zp H8CUbJEzu2Avs5xnQyxlFRjTgznVES08HhpdaZYzoYiUYdg5MJ2xu18Pw3VVnBPqpJ88 C9/3XwDOImgcNKzEJMheyPmMow1epgg7RvEN/5Vfd4etPn8zEnqTTo8EA1HN2LY2hCce GQIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=NJRLoGGO; 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 g1si12106832pld.197.2019.02.26.00.36.31; Tue, 26 Feb 2019 00:36:46 -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=NJRLoGGO; 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 S1727260AbfBZIer (ORCPT + 99 others); Tue, 26 Feb 2019 03:34:47 -0500 Received: from mail-eopbgr130072.outbound.protection.outlook.com ([40.107.13.72]:35265 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727115AbfBZIeq (ORCPT ); Tue, 26 Feb 2019 03:34:46 -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=NJRLoGGOmiauh45GmNweuHQQ4gotoKGeg/Fx8yusmnNxagJEANk4SI6DJT2iJZ0FPD1HU5HaGBcVW7mY/lo2OoqCk0Da2h/29SdWbyk+Lkss1O/o9FHoxabDlORpSZHWp/oLeaXE7/l2MiBvBCg3dZ4gyoLQ0FGO08lnv5Vc5jM= Received: from VI1PR04MB4800.eurprd04.prod.outlook.com (20.177.48.221) by VI1PR04MB1645.eurprd04.prod.outlook.com (10.164.84.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.15; Tue, 26 Feb 2019 08:34:41 +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 08:34:41 +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 3/4] clk: qoriq: increase array size of cmux_to_group Thread-Topic: [PATCH 3/4] clk: qoriq: increase array size of cmux_to_group Thread-Index: AQHUza4d/teqfsBUD02fLzxmh9m0lg== Date: Tue, 26 Feb 2019 08:34:40 +0000 Message-ID: <1551126463-5341-4-git-send-email-vabhav.sharma@nxp.com> References: <1551126463-5341-1-git-send-email-vabhav.sharma@nxp.com> In-Reply-To: <1551126463-5341-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: BMXPR01CA0013.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::23) 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: 8eb8fd5b-19bf-49db-f87a-08d69bc53ffd 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:VI1PR04MB1645; x-ms-traffictypediagnostic: VI1PR04MB1645: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;VI1PR04MB1645;23:FOITSOP/sx5kluSzQvBtgK2T5t9QsxbLIbU2Drg?= =?iso-8859-1?Q?Fsgx+sfzlan8r9EWXku1PD6gVvHI9Dt06kT1aCrofOPT5luFgsuAo5/RMg?= =?iso-8859-1?Q?77+voetuQHKuaPMyFPeUlJdxP+0pvUvTydP+jIZyFBF8FhQ+epgv/Jcgb0?= =?iso-8859-1?Q?3gp9yw/11TOsNWk3ZSdFTFAi7Nq/GaFMgdsVGrynx47HZfO1oLFXyquSBy?= =?iso-8859-1?Q?MpZsHTtfFKYimQzzct/MRMPw2J+/zXv/pvQnv5ABb87+5sLTAgdVXifYe+?= =?iso-8859-1?Q?/zNgdV3AgsBNGF2Ix9GN2W23hlgfDM25hZc8Rgp20oCtvWbfQGJKKt/1gJ?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dAwyRjItik/tLa?= =?iso-8859-1?Q?c9mpzPCvcsvMn5u8qBSp6tk7i1EgKuc51ummiX7q+gP1RHDvnO5l/JGXwd?= =?iso-8859-1?Q?uvYe+IWEtN+ReUelfHg2H7Eh0IGCqf1yQVxIzxNcgSSTSxpZB4a0lSuVmE?= =?iso-8859-1?Q?BQQfohLWAFCmy0aSE3BbEdJZkBj/x?= x-microsoft-antispam-prvs: x-forefront-prvs: 096029FF66 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(396003)(366004)(346002)(136003)(39860400002)(199004)(189003)(71190400001)(446003)(11346002)(25786009)(476003)(2616005)(71200400001)(7416002)(2906002)(97736004)(316002)(4326008)(478600001)(6512007)(68736007)(6116002)(6486002)(44832011)(3846002)(6436002)(486006)(2501003)(105586002)(5660300002)(106356001)(81166006)(256004)(14444005)(386003)(52116002)(6506007)(7736002)(305945005)(50226002)(102836004)(2201001)(86362001)(26005)(53936002)(110136005)(8676002)(54906003)(14454004)(81156014)(8936002)(186003)(99286004)(76176011)(66066001)(36756003)(21314003)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB1645;H:VI1PR04MB4800.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: NKM055rnnlpxMvned1tUegnb37oaO9qx50EwolmvlIELgPpstyf/I3mAF5/wwNYOndFK9ppcunBF+gXFTrZi0pIPx5obLzC5R7xrgLaC4xc3XUPRJ23mEkldwW+p43Y9bCFEglh5+DqMP9ZnBZgYQ7y5UWz9FuByb8CZlGVXtHKvcnPbJuykT8DgUq8RQ5UkE6qfBAcle5UJyHzvdbjQIniTEhSAGE1Dqvz/ww0FNcqCDnnETDcVCHzjluFWQG2vWc51dBmhWWOGQNjWJ4yNrLX7Jny9qaDdLWcbFI0aoKY0qcl5X74LDORAMu/fQuc/Qmu92M+e+QE32XRoB0e1RN8G4SzrAKLnuhlmByAY8j5GGTjjYz6F3COv3rZ87xQVVUQdQw0ffaIump2MHNL+vkwgFQr+a/qqUlohiProdPY= 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: 8eb8fd5b-19bf-49db-f87a-08d69bc53ffd X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Feb 2019 08:34:35.3255 (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: VI1PR04MB1645 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