Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1685397rdb; Thu, 25 Jan 2024 03:12:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IEh2wz+K2KbLhucHnNF6Y8BaZJcSRkFyKI/g9NinhakuB8US3Vn3n/yKkTNyULzR5ffrEvm X-Received: by 2002:a92:c005:0:b0:361:9168:78d9 with SMTP id q5-20020a92c005000000b00361916878d9mr924049ild.23.1706181132027; Thu, 25 Jan 2024 03:12:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706181132; cv=pass; d=google.com; s=arc-20160816; b=WX4Xl55Vd+d0jS16vDoG/oIsizQ33HmqXFkbKJVbO2AFio/7XPKI0vlDHJXEn+yTaU A7zo5Hby8NmyWspDow5DhgvMjFd47OXvPN0T7ocyZBDMvvzRm958OU03GZR3/r8+DLoH RANSosRDCvDPczIaPxGI+5BEYLKeZYUakamToQqUEuLwauWkDcZBRXdM+tx0UVUUoY2I 7wxc9eq/XmUrdjdQPLHlQ6NSUc5F6wSmfbBnjqdS+18wwx4ELbXLDZXjOdsPPWt62El3 SsaobgeuY/cTcTW70HB/abvhqzbkLPzP1Fy+NQhrWJOt9sU8/N7wTscoRpftsMjBmJvQ WVxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=P57fZWY1sQkih8XnkVavIoQwU+LGJXJMtJjwWFrbJdM=; fh=ICUNwXuK/TKQxL0KGU6rCZAdrdXjcZQuJ9N4gLCR/M8=; b=gTxKec2scvxwzunPMPJ9GvPPN9x2E72dH9PF9NV8B0IpeVyxTKt6C7o99nFvOtG/rv 6m/hD0Su0taIIb+8TY/MQgtbSNh7iWBOhhK5dp8YB5H+XNkADh1n0+aW0ti5K+yAZ++b HyTvWaAh4gBMSgZO9D/bGy+Lxqtb/q5aQczasVCqfsTCvRwUz4A/U4jHTxLmAr5/PPfX kAnAaOjFwJtZjxzEnaPsAQ588hnvw7h1wSVWn8+neBvzr//6ALcDuCqYpDRZFKCrKsbe fVbeESTHMd92ZjLk5Tw9hvwb348n3DUG8rubl1ayKadxU1xxG5eKTz/GQBOSMUgIMWzG W9KQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NbPKmRN4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-38457-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38457-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r6-20020a63ce46000000b005be00224982si13398181pgi.381.2024.01.25.03.12.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 03:12:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38457-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NbPKmRN4; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-38457-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38457-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3D5E329A10C for ; Thu, 25 Jan 2024 11:06:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 536EA48791; Thu, 25 Jan 2024 10:47:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NbPKmRN4" Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD4FC45C0D for ; Thu, 25 Jan 2024 10:47:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706179628; cv=none; b=mBQyaceOtjbTk1iCt/Y1+DcOJMHEjAfLsUFNZlkIj5eaETsVaxKS4e5up0mQ9tWzpKX0Z9cCpIuICVwAusQm/7b+5+pYpnYqYxgKrAuplQ4g7ZSR6DoqAbx5UZBbjgEFx5CDH5oCSiSLpyy6oWkS97N839h3AE+u7LK0u4NdyJo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706179628; c=relaxed/simple; bh=3LsMPKKHFyqK92xTj0v6geKf3RLh1/ofpb3gzz0Lnt4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kGUemvlaZnO+JwpOA/DHrq0lCkFJ0H/BsVqVxz+mKTdC0j1K7LvnNg0n3swP6U0Uok/xYN5KgtD3JnBBfT+k6+XuDRIn5Fi3uALDHgzhbJ0xEYDnud/9PUoKzmACUyQYAXmtIP/7Tt8rja9V1aRpAQWX0eUH/pqw7USyxxThpbw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=NbPKmRN4; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-559f92bf7b6so1245013a12.0 for ; Thu, 25 Jan 2024 02:47:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706179625; x=1706784425; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=P57fZWY1sQkih8XnkVavIoQwU+LGJXJMtJjwWFrbJdM=; b=NbPKmRN4pXMmMJPS+GFg5gC4Z3rjVnvF9PHF/kNUvV3pIZjmyhHvTe6Vc639+O2IA6 V0Fp3AwGfmxlHa4eSH4B+58W1cc+2vY3bb0Vvr4PQp2FVLuJnJvcpp4njZxhFSajRiZf VendMBUsl7Zf+Pp4pvm1PcLQbJXxCLUGdHpiQzCTR2sjia1r/kHFJm9LGjf/f6X1mWdB GoUc2T5gjZuCJ73LYg44HZNdbsPdmaZC4N2dwkqcf1wkDF45p8IiEzqqQPO7GVS0iR32 wfKTT7pfF17wgkLRnZHIiUuajRuNmdWjcAzI1ma0+uUqSiw96ixmt2PZjLte+sGw6dL/ XSWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706179625; x=1706784425; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=P57fZWY1sQkih8XnkVavIoQwU+LGJXJMtJjwWFrbJdM=; b=kQCO0Z99dHSm20Z9EGW+JorftqTd9ugcWgoyOK0eD6g2y5l+WC+5Sd3t5UhCDqYL3P Ab2W5UrhdQaoE681uDQ257wkEw+4DyyUDIWkBIATiIxaSlhGcFe2ojER+mSpvEdPis0n TK7+kRj9pSQRtjLxm89Ot848O+vNGvO8lOLc1xlc8jqeJX1Yzo8UYMf61dml1xYR3COM oWOqfoT7UK58df6Q895TNG/okcVG09Q9f46OmZzaBvI18PrCp8VOdg8/iAAlZs7fNsSN oAlKDtIjGjd7esKELNLA7D5JgJq3559/yTX3r4aBMEUr1CAuesRrsi1Oj+DCA7q33mXV z6LQ== X-Gm-Message-State: AOJu0YxkHiBAGT7QQ7dI78/MaC5Xq+xtk/a3Z1ShiO1SRJ1ps8rk0t8L cbLk88liFHInGnonX8r0dvHvywvwKUqkQ84l7fPwcykPLed0n8hZSulZgPHf7wI= X-Received: by 2002:a50:8e4f:0:b0:55c:c40a:c180 with SMTP id 15-20020a508e4f000000b0055cc40ac180mr846408edx.26.1706179624974; Thu, 25 Jan 2024 02:47:04 -0800 (PST) Received: from [172.30.205.155] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id ez15-20020a056402450f00b0055a82fe01cdsm6389475edb.67.2024.01.25.02.47.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Jan 2024 02:47:04 -0800 (PST) Message-ID: <803e9ddf-44eb-4aa2-9a15-833109d2248b@linaro.org> Date: Thu, 25 Jan 2024 11:47:00 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/5] clk: qcom: sm8[56]50: Drop the Disp AHB clock from Display Clock Controller To: Abel Vesa Cc: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240125-dispcc-sm8550-sm8650-drop-disp-ahb-clk-v1-0-0f8d96156156@linaro.org> <99817149-4a2e-49fc-aedc-fe298964a019@linaro.org> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/25/24 11:44, Abel Vesa wrote: > On 24-01-25 10:49:23, Konrad Dybcio wrote: >> >> >> On 1/25/24 10:27, Abel Vesa wrote: >>> The Disp AHB clock is provided by the GCC but never registered. It is >>> instead enabled on probe as it is expected to be always-on. So it should >>> be dropped from Disp CC entirely. >>> >>> Signed-off-by: Abel Vesa >>> --- >> >> Abel, you just raised some concerns over my series doing this and now >> you're doing the same, plus breaking backwards compatibility for no >> good reason, instead of solving the problem. > > Sorry but, during the off-list discussion, you convinced me that it is OK to drop > their registration as long as we enable them on probe. > > I've not seen the following reply in time before sending current series: > https://lore.kernel.org/all/6aa58497-9727-4601-b6eb-264c478997c3@linaro.org/ > > Since this is blocking the patches for dispcc and dts for X1E80100, I > thought I'd just drop the clock as required from DT point of view. > But yeah, you're right, it breaks bindings ABI and that's wrong. > >> >> The correct solution here is to register the AHB clock with GCC and >> pm_clk_add() it from dispcc's .probe (and enable runtime PM on dispcc >> if it's already not the case). Then the AHB clock will be gated when >> no display hardware (= no dispcc consumer) is in use. > > I agree. > >> >> 8[56]50 are in a good position for this, as they already have the >> required DTS reference. Unfortunately, I still haven't fully dug >> into this for platforms without one, but that's on me. > > Since I need to do this for the X1E80100, I'll probably do it for the > other two as well. Thanks! > > Sorry for the misunderstanding. The story is confusing as per usual, perhaps I could have explained it better in the first place.. Konrad