Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp461060ybg; Thu, 19 Mar 2020 03:01:39 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtcmOOdySFmUegyjUBUtoR+UoCFE/KCB6fkmQGG1nkxbAhCVFgsfi4lbDmVL6mitOqTdEwR X-Received: by 2002:a9d:d0f:: with SMTP id 15mr1631387oti.161.1584612099288; Thu, 19 Mar 2020 03:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584612099; cv=none; d=google.com; s=arc-20160816; b=jAxwHzIPV8FJlrZj09KOwdhUBCIjH/6Z0ZDQEERoXsFqYtUZb1lKZeBecJ/331t337 5P+O5gSVzzAOoUuTAS9DRCXGcLEisf6Xr2yGqsgly49ZROiPPhgK4V3oHIZQquP72uT4 cs3PhezNnyMZcm2kX8Z4gl1EwcHuLiWd1v8uGWObMr2qLPRXNq6FcnInBPUHlY1giKC7 TtATnKXEpXCv4w4oEXi/FFPB2kKMbCGn2yBW6JDwyaVqgLkupcI9a2R51Z+alBxZNuEg ezTp/b/0x64XPlAolC8qXdH42qlVKWNm0s+QEm5lja+sifDVhswiOHS2srtKdAiV3BUW Ifsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=AEweTAoYqzmbnIPkNbbqyUDpsBmQCn1jJNkZ+yktwS8=; b=Z9MOQMIDRynvfWz+MHULOC8jvbQn0orNFDoGktFdtVBPIbI6A6fFYsCm1EZpzc9U9M oxi7u6arzgIbK6UlsbmCKMIUx1hxoOmOOXwJtjNo/jwn6lvXIOM4/awVxFXlQQd6KkeE DAQuC39O/XORHRYVXraXkQVxcXyGrfmXJ06DCymKGXaqgdIED2NzLXyNyXiFcC86wbTd k0Mjr7C/IKBrbxOYZJcgiTZgNLpW7LQcKUkt1RbeCne1lFqGgdw7exjeo/+DwdpAzPW1 APXXqSMUyA/9k3212dWaa4laOMlnH1BmceNrkg+vkyCOn8EAiCVvmiFmGVjvICsWm4U2 m7xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=pHUPtJq4; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Wa5MNnrX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 193si841304oie.51.2020.03.19.03.01.25; Thu, 19 Mar 2020 03:01:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=pHUPtJq4; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Wa5MNnrX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726879AbgCSJyr (ORCPT + 99 others); Thu, 19 Mar 2020 05:54:47 -0400 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]:50971 "EHLO wnew3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725601AbgCSJyr (ORCPT ); Thu, 19 Mar 2020 05:54:47 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id CC5E23BC; Thu, 19 Mar 2020 05:54:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 19 Mar 2020 05:54:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=AEweTAoYqzmbnIPkNbbqyUDpsBm QCn1jJNkZ+yktwS8=; b=pHUPtJq47kWB0/PzKUMTMDB8z2sBBBnhmNVh+Zkja7l YoyY6wekqF11f8jv+oZ9rY6cY/0+BwGn7LO2dlZxi0F7N9lz9PQZXH1m42FFp4bA HuEZ2WvwO4KzawnPzhH3ktHoELxkzQdopswvHlQTm2pIsNy2jCymTkuBq5FkFUVo DqH8mmfQzGpg9QrKBjp1BoveMbE8czQLI+yEgZJ5qvyFQxIkmqrlfmrUUjjoASeH U7AtTa//bmNddEVXUDAEhpMyEMhP+3MU0VTN0N72M8VjxP5wzTRpUqEOLDXWxDk7 U6BgeIW24scdtKBWkEoGAR3QhCJ3HpFA10Lo6Eq5dPA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=AEweTA oYqzmbnIPkNbbqyUDpsBmQCn1jJNkZ+yktwS8=; b=Wa5MNnrXfnbc0Ga1eRa05I 9E+hM5kg/2N10ZhFu1qyF2q9kiPFFy3NrKBe+YLIVneH87/dU3vunv9fmeTzU30H xgP2ZYpmUCQ9VGqgJehzd2+t2JAtL8ZyzUdNEhZXiKQ0CyZ0Q+h4HQx8B+ora178 OZ7vVvDDaf9OClMs9adfidvJNXZocwrCf0F467ObeL5sWpEfja9vYGwpvx4IeXOA zrSVYiYDAf6AYbnQ73SZonwHPwBHysSkS9KT0CgPwmN0r1rn1hLoBAm3HanRFayn r3raqSnPkHUFTil7FD3Jf9Tw5ZCa8H3JaSy332Ds92TsyZxv1/GBxrjgCb/sD/gg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudefledguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecukfhppeeltd drkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 92843328005A; Thu, 19 Mar 2020 05:54:42 -0400 (EDT) Date: Thu, 19 Mar 2020 10:54:41 +0100 From: Maxime Ripard To: Icenowy Zheng Cc: Thierry Reding , Sam Ravnborg , Rob Herring , Chen-Yu Tsai , Ondrej Jirman , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v2 4/5] drm/sun4i: sun6i_mipi_dsi: fix horizontal timing calculation Message-ID: <20200319095441.zfaivhnh3pwuphp4@gilmour.lan> References: <20200316133503.144650-1-icenowy@aosc.io> <20200316133503.144650-5-icenowy@aosc.io> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="du2tzzvxzpnq2xcd" Content-Disposition: inline In-Reply-To: <20200316133503.144650-5-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --du2tzzvxzpnq2xcd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, On Mon, Mar 16, 2020 at 09:35:02PM +0800, Icenowy Zheng wrote: > The max() function call in horizontal timing calculation shouldn't pad a > length already subtracted with overhead to overhead, instead it should > only prevent the set timing to underflow. Some explanation on why it shouldn't do that would be appreciated. Also, with the changes you have below, the comments above each max call don't match anymore and should be updated. Maxime --du2tzzvxzpnq2xcd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXnNBYQAKCRDj7w1vZxhR xVK2AP9MrOr+g0Wxeod4btE4njIJOm/ARGGGAOMiH4E54MPtvAEAvxcr9/HggXHX CbB5ndVBG5C8Z2r5jKBQqYK0BN+Iqgo= =YB6s -----END PGP SIGNATURE----- --du2tzzvxzpnq2xcd--