From patchwork Thu Jan 5 08:22:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Alice Guo (OSS)" X-Patchwork-Id: 13089534 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 6E31FC3DA7A for ; Thu, 5 Jan 2023 08:26:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230035AbjAEI0n (ORCPT ); Thu, 5 Jan 2023 03:26:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231876AbjAEI0C (ORCPT ); Thu, 5 Jan 2023 03:26:02 -0500 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2062.outbound.protection.outlook.com [40.107.21.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1794B3E0FC; Thu, 5 Jan 2023 00:24:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cmY5pbKh9cfOJKQs2gGRKTLLzs7resi+Pg/olrslY7iuDiZKyv1zj4BBf4W+P2p1s2WHxHqWpyBlkLxZUG5HOPFgenZUKzY9rryrB9fI9spY259LX2b1+iig/iYIZvckJlga1lp7MCsWLAW1DOaZ9mbFEHoR/zs/fl9gPbxuazqVjV0W1X6us/iZrsT3xNxXS/FiJxZMd6cmxufiwF5F8/iQ/7CTRva1TKWeOkWiPkSa9RMOuQGJfrCsON89kuPLEkCdgAHWE+zKqPsKX2knNeW7k1XeBQk+KC3Avy6nFA0H8u5DlNFda2zgMwyStO7BPKbysI9RmRInov7OuyhJNA== 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=UEsFfGEkFToT5Gu9Q6563Pke+P0ryz6JZWx2/xdw5vE=; b=AYbiwXD2tQN/Rf1DjXF9uXoI5bMr9z5pPY/RLaczs+vAnxmT+DLORojnQiGp1yXh6VbQWvL8PRSUKaQjpdoOKBJI574EaRgO0ZWmEAYBoJYQBvYDKUr8bu0skwyz8quNc1zJIUu2M20tY+4COMxmvOM0naiJ80gSFAfySWQ+dfS4XvUvxuzaIFLpR0eGzVgifiNG0WrOZJwNNRDd4BLrmC4hg0NvNG3RdyXrGUkMjqUgNaVR35TxMwbMIXoNyjMadu7Avik/hfqT1/6eYVmjS1swnxOI4oLC6ZRjm0+c3cGtD5rjNa89OMmXEkms7JcZ8CG4AppJupKZt6HAnKtZ2A== 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=UEsFfGEkFToT5Gu9Q6563Pke+P0ryz6JZWx2/xdw5vE=; b=RFCCehVGaRXWIRyrJlOq5tZNiLTL2eA7rRhqeDrjAQ1+PLjcvPi+Lv2Ptc6T6YNSejG7cU5ne/0s0DDSrJ0JctY8mk/7J3e8cbpXcKJTBwRqC5e/17zPREpEntfd4ITB4k40iB/VdWQob3/23W+HZy6ibMazJoGKLNfKGHGGHTo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) by AS8PR04MB8771.eurprd04.prod.outlook.com (2603:10a6:20b:42c::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Thu, 5 Jan 2023 08:24:34 +0000 Received: from AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::f75a:918f:6b4c:4a00]) by AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::f75a:918f:6b4c:4a00%4]) with mapi id 15.20.5944.019; Thu, 5 Jan 2023 08:24:34 +0000 From: "Alice Guo (OSS)" To: rafael@kernel.org, daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, aisheng.dong@nxp.com, shawnguo@kernel.org, leoyang.li@nxp.com Cc: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/2] add device cooling Date: Thu, 5 Jan 2023 16:22:32 +0800 Message-Id: <20230105082234.16962-1-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SG2P153CA0031.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::18) To AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6053:EE_|AS8PR04MB8771:EE_ X-MS-Office365-Filtering-Correlation-Id: de0bab16-4114-4b42-f31c-08daeef646b2 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: np97NNi8TzOKB280rGMN9TGp4h91YWG8Ugr9yOzSi9Grl7FROBJMa+UJFz3kQbeSbWUnhqboeFrhEWr1pm+2PjqlGHJI7qSHZgmCuCO2hkbE9KLcpgP2FT56ibOgxCWN6N9V2G9wJGM6+2esXf5Qmk4tEsqcr6KnODPGwzwMVzJOcME1Pq4biNMTfkGqeo1PcLMaOng7LiG77HiZOV1YBrmK+7+FPnVwUMYfCAOow/UDcMV5ZofAnUnru0W+IFjFYQpUitOX9gqjchq2PGZY8S2BidygnVMr73RT5l6uDvXNClWrq6TzJgP/bXzRpqS9OA2rB7Nk+SN3zSlDDzmjeFjHox8tGn733MCAqek6V0IDWnyF71Xcns67tmZYG7I6C22kI+72UkSF4pVLcZR+yz28zUyujiCDX37eXMf2qJJDewupLNWrBwcXcXsoaXxEnjUkx7k4OLI5oS09BegQlK44DxlcpTwyL/cj97maeED2HeDP0KFjoweKmREnw/HbYLhLT75Wz/gL7T1OySkhxq5BB1QPMJckLQGI4uSGCJGrwWqUuq3cgKJkOYlhl4/dJwt8YPyiaLLBSb/lHfO0V+eWev51MdoYp67gVvwfVr+UZeAtCkkx4LdKAQC9gt+BRa6r5B5uoqwhlP6BhP+FyBabuH3OxZR04o5vmzn+bxVACozhxv/wXfFXGUgWJcAhjrgZZJPezWHo6MNrcMNycA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6053.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(366004)(39860400002)(396003)(346002)(376002)(451199015)(5660300002)(4326008)(41300700001)(316002)(8676002)(66946007)(66556008)(66476007)(8936002)(2906002)(6506007)(52116002)(478600001)(6486002)(6512007)(186003)(26005)(86362001)(83380400001)(1076003)(2616005)(38350700002)(38100700002)(4744005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3XkR8q7LFBhJLBLMkpatZDudgLPtcJ8f11alpUV6GG3gciubTXbFI6AnkXK3sw1fy0YHAYvkTTZVdFfo6Ai9or9g4nTVBr3OU6pPumtMNaf8iUHYqotE0fqhc4z18xSSOO+xQD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7IKhlZz5iEWHzcbDBi585Gv2nB0dkzWAk1bVi1IvlfQg7pKQ5l9bUpAtWSpBLT2MON4VO7919wau1KbY2nh6FSLN9EVkpkgNip/DqBtk4p2eyU4RUXRQw3bVJs+sn7zTdbtNr1LDVXlNQtuvFZpDzW5Qd+JA1HvG265KJc09IX/iNXMpg9UIJcPi/oTth5XMvv46fPnCfuVI5nB47zZUA4LGlUyxlfJYyFcGZWaqnrl65qiSYggjNyNxSV8oJiBaCp8HpVQIjC6+0/nHtpf0F/ukhq9yiw++kwpRGrBxizGdNPo4zK+tX6NKS3YxCH3Q/G+0MBya1F9PniMvGkPTBNukdORF7u7tBsVjdzPQdkoA X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: de0bab16-4114-4b42-f31c-08daeef646b2 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6053.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2023 08:24:34.6063 (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: GK0+sJ26FmtJ+jj2HO9YEFUDRjMJ2QNvuYTgy0F33MfAOP036YSBleDFNdzEDdaZCAjfG1pfn4CXCgCcJsp7ZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8771 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Alice Guo Anson Huang (2): thermal: Add generic device cooling support thermal: qoriq: Add device cooling support drivers/thermal/Kconfig | 7 ++ drivers/thermal/Makefile | 1 + drivers/thermal/device_cooling.c | 154 +++++++++++++++++++++++++++++++ drivers/thermal/qoriq_thermal.c | 83 ++++++++++++++++- include/linux/device_cooling.h | 46 +++++++++ 5 files changed, 290 insertions(+), 1 deletion(-) create mode 100644 drivers/thermal/device_cooling.c create mode 100644 include/linux/device_cooling.h