Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15239083rwd; Sun, 25 Jun 2023 13:12:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4fRXesi3vf5+OBqeRzsB1WCjWJim/JZGIUcGq12Jtb++PsBNCduXBQC0mHG3rBUwT8g23U X-Received: by 2002:adf:ed0d:0:b0:30d:981d:a03f with SMTP id a13-20020adfed0d000000b0030d981da03fmr20912525wro.6.1687723939100; Sun, 25 Jun 2023 13:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687723939; cv=none; d=google.com; s=arc-20160816; b=PIKF3Y5NI+rE1a7LRUD3aNAevc9U59TnJ9YisD06X66YGHlIeX0XAWBTYN1nqaBp6C I6/Ocx/rcZOMLXu2N9ouAscELglJIJVlWrC/s7/JjTQsJAkO5yuC6dorl+s3TnOifoxm 0NM+FuIAHCy8cPGaWELd/EcXE89q+RoJBxrEUUzEEQPpVzk5SEkvV7z1Yc+CzktZ7pJp 4ReZR/5Y1BHcmPvJOr81IhyV/asJAbsobVSweEEcI3oP2uwal5deOaOig7eigWDHu8+I sFibvRYyyra9dpSlJbvBhybL5xeCbuMqer4J7VPDaThOiSqGNpvEakf2v5IjSOqEJk9f lfjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=bzM4UEjJBm1J2Ns2ly5U007Bqjn/F/Tm4fIM8QL7qYU=; fh=yl4IL4lsV2hnVI+n4ETVz+CTzmzATIHlCoDziPb25Y8=; b=V8G6HFojU+QeT+bACbkQzc5V+jFFwVgLopKZLDfNl6ywQAOicQ41PAQlGsDgYX+k57 knFpjiUjF9tgkZZShVfeEUhYyAZ09Ih6HGzxzJ/wb3qE6Qs1ydf6cwwVIg3NHSyK/C4w Ad15fetAMlKXd+MWVtO5vTgkB65D9D+PACKbZGjiM+s5rfJkoqEtvONEo9Emzj6bZamr I0dLRLw9gBSCDGSImZ9c8cAh4kAcyJQuCsUdRsmsXOC31pLsY8XQGvw1GKJlN2FbVnVQ pmmdSYJqi9Hg3SNwa/kqBJJ84bTk5sUT3Tlv2kUgnQ6haVV69wFZuJOcCihfj8EgK1Xg uWoA== 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 h5-20020aa7de05000000b0051d989062ccsi436556edv.491.2023.06.25.13.11.52; Sun, 25 Jun 2023 13:12:19 -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 S229587AbjFYToc (ORCPT + 99 others); Sun, 25 Jun 2023 15:44:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjFYToa (ORCPT ); Sun, 25 Jun 2023 15:44:30 -0400 Received: from relay01.th.seeweb.it (relay01.th.seeweb.it [IPv6:2001:4b7a:2000:18::162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B303197 for ; Sun, 25 Jun 2023 12:44:25 -0700 (PDT) Received: from SoMainline.org (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 0ACB71FA76; Sun, 25 Jun 2023 21:44:22 +0200 (CEST) Date: Sun, 25 Jun 2023 21:44:21 +0200 From: Marijn Suijten To: Krzysztof Kozlowski Cc: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Krishna Manikandan , ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Lux Aliaga Subject: Re: [PATCH 02/15] dt-bindings: clock: qcom,dispcc-sm6125: Remove unused GCC_DISP_AHB_CLK Message-ID: References: <20230624-sm6125-dpu-v1-0-1d5a638cebf2@somainline.org> <20230624-sm6125-dpu-v1-2-1d5a638cebf2@somainline.org> <1d782241-f0ef-848b-9b42-a8a6234bbfae@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1d782241-f0ef-848b-9b42-a8a6234bbfae@linaro.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,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 2023-06-24 11:08:30, Krzysztof Kozlowski wrote: > On 24/06/2023 02:41, Marijn Suijten wrote: > > The downsteam driver for dispcc only ever gets and puts this clock > > without ever using it in the clocktree; this unnecessary workaround was > > never ported to mainline, hence the driver doesn't consume this clock > > and shouldn't be required by the bindings. > > > > Fixes: 8397c9c0c26b ("dt-bindings: clock: add QCOM SM6125 display clock bindings") > > Signed-off-by: Marijn Suijten > > --- > > In perfect would we would like to know whether hardware needs this clock > enabled/controlled, not whether some driver needs it. I understand > though that with lack of proper docs we rely on drivers, so: It might only use this to figure out if those clocks have already probed or are available. The logic goes as follows: clk = devm_clk_get(&pdev->dev, "cfg_ahb_clk"); if (IS_ERR(clk)) { if (PTR_ERR(clk) != -EPROBE_DEFER) dev_err(&pdev->dev, "Unable to get ahb clock handle\n"); return PTR_ERR(clk); } devm_clk_put(&pdev->dev, clk); Nothing else uses/parents cfg_ahb_clk. Maybe with clk_ignore_unused or similar, it gets turned on but never off again? Indeed, a lack of documentation and comment from the manufacturer makes it impossible to know, and ignoring it (as the driver already does) works just fine. > Reviewed-by: Krzysztof Kozlowski Thanks! - Marijn > > Best regards, > Krzysztof >