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 9B32CC6FA9D for ; Mon, 20 Feb 2023 08:21:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230493AbjBTIVP (ORCPT ); Mon, 20 Feb 2023 03:21:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbjBTIVL (ORCPT ); Mon, 20 Feb 2023 03:21:11 -0500 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2061.outbound.protection.outlook.com [40.107.237.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D999EFF24; Mon, 20 Feb 2023 00:21:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NzKHneT+iwfXVzHc7GCR0+/EiW5wosRDViVHEJb0YgBR15DTpHB8SotElk0lsfQB6vyvyqqN+ng8HBh/7HNKDfoTaLOL1410EbgEF0czHdW6Z4Twmg9BS3rclv+Svd8Pax7r5XkVT8ZLRl1aorQby1n/HhBHSO9NgK9gSnSZLZj4ougGE71m0uD5ZdHgO746zGg9M717SDadNO5qaJsSbCgXWC0VKlYLqMFWrqhr+n6lXQHEr23ymnpR6VgznixTtlsBNdBJC8L60hrxRFQ5RQnv6iqWJDd70Xo8H2g4PCE9vomsDb2GNQIZ9GQgDqYkUbnQcDYI2Qg9iUt1ZAI7kw== 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=jnNb9LmLRmykhRFlP89vIGtvKFKdR6/UriuD2u5kFhE=; b=FCMCElyZousjQtOxBMADtVmCgwGsz6W5xh0sfttxqm1sRIGjLvxFR5bK2mNL8rnUesr8Hq3/PE4Nl6H3y+rzNcFcfVOUXVu55eUggnnhv9YLOcolmFyTxfGTwgbL1ZwnP470jM8Q14bynoIgU8jPEbULi6BFBos0qLU5QLY+dp8Jmz1/0POp+LqEFXpM6itkGMkhO3xzlqLReTtxJtOl1O+ZaZzQBmaEVHEbi89NQbkqFujGsT+rIa9QXJrcF/YrJfaW76DUIL7DqEsVj9hvQFTL0gDILhDjv9/6rf7kf9Oq3T7FSI5DckX1MzxqJ5e5/EiMOE6fT6V2uQGtXFNGCA== 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=jnNb9LmLRmykhRFlP89vIGtvKFKdR6/UriuD2u5kFhE=; b=C4d0qVuOgYqcsZYt9a60MrtVf6JQXyeiMJCDqUgarSGXPuZQa6PmOsuzk2hgYABOUVTvkknR3bF4HlAQjhHt0K6XOS6imcnemWZFxtWslTZltjqwFOPQOQQHkG3tmoCC/qVrP66BVhMJxZWimn3C6K7w3NeTbQ66nhz58sV5sSkO4UCERiUofkZwK6oiLMKIdo9b52FhHT5jWbiRnDLIxrPBHpLfM45bXBtHAW2/0UFnh4hzzZchi6Z2xIJ0hPyyMIgJB99wWlOaklK3L4MBbWJ7DQIKh37j+/nfZJCmlxzA4cXo/fYBefygv7QVqJBWh5JUNumgcM60dfHkpFdZ2w== 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:21:05 +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:21:05 +0000 Date: Mon, 20 Feb 2023 10:20:59 +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 , Damien Le Moal , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Jean Delvare , Guenter Roeck , Jonathan Cameron , Lars-Peter Clausen , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Dmitry Torokhov , Raju Rangoju , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Petr Machata , Gregory Greenman , Kalle Valo , Sebastian Reichel , Liam Girdwood , Mark Brown , Miquel Raynal , Amit Kucheria , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , Markus Mayer , Support Opensource , Andy Gross , Bjorn Andersson , Konrad Dybcio , Thara Gopinath , Niklas =?iso-8859-1?Q?S=F6derlund?= , Heiko Stuebner , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Alim Akhtar , Orson Zhai , Baolin Wang , Chunyan Zhang , Vasily Khoruzhick , Yangtao Li , Thierry Reding , Jonathan Hunter , Talel Shenhar , Eduardo Valentin , Keerthy , Kunihiko Hayashi , Masami Hiramatsu , Matthias Brugger , AngeloGioacchino Del Regno , Stefan Wahren , Neil Armstrong , ye xingchen , Zheng Yongjun , Tim Zimmermann , Yang Li , Srinivas Pandruvada , Ricardo Neri , Jiang Jian , Daniel Golle , Balsam CHIHI , Randy Dunlap , Mikko Perttunen , "open list:ACPI THERMAL DRIVER" , "open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "open list:HARDWARE MONITORING" , "open list:IIO SUBSYSTEM AND DRIVERS" , "open list:ARM/Allwinner sunXi SoC support" , "open list:INPUT (KEYBOARD, MOUSE, JOYSTICK, TOUCHSCREEN)..." , "open list:CXGB4 ETHERNET DRIVER (CXGB4)" , "open list:INTEL WIRELESS WIFI LINK (iwlwifi)" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "open list:ARM/QUALCOMM SUPPORT" , "open list:RENESAS R-CAR THERMAL DRIVERS" , "open list:ARM/Rockchip SoC support" , "open list:SAMSUNG THERMAL DRIVER" , "open list:TEGRA ARCHITECTURE SUPPORT" , "open list:TI BANDGAP AND THERMAL DRIVER" , "moderated list:ARM/Mediatek SoC support" Subject: Re: [PATCH v1 01/17] thermal/core: Add a thermal zone 'devdata' accessor Message-ID: References: <20230219143657.241542-1-daniel.lezcano@linaro.org> <20230219143657.241542-2-daniel.lezcano@linaro.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230219143657.241542-2-daniel.lezcano@linaro.org> X-ClientProxiedBy: LO2P265CA0268.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a1::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: 2ab9eabf-ef60-4165-e93f-08db131b68f0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mI8vJzPegRp/wOFzAbZmP5N8Z1atLFbxhZzp/ImlLWmqXkHxqEL2cY47QoW4YdlUvIfIkXQCJWv46okO5xDw34CZhgrQ8B9ZtnfH3LuhPWAs7YWCzVm9F5YpV3GyhQZPlGkFMZ0BZeY0SJparp0SsIOYvTEkVjjXHRka5GbsLc9gJqeO7XEOE7WhLJfMKxc7cSD+O3wNrkcJvOyB8DjTwrNF38JdkWQ3pJ0bLvxSNw3i4EOGj9P8mkczakUF2HA7X2aBW1xrcdSobfdWpV7wXa2w1AUcK+gZp53n2cafnu85hTa7A0oOJslVBplkQKsDIeOjvdhb2NGpa/VFD/3PGUTQxjscSXmQZk98JojRNRVqZWHD2wfFVefeITO+81IPEvX5z8XlijLpUh+j46ZTigong8uVlSy2KEhweeHXm2ARZL3p73CKg0411BSCVyQ8KpdzcdQGDp8wfPia3pTw2YLW/O/MffLGmfHDTm5C+MtDRwJYLBFbFEUxHpbyo8RDb8PoJwH4Gb/5yG52uvpV1aeCcmq11vCU7XiClUEeXnYR9FnUY3pe3UOH55spEKMjbYMrSUx+SutPc4kXrSa1KxO56C1ib/wpGcEgi3Z/lFmy7njxJAoOz3vwCpbYsqbCC2inHOR/tNLDMp1r/MNXmA== 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)(66899018)(8936002)(186003)(33716001)(6512007)(6506007)(86362001)(38100700002)(6666004)(2906002)(4744005)(5660300002)(6486002)(7406005)(7416002)(7366002)(7336002)(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-ascii?Q?SH1h7FraJcXu3RWhoS7QUeoUnJ9D1BceWHVi/N6SY/q7NLqT8U0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JuBhCBl+WWuONzGtofPsrgUTF9UeiRJyhhP?= =?us-ascii?Q?IEoPOCYgijPT20g1Gv+XGa1+PEDsalNU22gZowHgPmu7m2qV4ItqArZA6gDe?= =?us-ascii?Q?MJvzDI/oTvfpGzkvnVyQ7GXEpNJ2bXGbkBj8bpyqoQmGP+Rx0HCL+GXjULS2?= =?us-ascii?Q?+WOlsA9ik2EwgsEwzmZsSTSJQsqNIKLv16Lqqr3ua8svjuwChQjq5ee4EADW?= =?us-ascii?Q?ucj2HpW88U6fRDPlAE9eIXKe2iov2KvIvVsEIlKDCnPNrFTOLQ0wJcNZFMUY?= =?us-ascii?Q?ziqLKpndu5kYXnICmP/TMkk7i4iNuoKMNvDAWjVN+dTqpox0tAMDkIEpqD7C?= =?us-ascii?Q?qs0sYws0+J2YzTRd6rTHTaiDO9WuMZ+Txor1SfBJMh4ZQY1hyetPUqrTP6RD?= =?us-ascii?Q?tJSji783E6oTE4Qo7YPTkcu+ZEPnb4ZGpV58vbAU5MwpJdAxA0Zau/qcKxc8?= =?us-ascii?Q?PnAxQNI49KbusEldXurvhF2HWk1P6nEAYERSwDATTucnEbu7UiuuSIAj7IiD?= =?us-ascii?Q?RDYcLIlQBKbpz7L06HHfJADT718+pu3o0CRsdy9BN9apu3jZVY9+med12m9Q?= =?us-ascii?Q?p0PZtZs+GV2kj8awIQHllt/qH3XnWIzoLG292y5JmfIMDTscsBOdP7JVNmRp?= =?us-ascii?Q?q1AD28Ed/YaKqb0u0dZhglN33FlX/eRDXhhIwYzo?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2ab9eabf-ef60-4165-e93f-08db131b68f0 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:21:05.2782 (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: MrIckAu5N4BilHmojlslhKNhGkWyxootFbR5M1lLnQqqxoFGvzjphcGe7i74tA8Q7GeRdFGWwDrP2i737EHqfQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5040 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sun, Feb 19, 2023 at 03:36:41PM +0100, Daniel Lezcano wrote: > The thermal zone device structure is exposed to the different drivers > and obviously they access the internals while that should be > restricted to the core thermal code. > > In order to self-encapsulate the thermal core code, we need to prevent > the drivers accessing directly the thermal zone structure and provide > accessor functions to deal with. > > Provide an accessor to the 'devdata' structure and make use of it in > the different drivers. > > No functional changes intended. > > Signed-off-by: Daniel Lezcano For mlxsw: Reviewed-by: Ido Schimmel