From patchwork Tue Jan 17 09:19:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Viorel Suman \(OSS\)" X-Patchwork-Id: 645366 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18062C3DA78 for ; Tue, 17 Jan 2023 09:24:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236386AbjAQJYN (ORCPT ); Tue, 17 Jan 2023 04:24:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236638AbjAQJXp (ORCPT ); Tue, 17 Jan 2023 04:23:45 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2060.outbound.protection.outlook.com [40.107.20.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78E3A24137; Tue, 17 Jan 2023 01:20:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OOnw+XVRtWitjd+QJ5Hevy+CUpvfGh2O7/ExjI3Hyv4UV8Vbgqx1Wha6Tbge/18ZzjmCERVS0c0GV/nOBZqpNAoUG+76ZjujGX6ZdHz5Tdk3HTtQOnSt32Cmyu/LsFNPPIgB0EClxwy6W6+wG08FVRbOD4SDC4jq3xeNDKOE6jqvz5qWtVJgvAgeNl2QHE0hdt0B8aONY3VcisN0lZtYuqEB2dj720SbsecHE93Rh89NnpKw8cvVfHzmSLZZTWCIOqVpq29XP4A4/P2qjRyq3LRH1Z95KmvdYIHT0yIciY5hFCp0j4MHkEfpDISdzZupRDpv++xHjowvJAYTjoDeWg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AZ4H+g2+FR3r9dFt+Tiyg+onDMrCrThJ7dOrXpzVnxY=; b=Ii3XPqFci4GMEy7XD4+E/ZE2NVUahdJv6D+9jIzvdljALv+f6tsbH6Jr8Jox0wo3YwmDunY3jRmQALr1MytsjjdBkc97C57szOXxEIjAIiez4tIssOQltKp8LImr3JXXg5Ar7GUghCNSAGPt0AUf+uV7S7Av+xloKEtzA8JzHEau4SAI3FezbEbMcUOpQkYQMOvfIOmQcHIc+xYc37m69pL2/xwrvLVzp6zSFeJq4g8LvUf7fgaBTjIaijpgH/JDVzw2b6IFfKx5MZWnfVoe5HWEVWBzPEU0ncU7jReU5CuHQ9qJ757ze4fTP+1rfi56+21hgi9szdw4asVmG2YyJw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AZ4H+g2+FR3r9dFt+Tiyg+onDMrCrThJ7dOrXpzVnxY=; b=GoKl/bzEMCuWjcFcSTosYdzh5srsK0Pk66znA2aGCGwws6cAuij6Ejsov7oQnSKJrKlf7zi3w3DFhg5RD8WhT5sjE9wtiP0f7wEugwIK4Bk4oh4lxJNisOTeptm7UHavd3K83rj6+dHgAq4fgyXvnWFzy/TH2QnijTccAZ1jJbI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5005.eurprd04.prod.outlook.com (2603:10a6:803:57::30) by AM0PR04MB7090.eurprd04.prod.outlook.com (2603:10a6:208:19e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12; Tue, 17 Jan 2023 09:20:21 +0000 Received: from VI1PR04MB5005.eurprd04.prod.outlook.com ([fe80::e2d1:cb8b:dc57:8749]) by VI1PR04MB5005.eurprd04.prod.outlook.com ([fe80::e2d1:cb8b:dc57:8749%6]) with mapi id 15.20.5986.023; Tue, 17 Jan 2023 09:20:21 +0000 From: "Viorel Suman (OSS)" To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] thermal/drivers/imx_sc_thermal: fix the loop condition Date: Tue, 17 Jan 2023 11:19:55 +0200 Message-Id: <20230117091956.61729-1-viorel.suman@oss.nxp.com> X-Mailer: git-send-email 2.38.1 X-ClientProxiedBy: VI1PR0202CA0022.eurprd02.prod.outlook.com (2603:10a6:803:14::35) To VI1PR04MB5005.eurprd04.prod.outlook.com (2603:10a6:803:57::30) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB5005:EE_|AM0PR04MB7090:EE_ X-MS-Office365-Filtering-Correlation-Id: 339a36c7-4292-432f-b9a2-08daf86c0e4e X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3UtWgI8AgtXpU7g6EcepeBk+inELMGV96JcccQvmIY0b82VHPRUOd2Dso/0+BSUNSz14wE+cmU8zCn04KcSstBIB/QT1m8bqjCm077XnQjOmVtzA79f2GSEy5FbHyNKVvJBVYxpXH8u7BenPMUozuF7Lu/D4gP2Xkp/jtjTKQ/jMBBhn8NRrPWuQPCsQbgfIwnOKjHTXb6EN7dmaHA+z+ZyWUvmsca9ngkkzpaFtr+CmdcG+d6ZzD4a5sMwHUOv7nFdF45Hx8bK5GZqp0eVev5v4C8e5A8bus3b1pOnW61WCdKG5+qQR0LRfu/nr3KmYrDkHW3/3guk3cZScoRkw7oHGeoFGXnXnya9K5uO78dlY5bHayrcnXYFdsRyP1ABCjT+rzj5NibalWA8SrcYN/sjdt8MKwgKAF3iPiQG+DLBwy0KlSYqPwijaCSVkz16b0RX0G3ks9OoG+tIwrGtkaR9VBvxYP0hjeiXjA6tbuGTZ5yvf9rjzGPQhtoruRuCEbFnCB61RrR1vmxSjmOloVXgEPE147/gTpDIKg/3umNANyGK3c1+lBc58dbXsgdhC7TbYwchSV9nr0qIuPRN74DTwXSh6Bs27OLpaIzh3D0/ZKwN9UA2zIvbXF42rD1eT4+zKQ2WbN/26ioKvLFmUMRGNuL7C3KSpT6VpDuJ6ACTgZVav5ym4Y2Y/IFl2UsJ/S3Rmwy8apSVGgX1bULnBAVscIXmUjASylhn0vE+W5sc= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5005.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(376002)(396003)(346002)(136003)(39860400002)(366004)(451199015)(83380400001)(110136005)(6486002)(6512007)(52116002)(478600001)(921005)(186003)(38350700002)(38100700002)(2616005)(1076003)(86362001)(41300700001)(2906002)(26005)(6506007)(6666004)(8936002)(66556008)(8676002)(66946007)(66476007)(7416002)(316002)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OPjw4plVjo/ULNpgXSwZUQZSAl3enmj1EYziu4xB4mIi/e0jyd7FeOg1HJrtfyD+icTy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L+UAS81PzDeHQEf/iWlUzkxbCUXxrRQrvmn/xv6va5+KPNfibXdJL1OJzDo/9d39yvIpeQ3zSSPPkrJ+omWC3sa2z3JHrk05zM8V9o9K4tc3ygEe7yJoaDGYKTz9rQgLdKczWp8/4Ts/0R2WVKJw9SWiG+YyGEYPE5OyIEbWCTOn3LAilJeka62MXQf1bfxcOQ64hfgWNb6tKSZsgVxfJ94TFMjtl4gs/P6X9LgJ+4kEhYwy0vMbbWq2dP6ckB1rL1eH1aQEhOwiztvXufWDvKhzbs7NDuJxx6DHJkefWKM2SAyFS/NCx99wcgghPj8Dn+OXmOThVad4akK2ptJZ5g0rcRA2pnjD8jFLBEGrT1x2JnUi7oQNOOk+vYiTSi8eh3wo7PDhoWH2GWYFZjQnmUUH/kpE22XlUGobYONB2MtsFQRrX08vdeHmkSIvjr7ZXDPqsubFiBf+Tmz87g== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 339a36c7-4292-432f-b9a2-08daf86c0e4e X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5005.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2023 09:20:21.0136 (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: uqXCPGPk8hhTsn0SWCxfzsRhhNqU+m88jN8gsj9uY5w4hz0gHvCzJHMM2uKrmhenpiSLy54m2kftwB6zECIcmg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7090 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Viorel Suman The minimal resource ID is 0: IMX_SC_R_AP_0=0, so fix the loop condition. Aside of this - constify the array. Fixes: 31fd4b9db13b ("thermal/drivers/imx_sc: Rely on the platform data to get the resource id") Signed-off-by: Viorel Suman Reviewed-by: Dong Aisheng --- drivers/thermal/imx_sc_thermal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/imx_sc_thermal.c b/drivers/thermal/imx_sc_thermal.c index 4df925e3a80b..dfadb03580ae 100644 --- a/drivers/thermal/imx_sc_thermal.c +++ b/drivers/thermal/imx_sc_thermal.c @@ -88,7 +88,7 @@ static int imx_sc_thermal_probe(struct platform_device *pdev) if (!resource_id) return -EINVAL; - for (i = 0; resource_id[i] > 0; i++) { + for (i = 0; resource_id[i] >= 0; i++) { sensor = devm_kzalloc(&pdev->dev, sizeof(*sensor), GFP_KERNEL); if (!sensor) @@ -127,7 +127,7 @@ static int imx_sc_thermal_probe(struct platform_device *pdev) return 0; } -static int imx_sc_sensors[] = { IMX_SC_R_SYSTEM, IMX_SC_R_PMIC_0, -1 }; +static const int imx_sc_sensors[] = { IMX_SC_R_SYSTEM, IMX_SC_R_PMIC_0, -1 }; static const struct of_device_id imx_sc_thermal_table[] = { { .compatible = "fsl,imx-sc-thermal", .data = imx_sc_sensors }, From patchwork Tue Jan 17 09:19:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Viorel Suman \(OSS\)" X-Patchwork-Id: 643620 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01BEBC678D4 for ; Tue, 17 Jan 2023 09:24:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236374AbjAQJYM (ORCPT ); Tue, 17 Jan 2023 04:24:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236642AbjAQJXp (ORCPT ); Tue, 17 Jan 2023 04:23:45 -0500 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2043.outbound.protection.outlook.com [40.107.7.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACECB252AC; Tue, 17 Jan 2023 01:20:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HlYarJ7Kb1kSfMQ8ZhfhtASUVvbwHyCA03gb4ucWZK6+iyETJADOa8geCyOv/OEgtKa4uvub9SlrgMCS2+DprJKvB7GrNqCLq0jE2ZxoR8gn9CAFKuotegw2gQUIjnKejg7rapdqGbrMQORpvPhV1dvXjk0IKhLvZYYcVuJ4Bdq0YBu+owUKhNCBhvoFaw2ADIBv9sMCZiaTZJvE0Zj4HH/K2uEIHQIwjNjtPmsE44S9avgo/OCeOkv21brEf6Yxk396ePfPuHFe8Rs6i5iP3V2ykaht1NjXYjql6hXkcj0r/sTD5FQFBpILIJdNf4JmFjI4iS0kGF1YFbfGVhePjA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FjT5Ym02m0BNo8cGHsuRvsam9lqjVJ732nJnBR+Juyc=; b=G4CO0kNWqfWBbPVCrxHXt1rMorQ06pb1QJfkPywsJkgHtBOMa36aWwxVQTj7L9vXmfCXH2d6PyXhNep2yBhDPCO/ltMrVQ9fVWA6QzAErwqCtubxYRwNtSyvMyuDRMXqJO3sQE3Gl1EME9xRwximPtXkg31xAiqcu+8DZNoATlMTe7QpbfQyP3lQ16hpAr0ddjz+uHueFAkWcOknW9fY38y3O7M3MmkwU7QPVEFC+pHZDmrvePem+HZs80/dmn3R6vm/lp+7M7cgXP7qruJGMk+o/QZXruV0AZARkE596afY7nbazG/eXvm1RPDnI73UhyP0arKT6Vxas1Zq51mdRQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FjT5Ym02m0BNo8cGHsuRvsam9lqjVJ732nJnBR+Juyc=; b=SqXk6Haj+zQ2TzYN3EDD8aPEk1zv0dlIRoZpsuj7ecDuaspyyboBSdiG4edaun2jgDLP6uTjfpC8WeI7cbYXQhkvG5nC5uBJA+ekGap5FELlYpvqleaQ5mY8vSER1mg7ivmp9gXhoY1vyTWxoJYq2UacxS+cMlXHkFSJTwYjdLs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from VI1PR04MB5005.eurprd04.prod.outlook.com (2603:10a6:803:57::30) by DBAPR04MB7381.eurprd04.prod.outlook.com (2603:10a6:10:1a2::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Tue, 17 Jan 2023 09:20:24 +0000 Received: from VI1PR04MB5005.eurprd04.prod.outlook.com ([fe80::e2d1:cb8b:dc57:8749]) by VI1PR04MB5005.eurprd04.prod.outlook.com ([fe80::e2d1:cb8b:dc57:8749%6]) with mapi id 15.20.5986.023; Tue, 17 Jan 2023 09:20:24 +0000 From: "Viorel Suman (OSS)" To: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] thermal/drivers/imx_sc_thermal: add iMX8QM sensors Date: Tue, 17 Jan 2023 11:19:56 +0200 Message-Id: <20230117091956.61729-2-viorel.suman@oss.nxp.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230117091956.61729-1-viorel.suman@oss.nxp.com> References: <20230117091956.61729-1-viorel.suman@oss.nxp.com> X-ClientProxiedBy: VI1PR0202CA0022.eurprd02.prod.outlook.com (2603:10a6:803:14::35) To VI1PR04MB5005.eurprd04.prod.outlook.com (2603:10a6:803:57::30) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB5005:EE_|DBAPR04MB7381:EE_ X-MS-Office365-Filtering-Correlation-Id: 82565ea8-5919-4ab9-5e68-08daf86c1043 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JUtKbmfd3W6etPDyi4c9XkXOErBMKzElqIgJECrWfWoRy4NCYwegfrFGsXWW4NsZ0dfl0eMzf3KvxYMHiy4p+tygXXQw4uo2PZQzPxLSXtWb7hvtZEhumQK7Mn4fBZ0qtb+K+TPhQRvnvONdksMbxa6AJTDRMdp7haNFEF8/ir49TVh9kYSKg8xBVi4jnMk2o32kbj+tGkI+ojzp3ta1THZaHornXPgteAlPydKZGo7tz6WPhC0WBAqfTotiYO7UH6p5a0CK0rgGjmhrlSmdTdxE4RcIxmDchtTw/QEvEtMowFt7bNCCaCCuWLxKgqJARHnMYAe9fHFz57JFAhsumqgml1o/dZd4HftR546jsyQz8YPb0NaA54Eu/eWuXqZzOO3OTf6vzP75ex4GLDrad3cnTvhozJ8Y+iW0F4o5qzMazWL+wo5LjDxvXXe/I6zTjFZg4CZVuNLy8w9aMicXoRPkECYBLAXgd+gTKKw+SlY0MRgtwmpEcs9KZp7ntzIx9uoFbrcG4QBPWDQRFPcy8mMfL6N6lU7IXMRu5YN7HeTahmEDxeQt5MTojvTGEZDw5/FUKIh7EoS+Qlhl27M3aJorCPMI0Cby4TSF7kWNJTnnySAfpvTEeDodbumpPXt2sNLXaJtA3b34P90VnSWLicIF7YsmGdEET3ndoCGrdXA/WVrCQUA0aX2ZX42GdrU/v2Fuou5jfT3Wmxtdg8I3Cs3bXxxAFcfFl1JfvAKEZ1W1AOsFA+1lQulUJ+UCkY4d X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5005.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(376002)(396003)(39860400002)(346002)(136003)(366004)(451199015)(38100700002)(7416002)(86362001)(921005)(8936002)(8676002)(66556008)(66946007)(66476007)(2906002)(5660300002)(83380400001)(38350700002)(478600001)(6486002)(52116002)(110136005)(6666004)(316002)(41300700001)(6512007)(1076003)(2616005)(26005)(186003)(6506007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: J3Pa2/iAN2XZRY9WTG/NdWCOna1hs5FOyRSPkGJXqvlH7fJXlwkd5ZBRvvi+mdVKWzalZ6Hd9MzN7Qs/41ek84BSb1d1NzCGk5N71Voo+xJ9iRXmtg6IPuvg/jZ+ki+Id5SxgaRkBR+ZnHU9vv/14NdGcYdwS9lozU1YavPLm0TBfL5KXrySruPRSj0Eg7Ogl2H/4J/QQ9kAGiJtqUZFpPUyFDDl9WVzYH8zPMa9aUfAL5vOtNgkl32t8pTpSlFQf+qpSOMy+bGpG6+9+8TfrdcGVEfsZKmRbuW6afi1ovP8KVtkeceMn/wn1LEEiflJw7MyCMxup4Sbr44KpJQODTRIMtSawZTCCGTyBw22cocuv/T29VNgOtsTzbYnmgwxXJrTJ1rr8LdkLxpkfpteSvpRO6mo7E7TmYkoaKMgJ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I+quYFQVLF9+tbSH3HQBu6BNnA2H4fRcicnVIp4V4van+gOPbbyFi5IkCm5YpNyj7e/ARxLJ6pNRT9ieoEH3tQyhQ5Q5LYGsudt4ffAef3WaXKfa9owfdxmf47/FEMRnncaA== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 82565ea8-5919-4ab9-5e68-08daf86c1043 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5005.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2023 09:20:24.2165 (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: fIDPp8nGMw9X+jCzNa//WUdeueojQMttyDYKwQ8huWVCetU4qUWDgjSVyMostpegdN6+NAbO3tB19XJpeDCjVg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7381 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Viorel Suman Add iMX8QM sensors. As stated in 31fd4b9db13b ("thermal/drivers/imx_sc: Rely on the platform data to get the resource id"): The thermal OF code returns -ENODEV if the thermal zone registration with a specific id fails because the description is not available in the DT for such a sensor id. In this case we continue with the other ids without bailing out with an error. Signed-off-by: Viorel Suman Reviewed-by: Dong Aisheng --- drivers/thermal/imx_sc_thermal.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/imx_sc_thermal.c b/drivers/thermal/imx_sc_thermal.c index dfadb03580ae..378f574607f7 100644 --- a/drivers/thermal/imx_sc_thermal.c +++ b/drivers/thermal/imx_sc_thermal.c @@ -127,7 +127,11 @@ static int imx_sc_thermal_probe(struct platform_device *pdev) return 0; } -static const int imx_sc_sensors[] = { IMX_SC_R_SYSTEM, IMX_SC_R_PMIC_0, -1 }; +static const int imx_sc_sensors[] = { + IMX_SC_R_SYSTEM, IMX_SC_R_PMIC_0, + IMX_SC_R_AP_0, IMX_SC_R_AP_1, + IMX_SC_R_GPU_0_PID0, IMX_SC_R_GPU_1_PID0, + IMX_SC_R_DRC_0, -1 }; static const struct of_device_id imx_sc_thermal_table[] = { { .compatible = "fsl,imx-sc-thermal", .data = imx_sc_sensors },