Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp544994rdb; Mon, 29 Jan 2024 09:57:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpgGYfxWIAW+PWqziB4Ikg1Y6wBG37Mwe7H71HCapUZtBg/8GXD6Rlk71ert0ui5TiHbuQ X-Received: by 2002:aa7:daca:0:b0:55c:6935:1b1c with SMTP id x10-20020aa7daca000000b0055c69351b1cmr4269348eds.36.1706551048334; Mon, 29 Jan 2024 09:57:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706551048; cv=pass; d=google.com; s=arc-20160816; b=wWHJL6Nh8Kn0Bo9C0BpG9KCR7+DeKHGnoeZys5hgN3s7y1bCNcYADdo+IUK88BWo8f DzCPt6eCS2kA0+qn5fLtfwxpxodQfAFMfF3+N7Nvac+OS9xNDSL6mthcN3JfkLPpwLPC SG1KLuSzPDO7zOkuGnDKhmVVIMbct+pzF2M9mhzNuR/y52LLdaFm9SIdXbE+0WgmJbf4 qoSPW2nBFIds2DNDgmSjbCjn+JNKM78o8x/jp3ZWWyRFNfbd5NCFw0tSymjrFiokEK83 EfVhhAPxX1QiO/1073LdkygrIZyqvytXuB1LJfLFnRE83amn0Zmzmjs0gACKc4bspWG/ 9EPg== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=vV6AH3YtSu3SS+W/E8VEkUhNHcf73by0FdjpTGcjHC0=; fh=n3qjPGpVRYHN5/DAZm236sQwc4nQvCUiU7W5n4FLrak=; b=jgKYbdfnXyI1prBtmV8G8u41vHLe9SWM8mKfSJwiNtNVaAkAQg9Gf+rGEVML+e0clY 0rtQuzxwWMl0zxa+q3bVEA+olj3j7hPX8ww32ZR2jm+oaMwUuozcmsw9NcmIkNMS4iKW rIbNAAp0wsojuef6//AXssvhIgQHjBAdDpCzbUaEmSYk4DGlb/dSDszFV+WM+gvn7B0b NqZbPAmA955uYjayFT/0cFXmqnteENmlSst6HjVKixItKKVSRfIJ0lvaNYuca1DN8eMu Zc85XSWuI6bNXvbDBoqsak44oXwEfz92ZF/K0bGkP230e5jfPNE7TsuwFISPiqTMhhRA N0jg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uDgcUv75; 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-43227-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43227-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. [147.75.80.249]) by mx.google.com with ESMTPS id r18-20020a50aad2000000b0055f14f3f683si649404edc.48.2024.01.29.09.57.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 09:57:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43227-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uDgcUv75; 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-43227-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43227-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 6ACA91F27665 for ; Mon, 29 Jan 2024 17:47:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA40776C99; Mon, 29 Jan 2024 17:46:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uDgcUv75" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 5068376C85 for ; Mon, 29 Jan 2024 17:46:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706550407; cv=none; b=icTuf1MXVl/qnxc2KYiuzsYn23c//0rUXuzw1l9R9246qI6/zh8weF05IDqqxmArRUwD3eRHH2vAaF0LMMsr/yYtGsexre30UjeUNMaLExHftGIdN+501ovpp6sc8kF0H+pkETo58c6mquPPg7yqBxP8fkZmdSz1yHv3cJGMcAw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706550407; c=relaxed/simple; bh=vV6AH3YtSu3SS+W/E8VEkUhNHcf73by0FdjpTGcjHC0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZEZqwX/3htQdT832TKGt5S4BHaeQNETaXZ6mdKSIl2k3eW/FynHeGQ9rzb91Y4NaxZiK/xYY70bkMx9ujlJfSJZ28Ov0bPh7+o2KmzsRZpw9GxuOrchuio07kGxeKPofTU0KvoUZUP/UQKtRfyhkHDXDFmlAZpuluZ7O58hXx34= 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=uDgcUv75; arc=none smtp.client-ip=209.85.218.50 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-f50.google.com with SMTP id a640c23a62f3a-a315f43ecc3so285435266b.0 for ; Mon, 29 Jan 2024 09:46:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706550403; x=1707155203; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vV6AH3YtSu3SS+W/E8VEkUhNHcf73by0FdjpTGcjHC0=; b=uDgcUv75M7IlthBEvGXeD4bYEoSDba0GC1J8cmYS15XY20I5r7duN3DNNWh5SAyYFn 2OyPwBd5oRnn3MURHsBxxF2tmWFOYRlp9C2WEiN6q/SRgQf/QjMMn1Yb12EohDRhj0rA 5ZVDeCCjxCm2Ok9flDPCl6HfeOLcG7G7KRXgidXZIg5NnXU63v4yUO/5ZdQGSIFIEuWq 5AetPQfv0qQxfUPa4AGKYEuiPAxGxK0fchL6E6r+CT3lUIpz/Fe01QlFUtN37x+UINMx V3kQctrg6hfebScD5ALSQ8XAKDpshiZ9LW/O/chiKaohcbTjz+7zCQHQQXBRRhBdqGRW gy8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706550403; x=1707155203; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vV6AH3YtSu3SS+W/E8VEkUhNHcf73by0FdjpTGcjHC0=; b=CjJ/NO9/sK0EVRJuzqRsDBGrhqEgw0wgNxX09GOva0vtE1nAnOnhX5zQD+WAk2BWqK d3yqJNdMVsIAjElt49DROB2wQ7KLQkA1Oi+LZXMDjEN9AHRH9pix57s7cAsQf9oSLfS9 ELqhBP10/GjjWe0KfvryGsAG+mMAHagnuAUzqRjY3ki8uIZkBbFzKAI9hCqOjR7Li7l4 dpgeQ59eTO85/9Ff93iSJyZ0coASNyI0jkq/j4hjeyd3BrUI1rkpoU1FbCxT7cmwNztK qsbtbbD4hMN4t95EiHnql0rtlQCZdfEQs50lKfLEpNvyvj5/YIUaFIZVsNR1Z63EvH3d gEhQ== X-Gm-Message-State: AOJu0YxFztJj0AJPweLgyQ3rq5vv24MjxHtJZEYYwQPJMHO5OFx/ulAM pw1wWK4XyNbwFvEcfXd+vyOoNwvzofduTNHF5gCaGfGT2mFOMY1KvkKjwvEU1GE= X-Received: by 2002:a17:906:33d2:b0:a2d:bc90:de6b with SMTP id w18-20020a17090633d200b00a2dbc90de6bmr4726997eja.30.1706550403711; Mon, 29 Jan 2024 09:46:43 -0800 (PST) Received: from [192.168.2.107] ([79.115.63.202]) by smtp.gmail.com with ESMTPSA id vo2-20020a170907a80200b00a352c0bb7basm3288323ejc.81.2024.01.29.09.46.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Jan 2024 09:46:43 -0800 (PST) Message-ID: <99b7501d-6780-4227-8558-488b1b9da758@linaro.org> Date: Mon, 29 Jan 2024 17:46:41 +0000 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 v2 1/3] clk: samsung: exynos850: Propagate SPI IPCLK rate change Content-Language: en-US To: Sam Protsenko , Krzysztof Kozlowski , Rob Herring , Conor Dooley Cc: Alim Akhtar , Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20240125013858.3986-1-semen.protsenko@linaro.org> <20240125013858.3986-2-semen.protsenko@linaro.org> From: Tudor Ambarus In-Reply-To: <20240125013858.3986-2-semen.protsenko@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, Sam, On 1/25/24 01:38, Sam Protsenko wrote: > Which should cover all possible applications of SPI bus. Of course, > setting SPI frequency to values as low as 500 kHz will also affect the > common bus dividers (dout_apm_bus or dout_peri_ip), which in turn > effectively lowers the rates for all leaf bus clocks derived from those > dividers, like HSI2C and I3C clocks. But at least it gives the board > designer a choice, whether to keep all clocks (SPI/HSI2C/I3C) at high > frequencies, or make all those clocks have lower frequencies. Not > propagating the rate change to those common dividers would limit this > choice to "only high frequencies are allowed for SPI/HSI2C/I3C" option, > making the common dividers useless. This decision follows the "Worse is > better" approach, relying on the users/engineers to know the system > internals when working with such low-level features, instead of trying > to account for all possible use-cases. Depending on clock frequencies in DT and on the order of probe, one may end up with SPI changing the frequency for I3C for example, there's no protection on that. The more conservative approach, to which I lean, is to propagate the clock just to the first divider, which is dedicated to the end note, thus you'll avoid such problems. I think this fine tuning that you allow is more suitable for downstream. Maybe this is more of a personal preference, I don't know. Curious what others think. The patch is looking fine though, and if the approach is considered acceptable: Reviewed-by: Tudor Ambarus