Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp408489rdb; Mon, 29 Jan 2024 06:09:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRpbhwhA/+iIMXmuTORd+Dn4W4sX4/eD+YcUNbxqXZXX2ihYYT7q+CM4jN5cqat82apeYM X-Received: by 2002:a17:906:228b:b0:a35:e28d:ddb3 with SMTP id p11-20020a170906228b00b00a35e28dddb3mr1166893eja.52.1706537351284; Mon, 29 Jan 2024 06:09:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706537351; cv=pass; d=google.com; s=arc-20160816; b=KQNq4K2X8O+POVZvVS8pCi5FCXQpzGzzTLgLR8OZesJHSqsnTZymoutq5U/IeJYg20 X4LQRhN81HLlIG3trGXR9tNgWhFYJbkwIJdcq4yLmSITsY2BT/wbnEmLUECZRYOw1t5W EOmfGdE13ewRismvin15qBlNiwc2v4OvCnSFXCzi9d3ITfkDaIbDNelr+pN9CKvigEsH i16vtGO8TH9yuvPnDq3xkhihPyYQNVmoUf9mfqRZYTt3GWhWyiMLc40/nTBD72VpvtYh jwDG6dFjNhMKoM89sO4bacsiBUtTVmqmm2ZvSgvaYw8Us6PBgZV923Yx86/e6bysgVO5 uXTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=EVgC9ndqR/MuNvywM9xT1vFd5Ob7Ho0ot1L+E3kxXno=; fh=NfuR0Xlhbgqp3mMWbK6qJg4aDstJN6tiVrUZXcyQh1Y=; b=nkcqbQ89a/lkzUg5zcXCX0sCLnIn3jlAbpfi1SSo9YdR7KNJPBa+obWyazV7eaVPNW rdkSQn6rzbNObrIgJoNoQ68xamfRv1dtM5SlOIY3wA1J4SMQNSpFiQeSsTaFGXKcU9qC qiUtzVpgQaWZ9nTTsXnC49GqVM9YjkPUuBbeX9XfUNKjS5t2f2ooqRLl/zJMnx4TbYSS DPwMEvkM9pmxJikPB3uNTToYPqy++tvI5oF5oBtgXSpMFkrZY3vY3JAkiYLT9Qqmj6xh cPqC/Qor3BemxVx8VyPSixPf6F6+1Ko1frA61BvbHF0a/hOkU9pBUtA71kGfuTLX4daF 1EzQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=owA51J+8; 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-42860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42860-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lh9-20020a170906f8c900b00a316274421bsi3325838ejb.649.2024.01.29.06.09.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 06:09:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=owA51J+8; 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-42860-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42860-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D490B1F23FA3 for ; Mon, 29 Jan 2024 14:09:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93CCF65BBC; Mon, 29 Jan 2024 14:09:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="owA51J+8" Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 8720165BA6 for ; Mon, 29 Jan 2024 14:08:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706537339; cv=none; b=UsJwQE4RMlIM2kzmIDm89EeAmQiyNmawkuLawNzdOX8Mq/SbDyIHNMyTJTevDvTpNphSg9VCTL8SI6nC4YYjJbtvfM5lgknr+MZw/wjFAE+Yaefo3Wva2xTbVg1THD2C/YuMBI5hZtBGaT5j7AX4ArhNnuYyCzT2imuptZpWBXo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706537339; c=relaxed/simple; bh=HtYjkNfO0ttjXsrkH7dPynQ41tr74rYvKIjBqd2n8JY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cq7PJVUS799lbJONU0CjNDKNHYZmf4WPr4hn3aEcl+XiSeYOLiWE6sTmxO4mgkbqf8PuYgk8HBbHDJxJwwFOdY7xLm7/53qPHw/03Oe6+EGIbH5oKUIypNlBrzb4zKDGWPk+NH8Cq9YOVBmBqphzfZt8gLqshwdwyKy79ecgqiI= 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=owA51J+8; arc=none smtp.client-ip=209.85.218.47 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-ej1-f47.google.com with SMTP id a640c23a62f3a-a35e9161b8cso74554066b.3 for ; Mon, 29 Jan 2024 06:08:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706537336; x=1707142136; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=EVgC9ndqR/MuNvywM9xT1vFd5Ob7Ho0ot1L+E3kxXno=; b=owA51J+8tR8TFxLkY9+hx9AB7DUIgBxa9b5iSc3kJraQs9z/+mD68fsPHsq/hHsyBZ qB/7MI52zSnJSJJZh+I540RdubV536vB4oopsJ0RmCUPaPTn1/OMwImTvpu1JMS0YoPk MmmFvskgg9MPG66y8ng0EvsygefegYqO5Sor7fwa1JiMchO99xAYGpqnzZ68/NDi0nGV Nya5hDiQHzDSDJeoo1DLC7J3Y/wYaxZYswXBRuvOlAC5j7cO/zv3Mloi4X+qDgYMKqCi sKv5pyp8ds+nP2ujcXMWtug+XiECMVEHAKm8LF6aV8Et6duhQEtoPoV1zm211WkKA5tj pt3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706537336; x=1707142136; h=content-transfer-encoding:in-reply-to:autocrypt: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=EVgC9ndqR/MuNvywM9xT1vFd5Ob7Ho0ot1L+E3kxXno=; b=XQtY7WgZ2jk84P12Nio8tp4ktL5NYekF/YF0meVAfqsirRxCwWkJqoUAh26tETQBgZ Hm8UINvVUeFxRPPpnSQuW9col0f8T5DnPw06q19TcQ4Ftj12VpZ353OBnj8nuQf5iQYB z9IoKbyqlnjG1vxHFIS7GMhMH7GbZNOs/1IezrcDP3oP30ERYVtmI5EMV1Ihf5HFSHIB bvkJNeekc3h/lwmmL3y5c4AlijUae4dRh1aOqyAD95EKd0hzSwsFQBBtr0V9bhz5JbvT lDwq2qxNJ8+nW09phstiqQmA0i1zJx+9AYrFJ+2nrnP1N461PijRAhDsIbzKFCmFukws aL/A== X-Gm-Message-State: AOJu0YzWG+ks1iFjxaRZYBqkX6eOfk8KmxSkYmK6lKVyfpUo2ttIAKcz 7T+BtUkzI26cGsU6YVCSCCgVgBBS2FY/6L5wGAcS9VycZTaOyzStTXYwU7xGaGo= X-Received: by 2002:a17:906:a013:b0:a34:96e9:f46c with SMTP id p19-20020a170906a01300b00a3496e9f46cmr4382352ejy.31.1706537335396; Mon, 29 Jan 2024 06:08:55 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id i21-20020a170906a29500b00a35d7b6cb3fsm677384ejz.95.2024.01.29.06.08.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Jan 2024 06:08:54 -0800 (PST) Message-ID: Date: Mon, 29 Jan 2024 15:08:53 +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 9/9] clk: samsung: gs101: don't CLK_IGNORE_UNUSED peric1_sysreg clock To: =?UTF-8?Q?Andr=C3=A9_Draszik?= , peter.griffin@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, tudor.ambarus@linaro.org, willmcvicker@google.com, semen.protsenko@linaro.org, alim.akhtar@samsung.com, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org References: <20240127001926.495769-1-andre.draszik@linaro.org> <20240127001926.495769-10-andre.draszik@linaro.org> <74b63fd9-bf7a-4a88-bfa9-a975a4f12bca@linaro.org> <7d42f80acf7c8bd3882f5ac253a761c71de2034c.camel@linaro.org> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeB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ZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <7d42f80acf7c8bd3882f5ac253a761c71de2034c.camel@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 29/01/2024 14:47, André Draszik wrote: > Hi Krzysztof, > > On Mon, 2024-01-29 at 12:03 +0100, Krzysztof Kozlowski wrote: >> On 27/01/2024 01:19, André Draszik wrote: >>> Now that we have hooked it up in the DTS, we can drop the >> >> Your driver patch cannot depend on DTS. Not for a new platform. I am >> repeating this all the time last days... >> >>> CLK_IGNORE_UNUSED from here. >>> >>> Signed-off-by: André Draszik >>> --- >>>  drivers/clk/samsung/clk-gs101.c | 2 +- >>>  1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/clk/samsung/clk-gs101.c b/drivers/clk/samsung/clk-gs101.c >>> index 7f6c3b52d9ff..d55ed64d0e29 100644 >>> --- a/drivers/clk/samsung/clk-gs101.c >>> +++ b/drivers/clk/samsung/clk-gs101.c >>> @@ -3393,7 +3393,7 @@ static const struct samsung_gate_clock peric1_gate_clks[] __initconst = { >>>   GATE(CLK_GOUT_PERIC1_SYSREG_PERIC1_PCLK, >>>        "gout_peric1_sysreg_peric1_pclk", "mout_peric1_bus_user", >>>        CLK_CON_GAT_GOUT_BLK_PERIC1_UID_SYSREG_PERIC1_IPCLKPORT_PCLK, >>> -      21, CLK_IGNORE_UNUSED, 0), >> >> I don't understand. You just added this clock in this patchset. This >> means that your patch #3 is incorrect. > > In patch #3 I'm hooking up all the clocks to Linux. If I don't CLK_IGNORE_UNUSED > for the 'sysreg' pclk in patch #3, then it'll hang on loading drivers that > require sysreg access (because Linux disabled the clock). Then add clk_ignore_unused to cmdline. That's anyway recommended for development platforms without full clock and pd description (pd_ignore_unused). Not mentioning that we might default to clk_ignore_unused at some point soon. > > I can not change patch #8 to come between 2 and 3 either, because at that stage > neither the clock nor the DT node reference &cmu_peric1 actually exist, and the > clock and can't be claimed by sysreg. At the point of me applying this patch, there will be no DTS node either. This ordering fixes nothing. > > Since we can not mix DT and driver changes in the same commit, I can not merge > patches #3 and #4 and #8 either. > > I had to do it this way so that the platform always boots for every commit to keep > things bisectable. But it is not bisectable - you did not fix anything. You can try by yourself: # git checkout drivers # git am patch #1, #2, #3 and #9 # git checkout dt # git am patch #4, #5, #6, #7, #8 and now try to bisect it. You will have the same problems you try to avoid. So what is solved by this ordering? Nothing. > > Alternatively, I could merge patches #4 and #8 (but that seems wrong to me), or > drop patches #7, #8 and #9 from this series and apply it later in the -rc phase? Probably the mistake was done in the way how you upstream things: adding sysreg syscon without its clocks. Additionally: 1. Disabling unused clocks is current OS policy, so why the policy should affect DTS and driver ordering? 2. This is platform did not receive a release kernel, so glitches are okay. For this case #9 must be squashed with #3. #4 with #9. > > > Is there a better way that you have in mind that we're missing, that keeps things > atomic and bootable/bisectable? Best regards, Krzysztof