Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp362830rdb; Mon, 18 Sep 2023 18:50:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyoCBC/Qm2C9rnT44LTIc6m6DTyRF1AV9/Ov7MUhjNUNyriWKSGmXettmgH8Yvnl58a+zb X-Received: by 2002:a05:6870:58a5:b0:1be:d9cc:d902 with SMTP id be37-20020a05687058a500b001bed9ccd902mr12165021oab.57.1695088256461; Mon, 18 Sep 2023 18:50:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695088256; cv=none; d=google.com; s=arc-20160816; b=hdpFYsNRn8hiKcii43qqgyyWz7pxSk62C30eB52YdYCxXtxX9TIFDPXcxassqSfXVo 9356tMDDL95bvl7D+6kSM6SB4owtPq01XkA/tdIgaD1na1FafYWxsnIYdyOtWZ9D71qP 8RhUVKpDE/trN3+90Ete/7Z2z26i10ygNq6VYgMz9/GJ/qVZt6B0cXgAmOzAwMVPoLjD l92kAtDLb+BbjqBhg07ZNj+VBVQDu4DBqK7+tEUAk9gRdXv2WJqzSHbjjCv9IARFKbsK trWohM6owP9we4XbEygSFwTbOupJTuXEiwyYAu7DNgidAs0ngZLQLt0pdDIyqLwXKKgZ vwjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CKdtwrHX9h1DYPfJUeRRaXbqtpaVmfYt1U1WzQ3+7bs=; fh=Pxqc6jSvNb13n1fsEnRaK27kUantU0jY0P70KbpgR3E=; b=zIg+HSFRmOkLNINSevAVuG3+oLWLIuOiOna40EsHPlKPbkqcny6iLdM497HAyc6mdf EDKUT30TEOrO9m13ceXC3rmjOI1x3BfcGFHD5Wd60BZPUS//D/hmEzSf52/OkeKVi0JS UD/eULWCvxapdsnYaf5uZEoCYW5VLi/vM0NCFpsI9k3DvzcLaGEl+bNHGLL60l/0J0yI F+sdGs99wQXbh7iGLHQo2c2r5TQgECgSDixhDVwL9eRtSG/1IaO5S4CZIQ6NU6lN+rGg 18Eq82mQTcnRIAjeDTONuDU0892fBk5H9fKDgNfi2Ymao6jHjFfI0uWet1EY2usLZDVj WRhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ODf1e4gq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id b4-20020a17090a9bc400b002768cfbe6desi1085083pjw.112.2023.09.18.18.50.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 18:50:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ODf1e4gq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id D57E28022EB4; Mon, 18 Sep 2023 11:06:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229501AbjIRSGK (ORCPT + 99 others); Mon, 18 Sep 2023 14:06:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbjIRSGI (ORCPT ); Mon, 18 Sep 2023 14:06:08 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2046C115; Mon, 18 Sep 2023 11:06:01 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-5031426b626so2293576e87.3; Mon, 18 Sep 2023 11:06:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695060359; x=1695665159; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=CKdtwrHX9h1DYPfJUeRRaXbqtpaVmfYt1U1WzQ3+7bs=; b=ODf1e4gqLjiMq36pAFhsOGnzyxsbP3c4hiTiPN/u3lmEymr/KVjrYAxAEV9Rcg/YT1 Y7fZn6MVR2eSqMUJZCCaz7lRvPyJ8ytgvGInLLLsCLtYT06M/G+PYXmYwXQF3iG7Aiz7 SnyPKnvtqZDEYW+DmwlQqzJesZhHtsz4gZ4nCu5cyTtNt5aLRlF3nTQxaryP4b2l+nOo eKdil0vc3JP8wluHMou9MovPZwBm+mHRcN8YjqOGZb8Q45tFbsyDxz11HCq+Ogo455DL 1yp1DbYSkKkx6xb3ndu8ZpssNpClbvPKZ4eL38sFLf7rIvYEeHDfq/0ji0lUqaCkNiaA SQsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695060359; x=1695665159; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CKdtwrHX9h1DYPfJUeRRaXbqtpaVmfYt1U1WzQ3+7bs=; b=tBGoOJ/JtxNiwNbDXzuaZqZ2RMu4JpDmYCIBprYkQIenOBUrZgS2Xu7aus5558X7HL AhCtO/LgYk/MaeOm3zHNr/XYddgGtZl1cskraO9L1WUoHrtNl3cIsz2VmstYMHoS8jAc M6ksIKV9bHreD7cs84Z+50c7Ghc/KdXow8+mmFdKMxhkxqpm7vsH93asNcQykO3MRQV/ NAy+qYVDw/FwuaN7cWefghcclaMcvSC+Rl6LbJP8Ldp9bXsJaO3qJBNsmwuQdeM+Fa/f 07YmLhCBbR+DMmRIiEeq+pQEouq8/D/fA/g/kSpghYhZDUmbLhHW/Xi9ieqFnRbxTeah X1hA== X-Gm-Message-State: AOJu0YzcivF98QXHLqcRThATwSNwnlUySt0DRf/xgfPKdn4VLHQKHckA k8cYy04PR4Q/cBddrX/QSH7qk/m92/BPHTSDHr8= X-Received: by 2002:a19:6756:0:b0:502:ff3b:7671 with SMTP id e22-20020a196756000000b00502ff3b7671mr5803223lfj.9.1695060359169; Mon, 18 Sep 2023 11:05:59 -0700 (PDT) MIME-Version: 1.0 References: <20230918-imx8mp-dtsi-v1-0-1d008b3237c0@skidata.com> <87fs3bbdjb.fsf@oltmanns.dev> In-Reply-To: <87fs3bbdjb.fsf@oltmanns.dev> From: Benjamin Bara Date: Mon, 18 Sep 2023 20:05:48 +0200 Message-ID: Subject: Re: [PATCH 00/13] imx8mp: first clock propagation attempt (for LVDS) To: Frank Oltmanns Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Michael Turquette , Stephen Boyd , Russell King , Abel Vesa , Peng Fan , Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Benjamin Bara , Adam Ford , Lucas Stach Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 18 Sep 2023 11:06:25 -0700 (PDT) Hi Frank! On Mon, 18 Sept 2023 at 19:24, Frank Oltmanns wrote: > On 2023-09-18 at 00:39:56 +0200, Benjamin Bara wrote: > Thank you very much for including me in the discussion. If I understood > Maxime correctly, your proposal is close to what he was suggesting in > the discussion you referenced. Unfortunately, it doesn't cover the > rounding aspect (which you also mentioned in your cover letter and the > description for clk_detect_unintended_rate_changes in patch 7. I've been > pondering the last three weeks how to find a good solution to this > problem, but so far haven't found any. I think if we stick to the idea of always enforcing the exact "typical rate", we cannot avoid physically impossible cases. IMHO, it might make sense to add a set_rate() function with a "timing_entry" (e.g. used by display_timing.h[1]) to the clock API, which gives a suggestion but also defines the "real" boundaries. This would provide a shared parent PLL more freedom to provide a satisfying rate for all its children. Regards Benjamin [1] https://elixir.bootlin.com/linux/v6.5.3/source/include/video/display_timing.h#L64