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 B8E6BC7EE2D for ; Sun, 26 Feb 2023 23:01:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbjBZXB2 (ORCPT ); Sun, 26 Feb 2023 18:01:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229682AbjBZXBY (ORCPT ); Sun, 26 Feb 2023 18:01:24 -0500 Received: from esa4.hgst.iphmx.com (esa4.hgst.iphmx.com [216.71.154.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9542F1A97B for ; Sun, 26 Feb 2023 15:00:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1677452449; x=1708988449; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=J9Xh3CSLaOh0wPb+8qljSocu9qIOGDzuCRuMHEY8zLA=; b=PmcBqklYRAlnFwxHUOJ3k172lyJnT3SBzF5/PV+fVXTsdHQjwExZF4/u e3HSZuHHyrlQopHyuyuX8Le/xL3+trbzbp3Dpb74NwgOVZfwpMcaj/pAr jQ9tFMAemOaJ8UwHJr1+n65teZyItRKAr6iIwSKQCr5x0Ymg/zIHEyfu8 x4X7Uj8+8uJ1j74EUwPP/E2xU+dxQTl6O57Mz4wEsm6kX5RrpLNj5V5T+ /Hat965o7KLeQV44Bg2qkn5zyq827BSSN2XsNf8MciHSJDonX5lO6HlJC dvIv8DGdyOin3jSCxSxWDIfveMR7rW5RRQI35m1zQ7qPxB2yKI8JxmGkW A==; X-IronPort-AV: E=Sophos;i="5.97,330,1669046400"; d="scan'208";a="222554291" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 27 Feb 2023 06:59:15 +0800 IronPort-SDR: N9QTtUmSwTmvflL6JYeWkIYbgfC3RYEpDsKuM1iR/HJCqCpoekv6M6IuUwyV3rPQX2H+JPPUIC 49YzfZ9FaXbPTUATkU2AcI4NvnspsbW/YbPoFFBxPIoZhQnkhw3s23GKr+7cGxou7yjPib7ML+ H0AjpzGDpnB5GcOqbKA9RRDZwK6lgfwT9PW0TYVq/AdHVffOHKm1wynHo6ukFhuHu8imG2tSWV KHcnBh/+gm21xwR14m2IvkYQqdZLL1fwviESSxGAFRRnWns54eeYbt96h2/KH7xP/oq7fy2vOb 5kQ= Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 26 Feb 2023 14:10:24 -0800 IronPort-SDR: 1TKUcZJvmHFaEuhQuhLgzrL66h1vQ3vUhzNUsu8R9oo4P8/eWW9X+N9StG8skJQOpj4aNAx2Rf qDET5agrzGJoKRcBZqVr9He8XD6P73Iff2f87kru1/cc+aNKu+jTRE4hqcYBsZQtLF+D958Kix SPkaAME1IvX7EyMLwFIS1xkR0F/FWfyjsoPoT33WOjUT0uHmd6jXj2hBt+pgTFKC0++4HfNGVN pfWa3NxVKzUJBRqHj/fzWy3VEeCl0yaS6TK0k1oRUlpwKJ/k2hS4Q8136f3ZVFP2keUuQvBfZu 43M= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 26 Feb 2023 14:59:16 -0800 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4PPzb739fqz1RwtC for ; Sun, 26 Feb 2023 14:59:15 -0800 (PST) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:content-type :in-reply-to:organization:from:references:to:content-language :subject:user-agent:mime-version:date:message-id; s=dkim; t= 1677452354; x=1680044355; bh=J9Xh3CSLaOh0wPb+8qljSocu9qIOGDzuCRu MHEY8zLA=; b=iAFv7gkoa1pp+0xeoFxAdTchRJcF7b5UmjXwypMYYaMEb+gXnhh i+xBLhRs7ybC6NKcaFw1srFUizSpMJeDj3DQb3u52D15SERUpb3qogMC05ahSV0Y Rfu9IKYjLO8ZUjHo834CD/sYRhYEslbVwDIEgc2ZmU1mFVQU7vxDbCob9DXmC60R A78dZnTzDMksnw3bnTzp+W8BcBYl0KqZEcYY13QB5+bS3Z0Bt7BmxsEweV82kybH cIMGUln2jO0hFnxaRlIQBZpOOvSZTLpgd3fHkasBzpalSwtP1irBSCNzj1UrwHzU e2IJ7N7AouJmgR9knygZsoS8VFPenj4hDWw== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id QkM0skjmTQ-r for ; Sun, 26 Feb 2023 14:59:14 -0800 (PST) Received: from [10.225.163.40] (unknown [10.225.163.40]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4PPzZz6V4Rz1RvLy; Sun, 26 Feb 2023 14:59:07 -0800 (PST) Message-ID: Date: Mon, 27 Feb 2023 07:59:06 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v3 04/20] thermal/core: Use the thermal zone 'devdata' accessor in remaining drivers Content-Language: en-US To: Daniel Lezcano , rafael@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown , Ido Schimmel , Gregory Greenman , Sebastian Reichel , "Rafael J . Wysocki" , Zhang Rui , Len Brown , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , 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 , Kalle Valo , Sebastian Reichel , Liam Girdwood , "open list:ACPI THERMAL DRIVER" , "open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "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)" References: <20230226225406.979703-1-daniel.lezcano@linaro.org> <20230226225406.979703-5-daniel.lezcano@linaro.org> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20230226225406.979703-5-daniel.lezcano@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/27/23 07:53, 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. > > Use the devdata accessor introduced in the previous patch. > > No functional changes intended. > > Signed-off-by: Daniel Lezcano > Acked-by: Mark Brown > Reviewed-by: Ido Schimmel #mlxsw > Acked-by: Gregory Greenman #iwlwifi > Acked-by: Sebastian Reichel #power_supply > Acked-by: Rafael J. Wysocki For the ahci change: Acked-by: Damien Le Moal -- Damien Le Moal Western Digital Research