Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3503205imm; Sun, 14 Oct 2018 22:15:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV63NNsRmqaFdA4dpztKI/+LHIguTzGJMgQ75D/Hv51ap2IIqRCTh3k37FgVB2/tRnakKI8vw X-Received: by 2002:a62:f553:: with SMTP id n80-v6mr16051403pfh.59.1539580515081; Sun, 14 Oct 2018 22:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539580515; cv=none; d=google.com; s=arc-20160816; b=L6mRv42F9sa6PUImXqX3ZDyB6j9UIubmbKSU8E6XPiLz2phTydY6+6fwo8AFO+6RWD qZr5qyPi9KU5Hd2GmmDWHx4CSaLy9EyT4grXcb7cZ0mtItB3faqPTr6dqrlx01eyjqjo 5DIr08I4K/0EROQZGAtdYGnXqvP7bt6LefL0Dzr1+Og+yde0zdA+JsRhTp+noa6VL6xH /q5XAcROYkqn7mcjl6RywYEYTlN55vOJ/Z+IP24RuBg768ulGYM7jmG2vgAh6X/4T8T9 pr/IqnVQB35I9m364EHdVORUVy8IXc8/CjIGia0JH4NpV5b3C8C7XBs3oUOaiW9iILVd kRKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=IfK2n7Ae+5RlBZd+X6EbwHtQP9Su7vGFVutmyvIpMjY=; b=Oik8FMkVR9yZunVSbYPM3gQ99X0tqcgBaawU6/Cliwy9jjPjYKKtQxh1OmwkKw7daz Z9Sj9b4NVAYXvEv0J4Gt/CU+iuWPwMnIG696SIE+yz9vZKL7ZMHM1aaOw8nALENBTUlG mKcu6DeuqlgWdtl6qpuadMK0UhTm903MruPQRsz9uAndxmZBAy0QNHRSlPp4R3Pp34Ow 9EcVG10Ufb4aDAcez4MvW963+mhOAmQBc5FgjfGJencDEB5kZTy7U9YwDn83UesnZRiI GWlG+EC9o5MMzF0UaNTeSubytils3AGWkwYWTqqOzl3e6c11aCKuU5ZXrtIrD2Jsl+9s 9yIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=g33sdKaA; 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 j134-v6si9913831pgc.134.2018.10.14.22.15.00; Sun, 14 Oct 2018 22:15:15 -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; dkim=pass header.i=@nxp.com header.s=selector1 header.b=g33sdKaA; 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 S1726917AbeJOM5Y (ORCPT + 99 others); Mon, 15 Oct 2018 08:57:24 -0400 Received: from mail-eopbgr30082.outbound.protection.outlook.com ([40.107.3.82]:58192 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726663AbeJOM5X (ORCPT ); Mon, 15 Oct 2018 08:57:23 -0400 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=IfK2n7Ae+5RlBZd+X6EbwHtQP9Su7vGFVutmyvIpMjY=; b=g33sdKaAtJigwSpHO9Z1fY/Ya+rVDxVFGiMv6Tc3GXyU3yRX4mHczqfCnUnCXt7CrD4nb07pIXybCc6M56yy0njUBe9f2aRgocF/RkDk24jlDAZO+aYe5a+Ci+YMOcqIheP3lOMMwkrVebyweXVnJoIJGY2JFyyZTqjxrz16U7A= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=vabhav.sharma@nxp.com; Received: from uefi-OptiPlex-790.ap.freescale.net (14.143.30.134) by AM6PR04MB4790.eurprd04.prod.outlook.com (2603:10a6:20b:3::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.26; Mon, 15 Oct 2018 05:13:29 +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, leoyang.li@nxp.com, shawnguo@kernel.org Cc: linux@armlinux.org.uk, adrian.hunter@intel.com, ulf.hansson@linaro.org, V.Sethi@nxp.com, udit.kumar@nxp.com, pankaj.bansal@nxp.com, Yogesh Gaur , Vabhav Sharma Subject: [PATCH v5 3/6] clk: qoriq: increase array size of cmux_to_group Date: Sun, 14 Oct 2018 22:38:00 +0530 Message-Id: <1539536883-1928-4-git-send-email-vabhav.sharma@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1539536883-1928-1-git-send-email-vabhav.sharma@nxp.com> References: <1539536883-1928-1-git-send-email-vabhav.sharma@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: PN1PR01CA0082.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::22) To AM6PR04MB4790.eurprd04.prod.outlook.com (2603:10a6:20b:3::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2affe336-210e-4ba9-56f1-08d6325cf54e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM6PR04MB4790; X-Microsoft-Exchange-Diagnostics: 1;AM6PR04MB4790;3:9cyYuginx0oTZ3yn4lZ4F6yGjLv3Hd5DuC4VzPfjqP4WMKN0KQ9iTMSW1uMXlzcMCGdI5NvbRjE1VtbXMnomyXGXnYrFg1ZnxgSE166WFKYQ3BIeLRK1UfigjrXiA0jadp/t4PPlWtCxSRfymo5bwuM2tuGomdjFj8FlO8ze0PgE2x5An2XTT9PYVGwo5WgqapYysTQPcjf21EZD90EgPJYEP5npbMx4K2cRvbY/tUQiPiQKmo75zIkpyV22gY5N;25:v3Icbmto3edQ12zG5CA/UnJydOKoqHA/pumY4EEIsHsqgBwQg86WIoM4AgIGJjtTPHLTbqLNhlFAT8s+dscH6GPIrZc6pZ8U0bms941TYcKNq8qUZ7XZ1TyX+sCu85MPj0i4I/BjgENzPnPla8NiQcjpQdTyKfslno4XUVO26l4Mxj47/EZ8TBdMgn3MPiZiAxpmd2qK5WGwYBF8RxI0ClTVfOaRi2dubWm9JeCQaAz14Z6KyrIkzJ/v1k24VXuKUTTLVvxeve3+z0l6yTx2PK5IaMsXVDbZzoWpbFK9nyIu0qg0KBjdBTphdRIB4OEjKEWPPkp7k9VHtpL/yByDKg==;31:HKNembB8WptZzi/zr3MnSW1Mmi8wqtpsma6cCHmPEqXxkbxsovTcuf0q4I6GK2FXpVHvJ0wD4C3grikU+VZSCQjnUgjflQVcj3Hq+yEeh7Qv89vf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(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991067);SRVR:AM6PR04MB4790;BCL:0;PCL:0;RULEID:;SRVR:AM6PR04MB4790; X-Forefront-PRVS: 0826B2F01B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(346002)(376002)(39860400002)(136003)(366004)(396003)(199004)(189003)(53936002)(478600001)(6512007)(2906002)(52116002)(51416003)(3846002)(6116002)(1006002)(86362001)(14444005)(6666004)(5660300001)(316002)(50226002)(8936002)(8676002)(97736004)(68736007)(81156014)(81166006)(486006)(956004)(44832011)(2616005)(476003)(7736002)(47776003)(305945005)(66066001)(25786009)(186003)(16526019)(50466002)(48376002)(26005)(106356001)(36756003)(105586002)(446003)(11346002)(4326008)(76176011)(386003)(6506007)(54906003)(55236004)(7416002)(6486002)(16586007)(110426005)(921003)(21314002)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB4790;H:uefi-OptiPlex-790.ap.freescale.net;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-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AM6PR04MB4790;23:CPyVh8Hd9DLA/x/Ht7U7IPFYnmm8sxaLbscFTCeNa?= =?us-ascii?Q?Oi012B4TUkxiWWcYG7GpzeKOqAW1f8HmBL29U9iUqv0kgsSdD2/wGk5wTKRa?= =?us-ascii?Q?Hof0Y9TXsBLkNu84eofbSzcvTPzcAJnGXV+tauYt9lzwU3xuiEGUCPxy2fqc?= =?us-ascii?Q?NP4yFSZN6AG9nPmBqK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wYpUyIfJXJi+ZsDZfY2GQRRXQ242WMrIZbJQZle7gecEoH6yN+iS6/QXicsn1ffFHNu1whiqIaL59KIxHRLeFPP67uw9WvI+1ToO0MoXFYBmdtSEeSS3A4SQGNNVKdCGztgJHoL1fhjNzvxP3Quqmj7FPK4c02mroZXjYQMsxB496LmRz4EijHslHktS7Sh10NYmvwVgjRZgLeUnn5w==;5:9uN4hUCdQk8S0PB5ZzBhngGjLi3M6akb9CmbJc7TGQacNdxUKMHuEzWu/dD/VxT2lByufA1S6Sq2PlD4p0Ui6r+EPGTVDsVG0Viu1sBJfP8m9/5ERbijzXJfKg9ey01JcrW6C9mu25rxnRr4/W5U96sDgK6aG1Ms0TTsWYQgmek=;7:FbnQ9cVGxh7ayFTKKqBsW1ZB+9tRtf4TdSVjsuW5SzIt1yhDkmXSomcjYwCTnh2yOdeJx0I3d3+B5kJbrOKP1teHV3ayC1CY/VAedkqNgODSM/KnnolxgY6uR5napDi7yGwHH/VCkkL9EFVqjcMVDOAEI0wv45h7EL63soSl0HefCdiyehK7ryWk36XGCQfrG6ys8FWTk/C8jiO/m5ICkZnfZyo2yqogun26cF6a5DdPIIil6Kkc3IQ0EaN74b71 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2018 05:13:29.8256 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2affe336-210e-4ba9-56f1-08d6325cf54e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4790 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 --- 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 3a1812f..e152bfb 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[] = { &p4080_cmux_grp1, &p4080_cmux_grp2 }, .cmux_to_group = { - 0, 0, 0, 0, 1, 1, 1, 1 + 0, 0, 0, 0, 1, 1, 1, 1, -1 }, .pll_mask = 0x1f, }, -- 2.7.4