Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3317338iob; Mon, 16 May 2022 19:11:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLtltPp/IFNedU11VW/I5uw06fwVZgRp1gNhO/ai0rynwIcCmMm6gO9dkrPSi8mTB0/xfW X-Received: by 2002:a17:902:ef46:b0:153:81f7:7fc2 with SMTP id e6-20020a170902ef4600b0015381f77fc2mr20694250plx.26.1652753490010; Mon, 16 May 2022 19:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652753490; cv=none; d=google.com; s=arc-20160816; b=SMoj5uaHpV5AxYJBXlVUEYQ7MWikhnNdbpjTHLs3EEcFr4C4ZOMsp4+AAnhMCizRiN L6j0dV4V6Fg2JC5RDWMITO2V5C5TJPWUask9ZYCHOGVnJywFYwp9ryFgIMDE+vQYIMel pOahdAXmwcj5SvCrQRFA9t8x8h2JVkx1YngtreZW9DQcrKVhf84BJ7rAmGSPLULnKzBh 22VFJnwherpHdYwV42BWhU+w03TzeU19PKptQmdbwXvEOpTisHay9/ZmyTS8RQIcp/Qg kNWV5NcvdKkvQRUKKjvLyJ1xIC3lvplPodNpnc64T+wUxy8Mu48nRQQLcx7HHK0T+/71 kXWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=6ydHhXASeqXahTkAd//FnSPFtSMdImHAirTmzKWhapU=; b=K2q0mWZxB7S3iehVHXibq0MLgsFhrfq88cBaWjfCFqo+BWZRGSt80ZZEv+uXHFwG9U DFkz9whjbfeTC+DktmM0Pt6ve93AlUSGREgPHRJESPuQfhokbKzhiPur56uWTo+wj0gY EcT6FhDkd5gsOXkyYS4Ap3P5/2tpHp0wFuIcFdLvKgTSI1jttpE9/kc37ly6vEjtPxaa BP7B9ICb6bjarTfjldwTk4ALcQyQgtsTarbZvzebX0Cq0bOKLn7n1XTOHbN0/mwQMRMt uPn2txQ5hKZK0O4y5K+1f2N7cc6lzTT2gdMmD8HbDGy2U1n/sCsFdb69ry6HPqPD+rHV y6rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="pWB/QABn"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w22-20020a170902d71600b00153b2d165e8si13418358ply.496.2022.05.16.19.11.16; Mon, 16 May 2022 19:11:29 -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=@linaro.org header.s=google header.b="pWB/QABn"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236124AbiEOJl2 (ORCPT + 99 others); Sun, 15 May 2022 05:41:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236133AbiEOJlL (ORCPT ); Sun, 15 May 2022 05:41:11 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDFDB60F9 for ; Sun, 15 May 2022 02:41:10 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id i10so21210765lfg.13 for ; Sun, 15 May 2022 02:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=6ydHhXASeqXahTkAd//FnSPFtSMdImHAirTmzKWhapU=; b=pWB/QABn6T3KK9W99gpPyH12i3CUzJYbpOwevKiA1X06TypvIY/u6B9whjsR+n9Kkj pSntl2oaATftH883/5FpqZXNIKjqgilMRCL5ra19udSQoFa8LVrEBv6ClO26rnkarcx0 8bziTvsSTVqK6CTCfqg7yldbX3aG6DQD1QZLgXRcoOrWmhXG/70rPUus3F1qz/8EMlhX AXrRPcftsjDit4aZYewu9L6e7qiW9d/TI5P7dGyuJ1mTOGE/1zvYYI+fmoBfsh41pTcU Ze90MoqLOUo9NVUZWLuTPLj9GvA+Rtg0xoygk8JyqjN9MwgbEiEvIIMsXQWXvXEEtcAs Ll3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=6ydHhXASeqXahTkAd//FnSPFtSMdImHAirTmzKWhapU=; b=oxrFPv2La7yu36H3eYoTnagxNenTSOcc6rgqXI6fo7XbmAJUJ034IM19aI+UfLXefI E0hhmQsjUMObMedGBWfUvVnnYYRuH8TeQj094CT2TvYY5O61NxH03ZEaTm9W7wDBtD8u raExo2C0YuYfo1J9MIpY+P+trUcH8qbLNVUWOGE68oUDmnQbUQjJLLEZLWD/eP4wbvoK DCcNFFLNtPOBgABdRGPr885yg+qkvepo2Sd07G2qSkc6UNm0noYvD3jKIpA8xb3e1LaR jPMZ6zWq29nq/bJ2I4xC0SLmqvQlGNeUBzx2RyDSHKCfncPLGNJ2sRcEdVMnaqnIxbAp +U6A== X-Gm-Message-State: AOAM531bUSKqh2kXk0b12HSzX3Kd/RdvvWxWMVKIBBdsKod0gh7AClEI 28Fyqi6I5BZG4RaZVMV6wg0AmQ== X-Received: by 2002:ac2:43c6:0:b0:472:1246:85ac with SMTP id u6-20020ac243c6000000b00472124685acmr9198323lfl.173.1652607669152; Sun, 15 May 2022 02:41:09 -0700 (PDT) Received: from [192.168.0.17] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id r14-20020ac25a4e000000b0047255d211c2sm962070lfn.241.2022.05.15.02.41.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 15 May 2022 02:41:08 -0700 (PDT) Message-ID: <68969550-e18b-3c27-d449-1478b314e129@linaro.org> Date: Sun, 15 May 2022 11:41:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCHv2 2/6] thermal: exynos: Reorder the gpu clock initialization for exynos5420 SoC Content-Language: en-US To: Anand Moon , Bartlomiej Zolnierkiewicz , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Alim Akhtar , linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220515064126.1424-1-linux.amoon@gmail.com> <20220515064126.1424-3-linux.amoon@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20220515064126.1424-3-linux.amoon@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 On 15/05/2022 08:41, Anand Moon wrote: > Reorder the tmu_gpu clock initialization for exynos5422 SoC. Why? > > Cc: Bartlomiej Zolnierkiewicz > Signed-off-by: Anand Moon > --- > v1: split the changes and improve the commit messages > --- > drivers/thermal/samsung/exynos_tmu.c | 43 ++++++++++++++-------------- > 1 file changed, 21 insertions(+), 22 deletions(-) > > diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c > index 75b3afadb5be..1ef90dc52c08 100644 > --- a/drivers/thermal/samsung/exynos_tmu.c > +++ b/drivers/thermal/samsung/exynos_tmu.c > @@ -1044,42 +1044,41 @@ static int exynos_tmu_probe(struct platform_device *pdev) > dev_err(&pdev->dev, "Failed to get clock\n"); > ret = PTR_ERR(data->clk); > goto err_sensor; > - } > - > - data->clk_sec = devm_clk_get(&pdev->dev, "tmu_triminfo_apbif"); > - if (IS_ERR(data->clk_sec)) { > - if (data->soc == SOC_ARCH_EXYNOS5420_TRIMINFO) { > - dev_err(&pdev->dev, "Failed to get triminfo clock\n"); > - ret = PTR_ERR(data->clk_sec); > - goto err_sensor; > - } > } else { > - ret = clk_prepare_enable(data->clk_sec); > + ret = clk_prepare_enable(data->clk); This looks a bit odd. The clock was before taken unconditionally, not within "else" branch... Best regards, Krzysztof