Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3290361rwe; Sun, 16 Apr 2023 16:40:23 -0700 (PDT) X-Google-Smtp-Source: AKy350bz65WTSIqr6y3TQL6NgXsg8fYlSAg/nM1PTqXMd4uW6kwomoX2reF4L+qMIKqi8L2HuazS X-Received: by 2002:a17:90b:c15:b0:246:85ec:d816 with SMTP id bp21-20020a17090b0c1500b0024685ecd816mr13256009pjb.3.1681688423144; Sun, 16 Apr 2023 16:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681688423; cv=none; d=google.com; s=arc-20160816; b=q9m48gMdU9kMZyxG63gEYfEbsDBPz7RUyns1+7NqlNE8yK3Dy8dBh6uAkvEy6BvLZj kcRNC38WOk9uS+3rlniMUwrz2zTsgPMSdxPFPB/dRF0qBIYC8BQFu4UO0uIZ7hGFumZi gFkZ9zxX8z/0nTeKYffumr+fjdSrwGVzTVjernqg1yLqdIkXGjfVl87/bDsytP79P5nW AQsNlCmr273Jd604tMihqLl+BeFfB5QmMKeaICcfjPV5Oa6fW9jG2CneDaRnMmAVhFeu eS/kSRanvB0S7yRnCeTO/EFhN1fLjRKOXvEpZzJXVKpmXYcQjZE+f0AWhYY/NMf7oApQ 07bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=njiQMSpa55Md/h+IwVavrbsHo/BMerUnaJPe8xEMR9Q=; b=STaGKuI9ZcKZAjxszjmGRqEYFxOKvpamlnIV9Ep8xCsHYyo8r6d9fWcCmTpSG4hwuP 2N0ErXAKtzJzVUkVkZF75uME1S9A68UCiy6az1O9PRdxnjmfLBlB5ijVyGyd7lMlAsC9 06qz5C03tfY8746I7QALsRLU8x7nG9yTpnNa7QVcMBydtboJzsG9isT2wUtBqSHTDksd dOhzfPYCdHDwm7YmGF2cEbgfxyI2TBc3jy7xAq20RYehsa7n1/S49kU4hVzQtCULa/JY dle1Z1WJvs54XTdyeJZBFmIQIZOYq3bSLrbCAd3byr9xJWgXRKKZSnzSzF8DbxhG/Vjr tWtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b="gha/hyJv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nv3-20020a17090b1b4300b00240ad93edfesi11536159pjb.5.2023.04.16.16.40.12; Sun, 16 Apr 2023 16:40:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b="gha/hyJv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229711AbjDPWMe (ORCPT + 99 others); Sun, 16 Apr 2023 18:12:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjDPWMd (ORCPT ); Sun, 16 Apr 2023 18:12:33 -0400 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDD67211C; Sun, 16 Apr 2023 15:12:32 -0700 (PDT) Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id D5CF085C9B; Mon, 17 Apr 2023 00:12:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1681683151; bh=njiQMSpa55Md/h+IwVavrbsHo/BMerUnaJPe8xEMR9Q=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=gha/hyJvKgc5H7SCdoyie6kvnyfwTn1IGp0hMnPAXUskY1UWWBC1+e7EHHVgtP4yY IhCvcUykT2iJbzXXE251hDynxzuHJEJAS+82oYX+xhanXjQnbkzvI6opz/4HjnEaAr qfYuQ4ysdPfBgp6iAOQeL2iA7QvG0aeehH7ApmfnhAoxiF3DFzechHrHmuFQdC9h+l fPDFloU0N1PvKGnj2PlNPfaLPiGPh/Bkfkr/RxLQll2SF+l3lAKFfSWdQgg/qPhae4 YidyO8lns6MYKCZKEeZfD/QJ/ZjJrmUQRQZcbyGwBB5GOtwpHF3qkl2zk05heoUMFr tVeMbhUHiyCCg== Message-ID: <5b6d4cfd-dedb-3123-9db4-28e202da11b2@denx.de> Date: Mon, 17 Apr 2023 00:12:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 4/6] drm: bridge: samsung-dsim: Dynamically configure DPHY timing Content-Language: en-US To: Adam Ford , dri-devel@lists.freedesktop.org Cc: m.szyprowski@samsung.com, aford@beaconembedded.com, Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Inki Dae , Jagan Teki , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Frieder Schrempf , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230415104104.5537-1-aford173@gmail.com> <20230415104104.5537-4-aford173@gmail.com> From: Marek Vasut In-Reply-To: <20230415104104.5537-4-aford173@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/15/23 12:41, Adam Ford wrote: > NXP uses a lookup table to determine the various values for > the PHY Timing based on the clock rate in their downstream > kernel. Since the input clock can be variable, the phy > settings need to be variable too. Add an additional variable > to the driver data to enable this feature to prevent breaking > boards that don't support it. Isn't there already a generic LP2HS transition time calculation in the kernel ? This looks like a generic calculation which should be done by all the DSI hosts, so why not introduce a generic helper to do such a calculation (and not a table please) ?