Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2960282imw; Sun, 17 Jul 2022 22:05:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s5cUCABTOJw4loE+3OsDz6GTlExYi6GlB09V0fL/U9AMU1QJyBpqCcYLuJeZANFa39W0Kx X-Received: by 2002:a05:6a00:4109:b0:52a:c743:8191 with SMTP id bu9-20020a056a00410900b0052ac7438191mr26754328pfb.24.1658120739376; Sun, 17 Jul 2022 22:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658120739; cv=none; d=google.com; s=arc-20160816; b=PP1krGIXql9a4MSEP8yD4anPkPXmy90obiZWxgd+H/KUcIeWP88p7cfRyLUu9eyzjn x7QkNEGzrDemXlGEXenGqaUIY/6qiaO4eI800WuV5nfdGuZrdItpvDdhxjIl+qNsn79/ Wu/HBiChERB1VwWbz6REp2z5peLvl1I6R1BFY+bhKqgTrP3oUqxSzQRqk4GWJTBOjafy febuN6xQxyzycUKUjdKIbtnUlXo63n0dYm6uWHAIxpyYcYOCFk2i2WzcCnPjA7wZg3IA gZWB3BJfjAbkj5oIGzCjb/X0aEqCKEGMCebkrTdgp03PrAmkn86PY8lMQX1FspxyLq8I SWCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=Tf6RP+3TW2VwpFfY2QBBHXXDIuJugJ+MQ70PeiCqSWs=; b=wRjK6RWRaGe8hWfYjbWyositVyLe97QXQMr0dA/U6WZ5LIiq+ASXjemkcxp+UdAkJm X7DkNlsapErUUccK/zph6J5wdfwcVY6HVHFubmuQn6yCFScM3PFx05lSJ8ZdilwVJlgD STEynXJSBH1Qm2B914w60POD7rQfEuY4nyAN1N69rq58BOW1tZ8itwsAAtw8vfPmvV3l S8uZr8qZyS/5TYJRlYHTpj99SCVGAexhgm8xdBYHBGK4IpH7IV4W+0T/pqJgYebzsD1M +XD06Ux8uj//tiDVj0+PtvzMGtIm7V1NbmYhsRzojMZi0x+iqAYlkga/3rCo3//gOiDW St/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LAsRy+Mb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mq5-20020a17090b380500b001ef8f853cafsi22839813pjb.176.2022.07.17.22.05.24; Sun, 17 Jul 2022 22:05:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LAsRy+Mb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233134AbiGRE6U (ORCPT + 99 others); Mon, 18 Jul 2022 00:58:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230264AbiGRE6T (ORCPT ); Mon, 18 Jul 2022 00:58:19 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3877412AC3; Sun, 17 Jul 2022 21:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658120298; x=1689656298; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=Tf6RP+3TW2VwpFfY2QBBHXXDIuJugJ+MQ70PeiCqSWs=; b=LAsRy+MbAqqqe55RmOooa+scf/HR/PlKJ1V+H+XLdnp/UsEh/+sfAGgP 0SQizVtCQYOFjqnjFYSfuBiHMqp2pUsYhIXdQj0TYQl9cA/wHQ5JkBL9D JPWx+Ksstq8SSHjsbqTn53WoeXSA7YYl5qiZNE5vh95x2TkVVbMGoEd1K kGtlmveyylKsDze8FVmx6WFRjmGSvMI8ms5FMSv2du+pVwWjBIiruV+/S uTdAPHFilWsL6wR7WKbSyDFzpwwSzzvemwXlZryPZon8j4snF3vN5jTn6 b10DsV+zL1dixZs/GmTyxPl5Xx4pOiX2j9hGv+6GT6sk9ANXUHML0C8pz w==; X-IronPort-AV: E=McAfee;i="6400,9594,10411"; a="347821121" X-IronPort-AV: E=Sophos;i="5.92,280,1650956400"; d="scan'208";a="347821121" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2022 21:58:18 -0700 X-IronPort-AV: E=Sophos;i="5.92,280,1650956400"; d="scan'208";a="547342170" Received: from lananhtr-mobl3.ccr.corp.intel.com ([10.215.250.14]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2022 21:58:07 -0700 Message-ID: <77906f0518ea8c56d8967455b7315c150d443ec9.camel@intel.com> Subject: Re: [PATCH v3 1/4] thermal/core: Encapsulate the trip point crossed function From: Zhang Rui To: Daniel Lezcano , rafael@kernel.org Cc: quic_manafm@quicinc.com, amitk@kernel.org, lukasz.luba@arm.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 18 Jul 2022 12:58:04 +0800 In-Reply-To: <20220715210911.714479-1-daniel.lezcano@linaro.org> References: <20220715210911.714479-1-daniel.lezcano@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.44.1-0ubuntu1 MIME-Version: 1.0 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDIyLTA3LTE1IGF0IDIzOjA5ICswMjAwLCBEYW5pZWwgTGV6Y2FubyB3cm90ZToK PiBUaGUgcm91dGluZSB3aGVyZSB0aGUgdHJpcCBwb2ludCBjcm9zc2VkIGlzIGRldGVjdGVkIGlz IGEgc3RyYXRlZ2ljCj4gcGxhY2Ugd2hlcmUgZGlmZmVyZW50IHByb2Nlc3Npbmcgd2lsbCBoYXBw ZW4uIEVuY2Fwc3VsYXRlIHRoZSBjb2RlIGluCj4gYSBmdW5jdGlvbiwgc28gYWxsIHNwZWNpZmlj IGFjdGlvbnMgcmVsYXRlZCB3aXRoIGEgdHJpcCBwb2ludCBjcm9zc2VkCj4gY2FuIGJlIGdyb3Vw ZWQuCj4gCj4gUmV2aWV3ZWQtYnk6IEx1a2FzeiBMdWJhIDxsdWthc3oubHViYUBhcm0uY29tPgo+ IFNpZ25lZC1vZmYtYnk6IERhbmllbCBMZXpjYW5vIDxkYW5pZWwubGV6Y2Fub0BsaW5hcm8ub3Jn PgoKUmV2aWV3ZWQgYnk6IFpoYW5nIFJ1aSA8cnVpLnpoYW5nQGludGVsLmNvbT4KCj4gLS0tCj4g wqBkcml2ZXJzL3RoZXJtYWwvdGhlcm1hbF9jb3JlLmMgfCAzMCArKysrKysrKysrKysrKysrKysr Ky0tLS0tLS0tLS0KPiDCoDEgZmlsZSBjaGFuZ2VkLCAyMCBpbn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