Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp518035imu; Tue, 27 Nov 2018 02:09:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/UiMxZZazIlL05Vx4FpKvwFjYntmIlBGZMlNrqXiIj3p4ovsDwIi/lA94uWkEKYIIMvN1G0 X-Received: by 2002:a63:6cc8:: with SMTP id h191mr27576714pgc.366.1543313390392; Tue, 27 Nov 2018 02:09:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543313390; cv=none; d=google.com; s=arc-20160816; b=l4rgpp1QTzDnhYJK0PjNCHnTjpAVxC7ikk0cnw9zCaZhA+7k/718ItaZ9FM4yBnYpK iBMk9+qD4cPSoLS+HoEtlnSdBTG+aVKoSOH7VNM6S89zSawS6vCNFBr4RkC+aVvXZOw1 qsPQ3eqgL2oMoiXIk7SPOJodmzEYAd8stJ7hqG7ok0pia+eyYuojdRCJtbIL71R4tODi Gg+t+yXRkHtzMjUqxmxPfJ1h8r2LMGdubWnHc8UI06E/0RgLQadDmt2oJUBmt+do+lYy 65AwNi79uC0csiIBh/JEVoKa7Rd1tJYvkD335ABx85jKzfgTZl7yNR+kb1CNtUnEAq8F jEBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=p4v5ywMgGhRr5zTfxq9qJNUKuLctY4A5akQC7sXJZfk=; b=ODiQ2z1qzEIzsclXizrQo3nRFLmVqBYkhiUwNAEzVIIlLt3ch8855y7hmocSOzcIyU mutNX/T/f8lUsVKVF8ZCFPy9vhGvWH8PFKJU4SYDPVoXIQWuWQq8FNth7rbQCVUDX2P2 OGU+z1xtiF5IvNaeWA8wiCfm86v1HMLyglqsTHYnN3llTxEnCyNm8j+TvhmwioyxlKil ioKkL9SdTDUiuvrrTo41BmaT+S1G2i2HVa71KewIGLUwfzVWp0gzNfhDj1K/LhEk7I19 xLy54JNWeNHkCsuQqKMpRbinsWAQhmKb+P2cXj/G7WlG3Rl7zYgPSNTY+qWkCS4cyoLz vxMA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x186si3210093pgb.33.2018.11.27.02.09.34; Tue, 27 Nov 2018 02:09:50 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730491AbeK0VFA (ORCPT + 99 others); Tue, 27 Nov 2018 16:05:00 -0500 Received: from mail.bootlin.com ([62.4.15.54]:33972 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726437AbeK0VFA (ORCPT ); Tue, 27 Nov 2018 16:05:00 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id E8FE820736; Tue, 27 Nov 2018 11:07:34 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (aaubervilliers-681-1-94-205.w90-88.abo.wanadoo.fr [90.88.35.205]) by mail.bootlin.com (Postfix) with ESMTPSA id B9387206A1; Tue, 27 Nov 2018 11:07:24 +0100 (CET) Date: Tue, 27 Nov 2018 11:07:24 +0100 From: Maxime Ripard To: Jagan Teki Cc: Maarten Lankhorst , Sean Paul , David Airlie , Rob Herring , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Thierry Reding , Mark Rutland , dri-devel , devicetree , linux-kernel , linux-arm-kernel , Michael Trimarchi , TL Lim , linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com Subject: Re: [PATCH v2 03/12] drm/sun4i: sun6i_mipi_dsi: Setup burst mode timings Message-ID: <20181127100724.od5rm7vxdn7qemdv@flea> References: <20181116163916.29621-1-jagan@amarulasolutions.com> <20181116163916.29621-4-jagan@amarulasolutions.com> <20181119083036.riydru5xefao3xte@flea> <20181120154532.mykbbrc3homwf2fi@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ljkfb22ybl2pyuox" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ljkfb22ybl2pyuox Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 20, 2018 at 09:52:23PM +0530, Jagan Teki wrote: > On Tue, Nov 20, 2018 at 9:15 PM Maxime Ripard = wrote: > > > > On Mon, Nov 19, 2018 at 04:30:37PM +0530, Jagan Teki wrote: > > > On Mon, Nov 19, 2018 at 2:00 PM Maxime Ripard wrote: > > > > > > > > On Fri, Nov 16, 2018 at 10:09:07PM +0530, Jagan Teki wrote: > > > > > Burst mode display timings are different from convectional > > > > > video mode so update the horizontal and vertical timings. > > > > > > > > > > Reference code taken from BSP (from linux-sunxi/ > > > > > drivers/video/sunxi/disp2/disp/de/lowlevel_sun50iw1/de_dsi.c) > > > > > > > > > > dsi_hsa =3D 0; > > > > > dsi_hbp =3D 0; > > > > > dsi_hact =3D x*dsi_pixel_bits[format]/8; > > > > > dsi_hblk =3D dsi_hact; > > > > > dsi_hfp =3D 0; > > > > > dsi_vblk =3D 0; > > > > > > > > > > Signed-off-by: Jagan Teki > > > > > > > > How is that matching the code you have in the rest of your patch? > > > > > > + if (device->mode_flags & MIPI_DSI_MODE_VIDEO_BURST) > > > + timings.hblk =3D (mode->hdisplay * Bpp); > > > + else > > > + sun6i_dsi_get_timings(dsi, mode, &timings); > > > > > > It's again your request to "keep the couple of function to make more > > > readable" > > > > That function in particular doesn't make it much more readable, but > > more importantly, your commit log doesn't match what you code does. >=20 > May be I can update the commit message if the function is OK. for > burst most of the timings are 0 so I used structure with memset to > keep not assigning 0's explicitly. otherwise do you have any > suggestions, please let me know. Drop the part that move the timings setup to another function in this patch. Thanks! Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --ljkfb22ybl2pyuox Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCW/0XXAAKCRDj7w1vZxhR xfiTAQDLRk6S/mdFXIIvipxhGxjnywdbpZZJr8SEtb+OkflHeAD+PIxbcJWQnrvO lDURsNJiGFd6/wV4NLX/fOFCrAGPvQ4= =vqsG -----END PGP SIGNATURE----- --ljkfb22ybl2pyuox--