Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3621688rwl; Sun, 9 Apr 2023 20:51:27 -0700 (PDT) X-Google-Smtp-Source: AKy350ZsZpblIP8SQpuouU3DJ5bjobx32014hfwIu6L2ZKK5E3l6ZRdFuDYRHdgueygNNb8h7Xf/ X-Received: by 2002:a17:90b:4b46:b0:23f:91e5:103d with SMTP id mi6-20020a17090b4b4600b0023f91e5103dmr12297310pjb.36.1681098687445; Sun, 09 Apr 2023 20:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681098687; cv=none; d=google.com; s=arc-20160816; b=nCrKYs7w9snhBU+R1ohlpagUod4EO1bc3kmSpTaQ2pKqc8l883tef0UzIca1CbY4FN VtwpSq8q4DRXb6wAXxrT7slLKopt0wfJtHXKBp1kBoduBVw2VSiUevryGFSMRAJu+0uj Mw9x/5+pHVNQWOCoaZCtwTS7PLhOb0OXLsOjeKwZgWygAbiZrc+ul0NCXQ+9ZmqBQ0WT SG83BahtZEO65oZqb5+2nrYYTgow7qVWhw42tost4b7F2ierGoEXP2+Wh9RzNdOW5O/a rd+VhyxY4zqG5Bxtop0gC2QCZ3CtB19NUEsmpjFOAG54jkamq2mrf/cuSFy9pacLc4Cp NPtA== 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=uL+dJ6AbFU1hQr7Ix7vf50GC+wDr2ZnDLySV0J4ahmA=; b=XzFZBp8W71xulsPHy56q3h5TeBQtKYqI/Y1LumoOoSPUAEsMlyLtE8bWxFq4gogfO9 ScWAO0Ejhmu15wXiNydcuw5zBLQgPTKmETk0p3gTI54lqhzNlHRtey8lMtTAGsciH8D+ ztHk32FlhrWNdBvwHB9/przkzJGZGLq2oktFE0d28BrF8btOK8QlgXuowddvicGltCEJ wu7mSyIdkAz/x3g5VdLyMnDE7okDEH9Rg8ctELqDLQMqX6g7ZkgtyIz34PC5VeoF/9UG jIlpJzNoDPEE42xEHuAZvLyxIJS4alm0J9hyODorKBH7Q6u9HhtgE8I72QcEDGKAml4J yK1w== 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 q16-20020a17090311d000b0017a0e7aaf6bsi10635957plh.128.2023.04.09.20.51.16; Sun, 09 Apr 2023 20:51:27 -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 S229628AbjDJDrD (ORCPT + 99 others); Sun, 9 Apr 2023 23:47:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjDJDrB (ORCPT ); Sun, 9 Apr 2023 23:47:01 -0400 Received: from hust.edu.cn (mail.hust.edu.cn [202.114.0.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4A2B6E68; Sun, 9 Apr 2023 20:46:57 -0700 (PDT) Received: from void0red$hust.edu.cn ( [172.16.0.254] ) by ajax-webmail-app1 (Coremail) ; Mon, 10 Apr 2023 11:46:17 +0800 (GMT+08:00) X-Originating-IP: [172.16.0.254] Date: Mon, 10 Apr 2023 11:46:17 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: =?UTF-8?B?6ZmI5bq3?= 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 v2 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: <20230403164610.3608082-2-void0red@hust.edu.cn> References: <6e3c59c3-8ad0-9c53-62a4-7be6f55a7c02@linaro.org> <20230403164610.3608082-1-void0red@hust.edu.cn> <20230403164610.3608082-2-void0red@hust.edu.cn> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <7b1f01ae.3988f.18769458aaf.Coremail.void0red@hust.edu.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: FgEQrAAHVwiJhjNk0EdOAg--.33659W X-CM-SenderInfo: rpsqjiaxrxjmo6kx23oohg3hdfq/1tbiAQoOAl7Em44HSQACsE X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VW5Jw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 CgoKPiAtLS0tLeWOn+Wni+mCruS7ti0tLS0tCj4g5Y+R5Lu25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