Received: by 10.223.176.5 with SMTP id f5csp2572626wra; Mon, 5 Feb 2018 06:23:52 -0800 (PST) X-Google-Smtp-Source: AH8x227M9zqPflTVkwTVwi4cXTLMEJeXdfvp+jXT0026CuNHwMHy9o+xTzUr4yaphaRYXmxIv6tx X-Received: by 10.99.126.85 with SMTP id o21mr8420289pgn.406.1517840632777; Mon, 05 Feb 2018 06:23:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517840632; cv=none; d=google.com; s=arc-20160816; b=LfSAbQREC8nyckHGgOS3eoY10+n/5Q2Dyt76sLU9/KT+BWjzLnVlQO5uR3ItcAZVDG p5HCLlNTRRjZTU36C2ItYx/msLfdkXrFAiq/SZlV5nYWv7Gx7dv35qsq7w5PFt2OA7cL H8M+Xq7+mtlKzqE/kaw4iFTOHW3tgkZt0/TYdUqN/FPGBJT7S7cP+WYDyUu+mUYyRhml /t8/3qB+zF2G8xaz5b6n2seSwJbsMU0sTh34eCmo+ql7SytOrzDp6LDVGGAbAysRrRbK UULwslG7rxDKLaEusrZ3vi6AmpuH0uf+57K2VJ2QdRO9crv4ODE/hVr4ACKU456ZF/dx c2qQ== 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:arc-authentication-results; bh=OMG+ziWPj0VKsEgUbcwvJRx7WqwIIQ8tVzJfYxeRN9I=; b=J72zQmvvhz0WwPAp1/pOQb2VYxuHnLTW4GeTzmFEOF7wsrwXxiOvwKDGpXuhSJmkiQ k6t0R5qAkqxElg8O4+R7rbfk9ZQgtghJHN574PujBsA2Fg5uY/VffKV5cEmQq5VG4iLB zWStFxldatHyybK9P4opEuv/6nfC0V4op8RqlgEhP5TuCHvb+VwrYlAWW6NHUxqC+XLN Vl4OKx4jHZMa3dTXgWB2OIqBKRpszAob6KCUyjGLHtLtJWU5DgdNTMJ3XseEnWisedQL nUUhlNc/WJaxWqrXKlC2Uawg7+0Of5QLTRB3i8muLSmaCO5VN0XnHACzvdh8Qqd/sl32 S9fQ== 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 r69si3896104pgr.678.2018.02.05.06.23.37; Mon, 05 Feb 2018 06:23:52 -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 S1752961AbeBEOWA (ORCPT + 99 others); Mon, 5 Feb 2018 09:22:00 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:56397 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752461AbeBEOV5 (ORCPT ); Mon, 5 Feb 2018 09:21:57 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 36491207A8; Mon, 5 Feb 2018 15:21:55 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [185.94.189.187]) by mail.free-electrons.com (Postfix) with ESMTPSA id EC1DE203B1; Mon, 5 Feb 2018 15:21:54 +0100 (CET) Date: Mon, 5 Feb 2018 15:21:55 +0100 From: Maxime Ripard To: Giulio Benetti Cc: airlied@linux.ie, wens@csie.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] drm/sun4i: Handle DRM_MODE_FLAG_**SYNC_POSITIVE correctly Message-ID: <20180205142155.vgd2olchbwzm6a7x@flea> References: <59f7b542-3b1d-ff62-e290-37c47f4075ff@micronovasrl.com> <9929d894-53c3-a7e9-a328-a00cfc1ef546@micronovasrl.com> <20180125152117.qikemrwl7f35ssjg@flea.lan> <20180126145608.5s6c6ltpvrko7iyv@flea.lan> <18ec71dc-a785-a771-76d4-176d95032c97@micronovasrl.com> <20180201101411.d23efsjt7jdyi4zh@flea.lan> <51323c6d-ba50-f09e-fcd7-d9b18d03673a@micronovasrl.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nunsc3phayviv7ll" Content-Disposition: inline In-Reply-To: <51323c6d-ba50-f09e-fcd7-d9b18d03673a@micronovasrl.com> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nunsc3phayviv7ll Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 01, 2018 at 05:09:33PM +0100, Giulio Benetti wrote: > Il 01/02/2018 11:14, Maxime Ripard ha scritto: > > On Sat, Jan 27, 2018 at 11:07:09PM +0100, Giulio Benetti wrote: > > > > > > > I don't really know what the polarity of D0 would be just by > > > > > > > judging at that capture, but we would have noticed if the col= ors > > > > > > > were inverted for quite some time now. > > > > > >=20 > > > > > > D0-D23 are correct. > > > > > >=20 > > > > > > With that capture, I mean to show you instead dclk is inverted,= as > > > > > > dclk samples D0 on falling edge. > > > > >=20 > > > > > Ah right, DCLK being the first channel? > > > >=20 > > > > Yes, sorry I didn't place a label on channels > > > >=20 > > > > >=20 > > > > > > So 0 is NEGEDGE and 1 is POSEDGE(1/3 of clock phase). > > > > > > 1/3 clock phase seems enough to me to be considered POSEDGE, > > > > > > 2/3 instead risks to go too much to the right of D0(even if it > > > > > > could work). > > > > >=20 > > > > > Do you have captures with both settings? > > > >=20 > > > > Not now, but asap I'm going to take. > > >=20 > > > Here we are: > > > 1/3 phase: https://pasteboard.co/H4VehON.png > > > 2/3 phase: https://pasteboard.co/H4Veq8a.png > > >=20 > > > Yellow: D0 > > > Blue: DCLK > > >=20 > > > As you can see: > > > 1/3 phase has DCLK rising edge almost in the middle of D0 > > > 2/3 phase has DCLK rising edge that comes too late > > >=20 > > > I would go for "1/3 phase" for Rising edge and "normal phase" for > > > Falling edge. > > >=20 > > > What do you think? > >=20 > > It seems fair. This need a whole lot of comments though :) >=20 > Yes, then, do I proceed resubmitting both corrected patches with corrected > commit logs? Yes, please. Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com --nunsc3phayviv7ll Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlp4aIIACgkQ0rTAlCFN r3TZjA//Q9bxOY8dTejXjDTUPqSwlWRkCBFm/h7LXzzzBcHL0v6ZFCaE921yXp1i AcusZ+Hgs+iIeHXlaYWnk3IoXTQL7NU0W4UlRunUCy1zG75bAKZYO4uevZnIQUjI dB9+3HWrCXAHtABdcpplXF8TdXIzbh7MvJtOe5HQKzAw44gM1moRtVBDMD0ST3+z S+QqjLMYjnOt80/BPO0cbWNsFcstkez11wtd+yd2/H5Z5+UNPaTD7XsFweV9q5MN IxREzurWxp5Xue3aBqWM6dNIwG1CCB8xPtkxokhXVs5FfYH2dGJb8CHeJE+kHr1K PfTfnbx/Y/3JE7xe9da9xCMPtJWCsxAB2h+ABkfoAXCq7lyohg2W5Lu7isMoqB95 /kP2n0md3mlNlQed777XHB0cL3hquWmrGVxdUHBIqDv5g9d/mvjgLH9upRBxZhJF uHMuXjhkl2Q7ZwI9Fl7EUxCqucEUeC3WU99FBhXgeDUX0m2Vw23j/GLrFk+C8CBX 5KxPWuQ7IS+AfXI5lmjL5DzSBSjkMKER0GUdefgNxx1XFzhgvc4miYyL+5MN0LQE xkFzzn4nOJKCEExItR0T1F4QsdDjQh3xLOa/WkUGsoa5oXUx+PpYTuDbqSqACn3o cEfEn5xutjKqS4S79ZitOpafw16p70Hbxvp+9J35fQk72R0hRs8= =oqHS -----END PGP SIGNATURE----- --nunsc3phayviv7ll--