Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp225242lqg; Fri, 1 Mar 2024 03:29:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWAcDA/L/s8BWxDWK65ftEkG3ivzDHF2Miq8TLpgUHioGc6zrUAbsCR5OkQQFHiVkuSjA0KWK9zk7ZeN1mpInkO+0JUAUc4IO745qA2ew== X-Google-Smtp-Source: AGHT+IF1jA9Eglvc80JETT3q32vzDfUbWOcQXredRqOvhTABYYUHvYD45k03HW6KfI1sn7K9j8Uy X-Received: by 2002:a05:6a20:2d0e:b0:1a0:f7d0:e680 with SMTP id g14-20020a056a202d0e00b001a0f7d0e680mr6583677pzl.5.1709292543825; Fri, 01 Mar 2024 03:29:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709292543; cv=pass; d=google.com; s=arc-20160816; b=hJFhKevDJ6GnR/BsElA7Vv4IT6Rgl8w2xk89mMflPiSvxBqSFCi8IXJE4U25q2zjz4 JT7DeSVLXWt8GqnpSFeararmZhLV5vNQ4yiYr0qB8y8GthAWWMFVl62i5LkKs4X8JCvi 8wz6Uk+DXkv4LLpnRhCTaeK6EQJhA/iD65oBEhvvQyqDoR1kf7d8JZ2O+7JutL1gGzrD bBVyUYflj02O7PGHvZc8C6hNYj7b+ejXi/bnieXP8XnsjeIDFCBUg6ASXz0+5fbQYpGS 79Rr2JjE5Fjm7QNRrN5CRQm88jgdIgTs4MMAwRZHqzwkkPQ9kGHCxwbAQFIJkkZG5K1/ OVLQ== 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=FooY6PWiKNPrfwZqqVcqa07jZtGfRl4IYqI+n4V8Fng=; fh=8vY6nf2x84woMPb5NtsupUZkyfy6JIWwYpTJ0jT2XUM=; b=Kg/DMmKc0dxfl0R+mpzZLWHBYz1eljFdueCRmVp6ex1J+efNP5rvvcpiiOEpXslKfW j6xJ0hRAHyz+qUFZsCaSSmQQtm50+O7lF/E4kjaJ5jpe7QlbBDAZFME7auEDNRZ2JG/i yiS/xwpzcgKaxy+2795z9ay5bcoq2EhkDTkOqhHCJodrz/eNsUS8jEhmRzaLKPfgV7TP gIvF0wSS/YIGoYnETs0nMDAIqnJqAwxBgpjZsW2hIMwAP7KZ2FDQGMh5NLCOjXjBYlDE tqnWty5PyRYoHZ0d77vdIGPugYJEpJdtDwSrUZ8VBI8BeaxWGrgxSj2XXurXfU+RjAmF 0bcA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=py7od88W; 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-88341-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88341-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p6-20020a637f46000000b005dc47b71821si3335902pgn.572.2024.03.01.03.29.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 03:29:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88341-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=py7od88W; 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-88341-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88341-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3BA3EB2228A for ; Fri, 1 Mar 2024 11:29:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98AF26CDA7; Fri, 1 Mar 2024 11:28:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="py7od88W" Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 F10686BFA4 for ; Fri, 1 Mar 2024 11:28:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709292531; cv=none; b=ahlpnHYB1GyspIsl4lGdmGUV7vxsGG7smHUFSRgLOg5o/V03cmFZm7JTx5BMuMxC36cZS4TeftTjXqxuJQTOvc/i1gQB1x0sDCu310XH99cRE/+dL5MjQMLz3VqLsyCRdd5nZ5TFwii0BSRri2xrJA8lc6aekQ95PqIQo60sPQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709292531; c=relaxed/simple; bh=aYulztljP4NuyowweG9K2SwvWg+mDvCTutG7otENH8g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZQmknAy/WjCVox55As7c2/npOd5BPmwXbA4NNNGkulooUziRpdSqh7HLQwHAaaKbKfJGzKRPFQE+JUAkpdkebX1DaH+sIZsEpcvM11p9GEebCiFEKRLjrLYhRESBcGwfudDmm8MXVsvhc+aHD+445P/uwp4XY2TduVdP7eDN/kQ= 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=py7od88W; arc=none smtp.client-ip=209.85.208.174 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-lj1-f174.google.com with SMTP id 38308e7fff4ca-2d27fef509eso26121581fa.3 for ; Fri, 01 Mar 2024 03:28:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709292528; x=1709897328; 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=FooY6PWiKNPrfwZqqVcqa07jZtGfRl4IYqI+n4V8Fng=; b=py7od88W+msxPCEylSwpyHV5nPyoa3TF+SgBAe5WH7xmiyFEMK2ihz0Rd4JZFGYWcd Yw8FvmfCD6Rqfjcye+gBOc/0UiIz6Np2LQtvS1RNR7/I8XP/BNAafC57Rvy1TNISGZ5C HGfLhATxz7WBEDtaRj9X/G5rWcnNTQvtdsBJP/kY3HGqQYNMxryIew0bNpR38TTFBPbJ GBuDbM9QZ+EFCu1tSqo2tsPgTf3e/9+dqzobXjDnRVyITTwAzoIcnP9D4unbVD1sZbPq PwxvLAXsQt76WNAxxG0NuSG/PQD6y0XyYd0wmNwMVgyhpDUF62pbwPZAXBwVm3iU0O1d rgYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709292528; x=1709897328; 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=FooY6PWiKNPrfwZqqVcqa07jZtGfRl4IYqI+n4V8Fng=; b=mMtkBBe/M60gri1/Dme2Jfln6YJ87C638GIX0YN63k4jt0YfZVb8zK3KOPYvynmqoZ w3utgbxdfS12HSdYK9Bb43Havu6ubpLhcVL8yDgpcu2cs42kUsN6anSXVl4KwugM2A82 DDjpr6CEvIfl8dmQ/OU2qnfZfICYj9rfPb8EHgemZ4TDH6G80PkjCNlXkEZA+jOR5yh9 XR6VMw5TOI8CaQlBERQnzGeHaWygIlI68mGccFRUsYjlBuOOmfZJEIc8Ip5ygeQmiR3/ VfjqeS75DZ23RiOoa26xNC7hWJnxDATTywnm3NRJA3sJnyCDO8idSpXQYcYl0usLf1Kn hbzw== X-Forwarded-Encrypted: i=1; AJvYcCUQ2ZbTIEdP+jhHJho+8aHiFVnks4JZxseh7RZrPv1XjcD+uapngyL21oLsbLLYjznioc++ud4LbM4GnWbOA/lz1/p+V4OReE4m+YVv X-Gm-Message-State: AOJu0YwINgPpLI1pTOfy16X/0W22Cb0a/07ptdsCdd2Lom9FsZirjFFj sZ4q+c/GgV6z0vCTTGGhCp4rrle36SXDFv0ySLlfLrPTsKXsXYa/SH9g58mPMd0= X-Received: by 2002:a2e:9085:0:b0:2d1:1de5:3c42 with SMTP id l5-20020a2e9085000000b002d11de53c42mr914211ljg.24.1709292528060; Fri, 01 Mar 2024 03:28:48 -0800 (PST) Received: from [192.168.2.107] ([79.115.63.35]) by smtp.gmail.com with ESMTPSA id u16-20020a2e9b10000000b002d2d384519dsm540910lji.102.2024.03.01.03.28.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Mar 2024 03:28:47 -0800 (PST) Message-ID: Date: Fri, 1 Mar 2024 11:28:44 +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 4/4] clk: samsung: exynos850: fix propagation of SPI IPCLK rate To: Sam Protsenko , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar Cc: krzysztof.kozlowski@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, peter.griffin@linaro.org, andre.draszik@linaro.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, willmcvicker@google.com, kernel-team@android.com References: <20240229122021.1901785-1-tudor.ambarus@linaro.org> <20240229122021.1901785-5-tudor.ambarus@linaro.org> Content-Language: en-US From: Tudor Ambarus In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, Sam, On 3/1/24 00:13, Sam Protsenko wrote: >> mout_peri_spi_user - { oscclk (26 MHz), dout_peri_ip } > AFAIK, the OSCCLK only purpose is to be used during suspend (PM > state). When implementing clk-exynos850.c I specifically avoided using > OSCCLK clock for the regular use-cases, and I believe other existing Ok. > Exynos clock drivers don't use OSCCLK during normal operation too. I saw. > It's easy to see from the clock diagrams in the TRM: all CMUs have > top-level MUXes that have two parents (normal clock and OSCCLK). In > fact, the TRM mentions it: > > "All CMUs have MUXs to change the OSCCLK during power-down mode" > typo in datasheet, s/the/to, but I get what you're saying. > Even if OSCCLK can be used in some cases for driving HW blocks, the > top-level MUXes are not related to those cases. This is what I'm challenging, yes. Do you know why we can't use oscclk to drive hw blocks in normal operation mode, i.e. not low power modes? Since the datasheet does not specify any other usage of oscclk, I think too that it's safer to not use it to drive HW blocks. So unless someone else intervenes and clarifies this aspect, please ignore the entire patch set. Re-parenting the MUX to oscclk allows the same clock range as before and with the benefit of not affecting the clock rates of HSI2C/I3C for SPI clock rates below 500 KHz. This is what I'm trying to fix here, I think it's not a good idea to allow SPI to modify the clock rate of HSI2C/I3C at run-time. How about specifying CLK_SET_RATE_GATE to the common bus divider? It will prevent SPI from changing the rate while the clock is prepared. Thus HSI2C/I3C will no longer be affected behind the curtains. Thanks, ta