Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp228850iob; Wed, 18 May 2022 00:29:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwboT+SQrCULqW52l9Tr2aMpm/6fGj0XO/OVE9YCiMza4oo4zmmlQF+oGRhaN5BYB39sfy6 X-Received: by 2002:a17:902:f70a:b0:153:88c7:774 with SMTP id h10-20020a170902f70a00b0015388c70774mr26186935plo.166.1652858975765; Wed, 18 May 2022 00:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652858975; cv=none; d=google.com; s=arc-20160816; b=IfFT46YAO6aVET0HVPL24ynj7y+rBXScoXI7ic3ZnJPiz1/DYB7SUl9wLJtoABTloP 2aun+hTiVV2SgLhfgiajsa4eyl07t2SXkfBQbcxDXZ0bEJug+YFFe6GgBmAOdrAEyI7Z FM8tFu9SW62jIuZDbyQm1xEY1WPG1aH1RvQECDSnMrEfSEQLmSCrEpShI4pvlF6QLF6D 7270N7rPxWL4ANLMe2bt4WFz9a134BiDqyLAziL7CYVIFSZO78e86DevDqXs0JeZP5LY 0qQDHB9DJhFWjWqf/ijXO+Zw6Kfd0UtdrVm/DfZ5EmU4cIgTts0K0JnqfqMSKgfKfcQS WQ/g== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=G8aT1X87JNBdCI8skihL4Aci/WonpChvYF5exTqGUGQ=; b=gKavTlRPy8n7Zdphy5DE9vg+W43fT2vIl/e1hO8ZnQiWOufHddVtZHCglaB3spuzZU Qa88LmuFApNru7IOM68mzb+XwiXOrGqnF9ZCCa3niR5BBy0VvOMblHn0RIotOZ3Hudss 0Co9cJeYEqovMJiQLv2sLaCAsMIVxDgmDyYwYSk6U1zknYtDSl65xirvjksxX75el++V R5do2ZgtvYdlet03OhOv5ZqHG5jS2HZvnA1sDqqNyndgyTQZynjvsXwBgleV3RqpTmxF lyuw1qbawTP/ZyU/ljZWpppxLLdv/u9A3EaQdqpmuem9coUEeNcyIm80TKMGrtZY2vVF eR9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jkmeGMT7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x135-20020a63318d000000b00382274f6ae9si1576925pgx.589.2022.05.18.00.29.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 00:29:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jkmeGMT7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9E05F6B660; Wed, 18 May 2022 00:28:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232127AbiERH2Y (ORCPT + 99 others); Wed, 18 May 2022 03:28:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232115AbiERH2W (ORCPT ); Wed, 18 May 2022 03:28:22 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 823D56A027 for ; Wed, 18 May 2022 00:28:20 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id g16so1481245lja.3 for ; Wed, 18 May 2022 00:28:20 -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 :cc:references:from:in-reply-to:content-transfer-encoding; bh=G8aT1X87JNBdCI8skihL4Aci/WonpChvYF5exTqGUGQ=; b=jkmeGMT7U6r3ipXxlaZNQziLbo1jfUcG+l8wzWGpMtwVkbEsSh+Nv0S8o3o3Xx6uex 1u+X36202XBACe4QDg4YsC2xPZB/cSlRPOwnTfKonKkfZuHuRrHIGWA+CE0qvVp9n+BG xNwOlrA3kMuPW/BCw62OZeoye0svLMaWUsOZFJIK2HTRxf1sJ4qjH+Yfz7WjkzxbroI+ YJ4z+XelEGgBlQ8o1F3RGuxFsjfXgiAndFVM383dBD0EsheUvSAku6sbueRRrDeyZMTb STdFI3EHz0Wnd8K+jVqUChm0AGaS5X5YPxJi+QFnjBQJ8+wBQaWgSAmJDdOcHUqP+Xla h78Q== 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:cc:references:from:in-reply-to :content-transfer-encoding; bh=G8aT1X87JNBdCI8skihL4Aci/WonpChvYF5exTqGUGQ=; b=worTKwZOh7rDOi66ofyYkxf/uV4vHAGczUJSKd0w1EoRweBkndgNQWWaZo/S5gsL4R Mzo2uI9ZeQMCZfpWuKIIHS0yqShADcBA1RC27HwrLND/74ugYP8z9vxJ2SGjCTj/WHkh UpINvwb9f4cdvLEOHf3i38PvDwN2Wk9qdXa028SyZWJopFXnbEa0QK2E/qYlwm56RsRS VDKM5Q/JPyh23LbNres0vzzH4dv6Wd8t3SM46lryWRMkPSbT1KkqEvMowLUUda23b6v0 zoNJa6IT0kcEWmzvwvtMXYCj6hbn5rID0BjievGo06JBnyT2VoVeNn2owV8JOmOOCQ2H ecVg== X-Gm-Message-State: AOAM5321SpQu9BiSoRnYBYy61KoYh58ddLC1JQIoT73UQ2wi1qRbzwu7 dTiALueeWVrTB7eipD/GieJ2KQ== X-Received: by 2002:a2e:b8cc:0:b0:24f:501b:af80 with SMTP id s12-20020a2eb8cc000000b0024f501baf80mr16351009ljp.328.1652858898881; Wed, 18 May 2022 00:28:18 -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 z15-20020ac2418f000000b0047255d211c0sm119884lfh.239.2022.05.18.00.28.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 May 2022 00:28:18 -0700 (PDT) Message-ID: Date: Wed, 18 May 2022 09:28:17 +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 , Krzysztof Kozlowski Cc: Bartlomiej Zolnierkiewicz , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Alim Akhtar , Linux PM list , linux-samsung-soc@vger.kernel.org, linux-arm-kernel , Linux Kernel References: <20220515064126.1424-1-linux.amoon@gmail.com> <20220515064126.1424-3-linux.amoon@gmail.com> <68969550-e18b-3c27-d449-1478b314e129@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 On 17/05/2022 20:43, Anand Moon wrote: > Hi Krzysztof, > > On Sun, 15 May 2022 at 15:11, Krzysztof Kozlowski > wrote: >> >> On 15/05/2022 08:41, Anand Moon wrote: >>> Reorder the tmu_gpu clock initialization for exynos5422 SoC. >> >> Why? > It just code reorder I know what it is. I asked why. The answer in English to question "Why" is starting with "Because". You repeated again the argument what are you doing to my question "Why are you doing it". It was the same before, many, many times. It's a waste of reviewers time, because you receive a review and you do not implement the feedback. >> >>> >>> 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... > > The whole *clk_sec* ie tmu_triminfo_apbif clock enable is being moved > down to the switch case. > tmu_triminfo_apbif clock is not used by Exynos4412 and Exynos5433 and > Exynos7 SoC. This is not the answer. Why are you preparing data->clk within else{} branch? Best regards, Krzysztof