Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3124110imd; Mon, 29 Oct 2018 01:58:53 -0700 (PDT) X-Google-Smtp-Source: AJdET5fgG5mQHG/+B62Gd15iwQXlA7KTUTrjKAId9gCWRb/sFoFOs/p6ptNgvda4VoSWWjYfhu3u X-Received: by 2002:a17:902:2909:: with SMTP id g9-v6mr13290750plb.223.1540803533261; Mon, 29 Oct 2018 01:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540803533; cv=none; d=google.com; s=arc-20160816; b=ZCQZ3dtQ2MSnJMKvmM7HOJWLUtjhG7S7kV38x/mlpyOd+k3XjqFldC5JxKKpQJhFuU oXMFAzE+w5VGy2s1zWEr4oUG/lts2616DPtB3FaRvvWrugAutSFtKGAq1xFZnUWBHIUr U5GzI+jtMbqAhwHjVn04TfQRv17U8OjQQvaHxPY7BJWMmdATG7ZeN2YelV++IghzGoai fz/wvCP1jP/3zj9s6r8D4FIYnsqcNbZWm8dzcPBRI1kT3irEYc2Rgd9BLwQqiyDEmdge sO6/Xa6QMsvXazs6tbP5uAsv3zRp8jtFuMzKORkVVNDVVVVssZ96TMpl6inIf4Gb+1gJ 8aRQ== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=g88fk7r3K7OfiwRynUBeicxdrF3GKieQcJWEL6amKlE=; b=r3YTsPvTfe+7dsYw7k9f76/vobohEtYEAHscE972gCyly28W4UOTXiI+punRCgc075 gyrRFp9biAYYoB2GXyNb50B2tyUPRl6iZuFb6/X0AT4NmhTTuuUTRaU+4ida56BreHcD L9ujsswrSoRppomk0SheatWbuIXSeQqL0RQ/hmoFPAjx1tVBA0TbGuP1U2aOmLpim48R CXn8pSTGZyY7IQxM7TJzkzEHGLMlMlQ39gg1NnwIGqYI/jp4+5Uapgur5wcIdinaAnOw yVIqbie8lDp/oTjMLCwapXCqH34ofeLY2YDTQ+TPCwiIrqgnES6TvpYz9z9NfviT7pDv tG7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=MjrKB0xi; 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 z7-v6si19792843pgc.343.2018.10.29.01.58.38; Mon, 29 Oct 2018 01:58:53 -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=MjrKB0xi; 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 S1729598AbeJ2Rpe (ORCPT + 99 others); Mon, 29 Oct 2018 13:45:34 -0400 Received: from mail-he1eur01on0083.outbound.protection.outlook.com ([104.47.0.83]:39640 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729391AbeJ2Rpd (ORCPT ); Mon, 29 Oct 2018 13:45:33 -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=g88fk7r3K7OfiwRynUBeicxdrF3GKieQcJWEL6amKlE=; b=MjrKB0xiho9Iw7aVeB74+8XNU9MFYvublBue2CkqscslK4ALivOkF6IPj2U8NW52rsdENjigYTLDNeGr3B0pfl4mkwYPqantXlvnypR+KQLQpsoIrO/d83za7D1EuPwNj8pR90MMuo1o2UScLRO6JdeqtHdRQSv6XVyOuivCNNQ= Received: from VI1PR04MB4800.eurprd04.prod.outlook.com (20.177.48.221) by VI1PR04MB4125.eurprd04.prod.outlook.com (52.133.14.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.18; Mon, 29 Oct 2018 08:57:41 +0000 Received: from VI1PR04MB4800.eurprd04.prod.outlook.com ([fe80::c9af:2da0:2fc4:1aca]) by VI1PR04MB4800.eurprd04.prod.outlook.com ([fe80::c9af:2da0:2fc4:1aca%3]) with mapi id 15.20.1273.027; Mon, 29 Oct 2018 08:57: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" , Varun Sethi , Udit Kumar , Pankaj Bansal , Yogesh Narayan Gaur , Vabhav Sharma Subject: [PATCH v7 3/6] clk: qoriq: increase array size of cmux_to_group Thread-Topic: [PATCH v7 3/6] clk: qoriq: increase array size of cmux_to_group Thread-Index: AQHUb2Vy824CSnwcEUyruRxkof+7Gg== Date: Mon, 29 Oct 2018 08:57:41 +0000 Message-ID: <1540759926-3641-4-git-send-email-vabhav.sharma@nxp.com> References: <1540759926-3641-1-git-send-email-vabhav.sharma@nxp.com> In-Reply-To: <1540759926-3641-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: BM1PR0101CA0028.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::14) 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-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR04MB4125;6:OkhzTLaMhJNGH75wPv0k577/PxX7i9CVYt0Uy6WEpN87PMNsf8ltEvE8q6yREaIlQGw+S8SccC3RO35lHJ07wz4IrrZ1VJi+6dopzvDwpMBGsz/TiWU0kYRZRCDHu9YrPvlVhAY+1QhuKi0i7VBwbE/7HP9dlHuzrUQ5AS7ks78mYCTkj6CpvyXzZvJjuiynjOneTWGALEzCcMKL7XGNbxJv+cwxo5rjXshbFbcg13jQn38bw0nXvLGPWjkZ7oZudAVikhcxX9Pun2rjNuCW48YmeFl3r7eX0afSW7JdwH9pvENE+3F5qw3NU9Y7lpFXJcPFOGvkwdC9bCXofoxapDUCyskbbv8N4ObYZVU60BnomwZ1i4VenW7JjSJvvB2C5Cr0/dWIJB0pzmeZ/004bbPh/rZ11Ugvcty0ravgxUo68l3qEO+zzT8fjHGOtP+tXy0EdXXYM+oaWRCe734D6g==;5:52HAfnEYCXtGXFBg8aFIzd1PAdpbwyPuOlbHU498gVOauCLKnjU232j8RAP9r+/LV1xq8r/L80xajOYzVAnaYANtuZVi/uYSYGqHxiU5ZrEBTYP34B6SY3okWmRIMTXPFmKTZbYZjCvzZdDGj29mfBOCb78pqLJOD3e9ST+f67k=;7:KSbVqmBXQ4V/B6PfF6NYrzU4gsVYj6s62k9O/xj7Qc4ko1xEQhEP+De1c7qBSp+7w7FAsVw/54Qcvjw3/UMobGNeGJQAZcaXJ7QoTaVgCgijNMoWODs+y2/a1ccPOSPJzvPYwIT+uQ6NvdKMFxvf9g== x-ms-office365-filtering-correlation-id: fe0caba5-6168-4e39-940c-08d63d7c9538 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:VI1PR04MB4125; x-ms-traffictypediagnostic: VI1PR04MB4125: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231382)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB4125;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB4125; x-forefront-prvs: 084080FC15 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(346002)(396003)(376002)(39860400002)(366004)(199004)(189003)(316002)(44832011)(86362001)(106356001)(5250100002)(2501003)(305945005)(11346002)(7736002)(71190400001)(446003)(8936002)(2616005)(476003)(71200400001)(2201001)(486006)(105586002)(186003)(76176011)(81156014)(81166006)(2906002)(110136005)(6512007)(54906003)(26005)(99286004)(6116002)(14454004)(25786009)(14444005)(256004)(7416002)(36756003)(4326008)(53936002)(6436002)(3846002)(102836004)(6486002)(5660300001)(97736004)(52116002)(66066001)(2900100001)(68736007)(478600001)(8676002)(55236004)(386003)(6506007)(21314003)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4125;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-microsoft-antispam-message-info: N4aVWdxiSQO5iZXNJVV3TG6O6AMFeeMHx0+9Kw33cKp1/fMIbYVFBURn0RAimwBf1+gJQ0z2JQOccy+8hLyQpCVQzjfmGExcf1FYX3EqG+kC0AdOYmCXqFoOvuEvQ9K7qAE9WPux1ixkzdXCUlaQYWtZgF/QRLRH2I3j2Ug0q12WQvCAKYYoEtR3p2w0JGRKBi36bWJBjBSqOBNN01cqpPeZxqyyXBGErI8GA1eK6RKKGX8lDok5OvSfSRiYURnNeL0W0LR1SLrp+AyXNViubAJcU1ZGNYtUDRIzWlGTagGsBI3Dq1Pe/oUb+pCWgkfWg1ef0nhKIuEqzSYIE9zhCILUeDht1SXRwKDF/a75CQ8= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM 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: fe0caba5-6168-4e39-940c-08d63d7c9538 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Oct 2018 08:57:41.3099 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4125 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 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[] =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