Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp1523202rwe; Sat, 15 Apr 2023 00:36:35 -0700 (PDT) X-Google-Smtp-Source: AKy350bnmVIueIwZGd9HqOZCE6bVKs2ZJCKDN9FsCjAg2oKVJVoBnrqRpHVFeMQVGhGsFTXj0jRe X-Received: by 2002:a17:902:fa4e:b0:1a6:8268:9055 with SMTP id lb14-20020a170902fa4e00b001a682689055mr4789429plb.24.1681544195495; Sat, 15 Apr 2023 00:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681544195; cv=none; d=google.com; s=arc-20160816; b=KkEZoF0du5d88GvSqX0r+w9Lv8jWU3VaSsB16xX4mpXYaNh8KXRhQGAYG6TIaiAme6 B2qBWWgZ5jzdMzlKW89bj14EsmYFVXFLTET6J9uvasTZT0p3dAYXaCaf7WxUmsom3oUv J8yxPZM8O2JJ0PXYQqneWBdpddcrXhPfJApk0pR3dwdO3z0HCoH3/RPL0YXPEfnkYlln YqaNQcH7dqxS1TKrS+t5VVWZiBBYny6w6WsQVKVoZdxINRQPOGoxnqfZn7zjS45k/K8l NZhm0wx6wXb4sdY36DfWqLNkuMtQWdQ2oDsUfnNzN0Es6oyrSA5VnQgMUGuWyGITBV8t FWwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date; bh=PsMLVKLM2Go1fbxCbBnVhP+aGCFr/a9FbJE33iu30wo=; b=WDU7hgJKwpSngl+VzdoY9Q3+Wqxy3PPpzDAN4lF0xu5SdJYQZhAFLBnT1aRKP9QtKS lqvOVCKCQfPytV9HCKcZ5e9xz7q27H42pcE35v+RQLohmwJwyGhN4M0eKgCFkeu+DhH3 bjymjZB5nJh6yuJwMP081hv3AzvIDDvfIkuvjpY+k+RYthKkIp/b/ICjyKJf8YHWkZaG k2q8SlFJgL5tZ8FLt3a9Yf7ogBnhg+qPzCT/AyKyBlcwuAFwU/8jLXIRbXWD457QlLy2 TA3LzkqkbQ/UoPNhJNIxtkhRJkLPI9Q5qyMCRg1Iks8fD7BxT0ZIiB4latoiYbDdRrVi Nnmg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a170902a70900b0019acbf1dc4asi6311746plq.181.2023.04.15.00.36.13; Sat, 15 Apr 2023 00:36:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229752AbjDOHQR (ORCPT + 99 others); Sat, 15 Apr 2023 03:16:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjDOHQP (ORCPT ); Sat, 15 Apr 2023 03:16:15 -0400 Received: from hust.edu.cn (unknown [202.114.0.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E956D5243; Sat, 15 Apr 2023 00:16:13 -0700 (PDT) Received: from void0red$hust.edu.cn ( [172.16.0.254] ) by ajax-webmail-app2 (Coremail) ; Sat, 15 Apr 2023 15:14:35 +0800 (GMT+08:00) X-Originating-IP: [172.16.0.254] Date: Sat, 15 Apr 2023 15:14:35 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: void0red@hust.edu.cn To: daniel.lezcano@linaro.org Cc: amitk@kernel.org, angelogioacchino.delregno@collabora.com, bchihi@baylibre.com, daniel@makrotopia.org, dzm91@hust.edu.cn, error27@gmail.com, henry.yen@mediatek.com, hust-os-kernel-patches@googlegroups.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, matthias.bgg@gmail.com, rafael@kernel.org, rdunlap@infradead.org, rui.zhang@intel.com, void0red@gmail.com Subject: Re: [PATCH v3 2/2] thermal: mediatek: change clk_prepare_enable to devm_clk_get_enabled in mtk_thermal_probe X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.14 build 20220802(cbd923c5) Copyright (c) 2002-2023 www.mailtech.cn hust In-Reply-To: <20230411063531.3976354-2-void0red@hust.edu.cn> References: <20230411063531.3976354-1-void0red@hust.edu.cn> <20230411063531.3976354-2-void0red@hust.edu.cn> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <4fed91ef.3c256.18783c407e3.Coremail.void0red@hust.edu.cn> X-Coremail-Locale: en_US X-CM-TRANSID: GQEQrABnSU7bTjpkkInBAg--.44137W X-CM-SenderInfo: rpsqjiaxrxjmo6kx23oohg3hdfq/1tbiAQsBAl7Em5Ce0gABsV X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VW7Jw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 CgoKPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2VzLS0tLS0KPiBGcm9tOiAiS2FuZyBDaGV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