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 B747FC64ED8 for ; Mon, 20 Feb 2023 08:22:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230511AbjBTIWi (ORCPT ); Mon, 20 Feb 2023 03:22:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229963AbjBTIWh (ORCPT ); Mon, 20 Feb 2023 03:22:37 -0500 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2052.outbound.protection.outlook.com [40.107.237.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1EF21258E; Mon, 20 Feb 2023 00:22:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jWjlZ4ulAnp0DwKrZCi2CgH10wUyflHFn19IHIKR8YoIzyhKjOSOQjD2X9UPV1+UNEDi6DSH6hAGKeda38bxD9nPdnlIz6R3l8RWv3v9Xrv2nMDmlmbsuxYBnGxtzkXECG9xB//geubZorgWNc55a6bD00gcMFBVWyOWpkI5AACkxKXj6jYcJFK5Dy/p4HFciBI7y60IeYYjCvYGknLSgVchqpQ1IcIugs1XmM+Iwy0mBzee48qHDF1DueFFVBf7bKRu0hwedXLqyZqUgIUcfEwlPi/F8ElN744mVX/kK9LTSiMms3Fiygb8iMjdlXlrawpfaYRYJrRwM4VTV1N1HA== 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=wiBuoVT6cCflWomRymDRCiO7uVmklNqEroZtUhzy/PY=; b=iykv7nBQVaPTRIbiLt6YUtHlCdipWYbpXKU+IG5L5YRvQjYmmUi28hp5dDHvmcUBWXgad9XQFo8PGe4V3SFoeY3X5wAScaa5cO4BpV4yeHQ67uDvzdkAAqXa+Dd+Bj/GlnD9Wbd1EL6mesIHzGvlwnMTi+AjRGOB5eqk5X1wEtcsIYAPytNiZGzpWdiD9oLGawjMJW5pC3TT1mv8TtPDQAP+nNEPAV+ah9n8YvJkfuItmj/T4kpH9py4N0LUz+xYHuAFCaCPIHQz9BHPXLaTdAoyk1tLkwZNXKudRh+VkBvllGF/+P6jz0XFnG5XcW3thHt2bfwzEE5woWYwLKFjyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wiBuoVT6cCflWomRymDRCiO7uVmklNqEroZtUhzy/PY=; b=mCTq80TjtsAedj5bEnORz+bdjwRuEq7s9WTedmaqN7P6omRNd3f7JV8VPOfj1Frzy69TbBD9znRBHq7/PdVFRrIHpCx47Lak8XGrJqcEaIDs4vFcsCgnoVrYy4kx2001iYuLWckA1kfO8hfbOB93Q47dn4ZWkG2JDjiJ4tdJVocxs9kgOtvKT7VZS3+GrdJ0KARMRPI85wm6tjq7NPZld6q2fExPjN71arxm5lj67xtqThSjKZuYsiktJJqLnts7aDbxDZ6ezGFPf7gT8hSueVwxfdbrwawVOf+qTC11RxkzW75ygj4/wG1rlCn3JEml7S5VnxMP8fEExNOGcccC0w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from CY5PR12MB6179.namprd12.prod.outlook.com (2603:10b6:930:24::22) by DM4PR12MB5040.namprd12.prod.outlook.com (2603:10b6:5:38b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.19; Mon, 20 Feb 2023 08:22:31 +0000 Received: from CY5PR12MB6179.namprd12.prod.outlook.com ([fe80::7d2c:828f:5cae:7eab]) by CY5PR12MB6179.namprd12.prod.outlook.com ([fe80::7d2c:828f:5cae:7eab%9]) with mapi id 15.20.6111.019; Mon, 20 Feb 2023 08:22:30 +0000 Date: Mon, 20 Feb 2023 10:22:25 +0200 From: Ido Schimmel To: Daniel Lezcano Cc: rafael@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Zhang Rui , Len Brown , Petr Machata , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Amit Kucheria , Eduardo Valentin , Keerthy , Matthias Brugger , AngeloGioacchino Del Regno , Balsam CHIHI , "open list:ACPI THERMAL DRIVER" , "open list:MELLANOX ETHERNET SWITCH DRIVERS" , "open list:TI BANDGAP AND THERMAL DRIVER" , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" Subject: Re: [PATCH v1 10/17] thermal: Do not access 'type' field, use the tz id instead Message-ID: References: <20230219143657.241542-1-daniel.lezcano@linaro.org> <20230219143657.241542-11-daniel.lezcano@linaro.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230219143657.241542-11-daniel.lezcano@linaro.org> X-ClientProxiedBy: LO4P123CA0620.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:294::16) To CY5PR12MB6179.namprd12.prod.outlook.com (2603:10b6:930:24::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY5PR12MB6179:EE_|DM4PR12MB5040:EE_ X-MS-Office365-Filtering-Correlation-Id: 88fdae44-0087-4777-b125-08db131b9be2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WGdT1FYYOwWu5p76rw0OAO676W+NnzO5ENZjCEXTZYaqrbz1RbUmdlDZmX8d4fSvR0xFshybJZEFMgBOX1MT4FTg0GHiU59xLoikvjZXySfGTPV/NBQULcjhkbbebhArDS04kGFrmcj7hBBY/IWPJ7MnV0xGwCJspXnihsSRlPldYrCok0QtrOd6VduSPiWf6S+pO39JynXpjbAdOMXuMDzfB7py8jBR+nww0BUDX3qTlscTjtarOZ7zWuT1Jy53I06GusTQZRS2WYk4DAr998M4tqXu+IMdAz5qHwkBMhobCxFAptiu8uUB/MX5HI3uHrlN6aHRkS98MEtRICGRC7XqVZiewGYIzIO6moFMWE9NHnKYNTK2MTngjqGkMob0VzylGRfVhxaxxgwm5IQpg8jhPGsETCEozvLEZND+Yl7sQtfZl8HM7Am5FX0mAZLxuKPIo3sXLMIXptLikMeb/KXEBn+pkF2tcgmdSeMgVSyrU+18cpX+b9KiYs/8VKFs+kHY1ivclg1gPLGINMmoDBn4qg1ziPxnIuR2NdvrmiOcUxxse5yilKbVNLq2M4nGm88S21cv5UdkeG4M0V8w34bS+u7ROuJBTVHi6Q2Gk1mhei8rgHkZgviYG8K8Sop9v85L9ZLpUwUWvDRZREHIkw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY5PR12MB6179.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(7916004)(136003)(39860400002)(346002)(396003)(366004)(376002)(451199018)(9686003)(26005)(8936002)(186003)(33716001)(6512007)(6506007)(86362001)(38100700002)(6666004)(2906002)(4744005)(5660300002)(6486002)(7416002)(4326008)(6916009)(41300700001)(54906003)(66476007)(66556008)(8676002)(66946007)(83380400001)(478600001)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-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o74zDIGm+YBiMeVzqloF3KVWpE?= =?us-ascii?Q?WHXSCEiKolcSl3GK8pA4z4OysJa1+quvUUE2gvxqj/PjMwsvwqcO0Hz3G72U?= =?us-ascii?Q?v47oiNBg9a5gGE8RXR5z8SrNpHfTjfxkplN7O4dcEZ9C3yMnEL3+bBIs2nwE?= =?us-ascii?Q?1KcPzgYkSq/QH0k1AnrlTObttYjLBPMLyrs7oX1k0EjqhdGGCxSdUWOdLoVc?= =?us-ascii?Q?aUF7LzwTQogxmxQ/pPIcAkkcHjbsuS1l7m5ibM1iY2WLJ9I1YQrMUsqTDTty?= =?us-ascii?Q?tNOsXJCOXVkvxpiMWbaGWskReGShegz63aEqIQKK+QGP8HWr+K1Aw+ky2viS?= =?us-ascii?Q?4sCVPXwJfeVO+bbrtX35El0PtbDiGpc6bBwQcEb4KuciDdDhEazWnx1fh5hi?= =?us-ascii?Q?bB8QIyxPJKP5TcAegec77TByyuzv9vDaICbJ8BNldE+1QDm6jw74nKThvWJg?= =?us-ascii?Q?LQRHMOpLhs3WakJJ9BIrYRpuqmMu4TKEX/jPKeCejU6rHNdnYWpyxk1ektEJ?= =?us-ascii?Q?b4LsP/NdJMpa1ONL1pZiGnJSOoldvwRdy9/Ij2fTkMS/MI1LcT5KrtNPaRUo?= =?us-ascii?Q?4n/B5q+sO3OTNM0xIfDQ+p4v1TF5BzaK0kc2PqiithZMpGbg3Jr0XmfJxVz4?= =?us-ascii?Q?S9M5czDhP+b41AKli1yoUu21vvTz7TpFW2kGD3spBj76TbtHr6SHW8UhZJHi?= =?us-ascii?Q?MLtYmI7hSi2dbF7e/Unck2i7OtOU9pQVWj6t3PvM?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 88fdae44-0087-4777-b125-08db131b9be2 X-MS-Exchange-CrossTenant-AuthSource: CY5PR12MB6179.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2023 08:22:30.5313 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: pssYh0A1vBG/2EBCb8vFtsq54jlid6iQ8akX9knHzVmCCf+RYba9MrCn17NmTxAWKL6WH0BSIlP98c8Xj5ffJQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5040 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 19, 2023 at 03:36:50PM +0100, Daniel Lezcano wrote: > The 'type' field is used as a name in the message. However we can have > multiple thermal zone with the same type. The information is not > accurate. > > Moreover, the thermal zone device structure is directly accessed while > we want to improve the self-encapsulation of the code. > > Replace the 'type' in the message by the thermal zone id. > > Signed-off-by: Daniel Lezcano For mlxsw: Reviewed-by: Ido Schimmel