From mboxrd@z Thu Jan 1 00:00:00 1970 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 78445C7EE2D for ; Sun, 26 Feb 2023 23:00:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229595AbjBZXA4 (ORCPT ); Sun, 26 Feb 2023 18:00:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229701AbjBZXAw (ORCPT ); Sun, 26 Feb 2023 18:00:52 -0500 Received: from esa4.hgst.iphmx.com (esa4.hgst.iphmx.com [216.71.154.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6715A199DC for ; Sun, 26 Feb 2023 15:00:14 -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=1677452414; x=1708988414; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=J9Xh3CSLaOh0wPb+8qljSocu9qIOGDzuCRuMHEY8zLA=; b=EVmkVTQlbxyS97u6PpumvyqFQbqM1h7Wc/6rUTqEG6eU15H5aQfl9nHn AVz1vMIcB5eCeyqVCSS25iJrmSMZD1oOsfICZFhILTmoASPcFnr7ePz6t A7BkIgV18vlb9Aqu6qR3CcEWj4DuGpg4g4FM3OHnl6vYOX4Am57bgAvso DbLQI5WDQwJrTktcE+fDrFbXfOvRC6YTjUK4HGFrzbLze4llkWFX3RPPV rvuonYf/pU+v3SfTg1Cqw8jpz5xF9N1VoxTyaNnTLFAZVgr9+H8QvJ4CA b/OYyRI//mDsaxgjjQNRU1WZtvCIrt1P30PAAB+usLgbWulsPdRsw5IQr A==; X-IronPort-AV: E=Sophos;i="5.97,330,1669046400"; d="scan'208";a="222554290" 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: uhw92SzklI8T4BjRpnmmNz31OqFgZa5/yE48BeIHkz1tgkABcHsU2w1K17pBtg5tzeKycLpEL7 POBD1o+4PQr6SMkZKny+LbvfGweghOQpMA8uFmJXDW1VX8VfRhv5vGROPZB87FYdUzyWFnBBQc VR+SYfWpviEE5BOpX84xd8KT6ADMnQEKGzmt4wyWjqnwRAJyToxDpQObfP+zTNh9+nRqJu8ABK 7BshHyuBXINC/YrVXZQSiqfdVypPvsecA7YNwo0KDrHNl5Yid8h4jwchGKQqdDmJ9YWlZje4Dg TCE= 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: /gHqiiNgsByriupjQXPTzHzycOyEZpmKrI38/vj6kAjp52QVBSIHnGJgUO7Jr30Dabgd44KG6Q +UJoPXOWrDYWPK4OIkzPzQMtT8Otislr5Ji7scBmhg2k3AlALbmlRK+ODjwIm968rajk3C8w83 Cpde52zUhsWxClngn7Zza6Oeke21AUZcx5e6OuuJamhw97Kt3Z4ysSxEAhkoCe+yhkpZmKi+48 z10X5KaRRG2qLEBlAznl3Dhr5jVR1SaZk+8nedBFliTC8y/N09vm4RMlGNYIPDHOQBLPSvkDa6 A+g= 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 4PPzb72qNfz1Rwrq 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 obYJbh_443Jr 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-ide@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