Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5936853ybl; Tue, 14 Jan 2020 18:08:09 -0800 (PST) X-Google-Smtp-Source: APXvYqwFDC1cHfAlpjAqcbcnBQxLKRxfe/URFazqdYgpboLkCLQ29at+5RxeymjrdFOQTpx/eX5K X-Received: by 2002:aca:a949:: with SMTP id s70mr19861324oie.80.1579054089222; Tue, 14 Jan 2020 18:08:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579054089; cv=pass; d=google.com; s=arc-20160816; b=PaGp9ROasbexKnP6Iycd757oj4ADOGGe/LkXgRxc2BiUF7EE6Pvm6YHEotlnqGBol0 V7xz3ElbRdeeUzr902iXsrt+wE/Nz4x4yS0bx4uX2V+OCvF57m2qe132uXgpuUXSBwXe SG8MyzYzdTeafwb/hKPMx0c0DdHzdVQzIds1PKzAci0KtrYl8cpCPwZGXXmvmlI+8veo pJWeD+Qmgn4HfXwNHy+PA3LPrnDOleP/RCPYrCQgUvn7xTicIaigM8ArrpU+XRUHvjYj sw03h38MmI/Ik5t1mrt0oKJx7QBG6eQDzsceOjkemcjGzLKIlOTX7Q9x10E91I6K0uGH 4aAQ== ARC-Message-Signature: i=2; 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:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=gGueIGqFeLzLTgbxBU3nHj5bHf5kJin+tZaGwFBwnqY=; b=MV85wGHm8UxuZcuorOowvp/5YIKDhZ6jk9g06lP1Dt3af+0glx1xOT2XyNYDdod9rs bLG/LPQKDGqPhamPfQ+qIMU0/IdOoEGVVOONkiz0NQq4gXTZIAdqDjs6UVbQFuOxZHN6 bwmU29l30Ee8a1mBu3FyTHLVTD4Gy4qxfvsvc4zmeb4mVYxeiwqyy7/rjUKZfI0iKRyg OTp46MUJFFfK6NGFdA6UBPjkdBj4FE+UmV1E3ekp8v3/MDSM3lXg7V6eDPdSIoPNhqoK yTKZ79varbroW5qThkZr251AI1I+c1ycS/8TLfw+dfs5zAasRoYV7/W4Z5/S339bE9qj AlgA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=NDgdZdy0; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; 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 h203si9198639oif.3.2020.01.14.18.07.55; Tue, 14 Jan 2020 18:08:09 -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=selector2 header.b=NDgdZdy0; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728890AbgAOCHF (ORCPT + 99 others); Tue, 14 Jan 2020 21:07:05 -0500 Received: from mail-eopbgr80088.outbound.protection.outlook.com ([40.107.8.88]:5285 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728834AbgAOCHF (ORCPT ); Tue, 14 Jan 2020 21:07:05 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TNsEjtKWiSApN8lwZ8zs+TIJ9Sk5yzO4bc6ZuO0vhFcD+6JPMUvWyDp/vNYiTdAOONodGM++8vsSOdBi50nhQ5c5T6ZqjHYY0F9as31f+I4lyooZL8A2JVLfPCpP0D8wtLWgpz/E/tKSqDz3jqNuSWeUQi5p8dktCHTG0Kzt8TnKGSezYjJVyvisMphFNMZ9xdieJxiUAb73ZjGdTugO9obtaYkQxNhKKwWUkqDnN0skJ2yKpPQ/8/CyuwsyEDaotlbYKaIfQO0+YmdPL9LNNBnp3gPHLVaH7lQIJILolfPTB/qbY5z6k+vjPFaLR+TEuWsBjHuVW3X5HV1hSRSEmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gGueIGqFeLzLTgbxBU3nHj5bHf5kJin+tZaGwFBwnqY=; b=oNscgcxBnI4QHml3ofbTuWCb2j4cVUNUzwiFo+fRKCDk6fayvUhbgzPqdn8p4OmAuOMxunbUINalGYohr0og5y3uJOvRckek84oc9Ki6NqZ4wy3Yj3oOjTOqXmP5rAnnPzCPCY9SErm/372Pw0EJbfdhRNEUQ3ZoYYbxn5XFykPfgLJwUWWH/GVJUi9ad0qtgVtlpzoXdsrULeUo8uVq1o6pW44bisCJegb9aBWZ+G0KsLg9/aZq6FV4ty815LZfAJJZ1WBKElCEt3e+uoT2PCFPyFU8e3odFOcKSRzvdg6F7rPsxVB9jn2mtUy1io0Vwz5qYZnlvh4YX9XFtyZqmQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gGueIGqFeLzLTgbxBU3nHj5bHf5kJin+tZaGwFBwnqY=; b=NDgdZdy04lZV+1NZlbLqrosyQg7z2MNAZhIc1tpQF6a3b9iBnAVARbhFSffew9YDHvlyiezMI5Dzioze80wGLXiZ4nL4gsNB1FgayGU5heW6zGlzWxDLahngJP2Ewfelfn3p+EWWvcEZYWXSrXL30SCty9ch0u/PRVe6rcjMxPM= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB4019.eurprd04.prod.outlook.com (52.134.126.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.13; Wed, 15 Jan 2020 02:07:01 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::91e2:17:b3f4:d422]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::91e2:17:b3f4:d422%3]) with mapi id 15.20.2623.015; Wed, 15 Jan 2020 02:07:01 +0000 Received: from localhost.localdomain (119.31.174.66) by HK0PR03CA0114.apcprd03.prod.outlook.com (2603:1096:203:b0::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2644.19 via Frontend Transport; Wed, 15 Jan 2020 02:06:55 +0000 From: Peng Fan To: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "kernel@pengutronix.de" , "festevam@gmail.com" , Leonard Crestez , Abel Vesa , "s.hauer@pengutronix.de" CC: dl-linux-imx , Anson Huang , Daniel Baluta , Jacky Bai , "angus@akkea.ca" , "devicetree@vger.kernel.org" , "l.stach@pengutronix.de" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Peng Fan Subject: [PATCH] arm64: dts: imx8mq: fix gpu clock Thread-Topic: [PATCH] arm64: dts: imx8mq: fix gpu clock Thread-Index: AQHVy0h5k13fDWK56keKO0mDJyLtvQ== Date: Wed, 15 Jan 2020 02:07:01 +0000 Message-ID: <1579053765-29891-1-git-send-email-peng.fan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0PR03CA0114.apcprd03.prod.outlook.com (2603:1096:203:b0::30) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 32c2a29d-ac8a-4731-f238-08d7995f9bd7 x-ms-traffictypediagnostic: AM0PR04MB4019:|AM0PR04MB4019: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1169; x-forefront-prvs: 02830F0362 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(136003)(396003)(366004)(376002)(346002)(189003)(199004)(71200400001)(69590400006)(52116002)(5660300002)(8676002)(6666004)(186003)(81156014)(2616005)(6512007)(956004)(6506007)(81166006)(4326008)(16526019)(54906003)(7416002)(478600001)(110136005)(2906002)(66556008)(66476007)(86362001)(66946007)(64756008)(66446008)(36756003)(6486002)(8936002)(26005)(44832011)(316002)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4019;H:AM0PR04MB4481.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: BCL:0; x-microsoft-antispam-message-info: nVHAdQy7rqH18AMbpnwQ41pzJmI1N2NFLw8owmWU5nrzG8S9YRwmYdjOBIRtc8zFTioqAjjN7ZgqrolAUiszwldoHFdQgDoiaZ5UJAgDxs7tcH7XuJ5K4acoWOgyc+twW53aMk8Eoyj3TgGi4XZ3EneRQ3p2SYZhO2oNs37O7vz2Ribbb4q9LixqBXw/TGq7/2d8I+mkWzwmpwwdEQZqjsjL8KbP0EVBvjhBw3ginam6ZIvBRsUniQYkAK1cL+DltYSBCNZjlpmttyR1zWG2Hewnh2Y/eFiYBJTHb3ScOzIGA3rkh9R/17kg4cq6PNSwrXlOqOgwLnTVcEhy5cFX5vg98mDm1pNTRKeGB4PW7OXN3HJM3g8/eYVqOu28moAH01TM5zRfaSfZ6b16SLqx4qZaLAM9OKcduv/Zdr0sBecjrgyJ7kHA4PFfOqaqM0HlCb3mhFHKSWVdMcH7Z5HbichNto9g3A+kGlzq3ahuN0vOzRXPCB2vvzDLd94iQZbBgdvIXSjrgTGHJOrA5z5VNg== 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: 32c2a29d-ac8a-4731-f238-08d7995f9bd7 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jan 2020 02:07:01.5995 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: WCdpolPd5YsAZX+GTyAWZBsL90HPlNSQhDVWnlZXs/WZdGVtEWHGnrTPs8w9pkbMtWXzryAN84IYwW188CV4uw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4019 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan v2 of "clk: imx: imx8mq: use imx8m_clk_hw_composite_core" dropped the IMX8MQ_CLK_GPU_CORE_SRC and IMX8MQ_CLK_GPU_SHADER_SRC, so the clk pointer will be NULL. clk_set_parent will direclty return 0 when set parent. So let use IMX8MQ_CLK_GPU_CORE_DIV and IMX8MQ_CLK_GPU_SHADER_DIV which is supported by clk driver. Reported-by: Leonard Crestez Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dt= s/freescale/imx8mq.dtsi index 6a1e83922c71..9481d5270949 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -1051,8 +1051,8 @@ <&clk IMX8MQ_CLK_GPU_AHB>; clock-names =3D "core", "shader", "bus", "reg"; #cooling-cells =3D <2>; - assigned-clocks =3D <&clk IMX8MQ_CLK_GPU_CORE_SRC>, - <&clk IMX8MQ_CLK_GPU_SHADER_SRC>, + assigned-clocks =3D <&clk IMX8MQ_CLK_GPU_CORE_DIV>, + <&clk IMX8MQ_CLK_GPU_SHADER_DIV>, <&clk IMX8MQ_CLK_GPU_AXI>, <&clk IMX8MQ_CLK_GPU_AHB>, <&clk IMX8MQ_GPU_PLL_BYPASS>; --=20 2.16.4