Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1121880pxu; Wed, 6 Jan 2021 12:56:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLqMcnY0KcnWvVpbKiACHrY+jHy7YfmiE+kqmbwYka7TRZ6YAgbj1y4KOsepahaD26G6m2 X-Received: by 2002:a05:6402:1a52:: with SMTP id bf18mr5088899edb.143.1609966602624; Wed, 06 Jan 2021 12:56:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609966602; cv=none; d=google.com; s=arc-20160816; b=0wPrSmgcQHJjTUeZ/ZUgtCF9So+HxQtiPVs7zlstTVe07baDSZv4Bxf5hTKaUjuLwa izo2U+jploJRpCHVmV2KKZCL9A44J/uZw3hg+iZwmU4QlhOccQKCbnlK466MLdMz4lEI CCVurkM6LU/LzvsZy5pS+JzCF2YVYyA9REwC14Co0BTmK3Vun6myrzf/V9mc455V6dP6 6A7bPaU7O81JlM0f+Wn0YRBgl0UwZrF23sAoRlxaX+g+yQNaJPD8pBopzW+Dljk9R+Tx iidr/ToDggvDAigzMvR68YOe6Lyu8IlVOotkOAwNS2SqjjPzIjAxnhSGfXqWUzKYmisn cGTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6JNE90gj2WsKd2fxk2NjSDUYt3omoq7CUT+HO/vix8E=; b=y2N80sUJdhM+t/9SS9vi2ivkketQ/c6oqu110ipBVaRK4ReBmZ45Ie9sXBW2oHM27k gVJPy3DVTNjeC1UADp/4n6iizG8iXHZxyz2PIOdyIJaXc9tZHC1d9nTrcgy0WSqbkh+1 imwJ5NSYkXjno5sJ2iB7FAnoruk94zM6vEdIiyK6CJRk8ofvR/p7I69LtyE8RR/tYRsY X6wQ0oQhERySvcaoAGzRrCAtERwcGK5M7fUmgqLyeDZKzcddKOjfGoblQYYx6vWO5Coo 6UeDlu3DYNlwV36sTFx3jWgtt1xEm5pj/+l4WRQSB1Pycj2iOnJ0EPp2jaKh9QW+qmJD 2WiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de26si1334593edb.570.2021.01.06.12.55.57; Wed, 06 Jan 2021 12:56:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726724AbhAFUyK (ORCPT + 99 others); Wed, 6 Jan 2021 15:54:10 -0500 Received: from mailoutvs41.siol.net ([185.57.226.232]:51417 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726463AbhAFUyJ (ORCPT ); Wed, 6 Jan 2021 15:54:09 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 11B5D522C68; Wed, 6 Jan 2021 21:53:27 +0100 (CET) X-Virus-Scanned: amavisd-new at psrvmta10.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta10.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0m-L2fMwazmn; Wed, 6 Jan 2021 21:53:26 +0100 (CET) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id BCAB8521967; Wed, 6 Jan 2021 21:53:26 +0100 (CET) Received: from kista.localnet (cpe-86-58-58-53.static.triera.net [86.58.58.53]) (Authenticated sender: jernej.skrabec@siol.net) by mail.siol.net (Postfix) with ESMTPA id 387B8522C68; Wed, 6 Jan 2021 21:53:26 +0100 (CET) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Maxime Ripard , Giulio Benetti Cc: Marjan Pascolo , wens@csie.org, daniel@ffwll.ch, airlied@linux.ie, treding@nvidia.com, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Giulio Benetti Subject: Re: [PATCH 1/2] drm/sun4i: tcon: fix inverted DCLK polarity Date: Wed, 06 Jan 2021 22:00:04 +0100 Message-ID: <3685133.SLcexNTYsu@kista> In-Reply-To: <20210106192800.164052-2-giulio.benetti@micronovasrl.com> References: <20210106192800.164052-1-giulio.benetti@micronovasrl.com> <20210106192800.164052-2-giulio.benetti@micronovasrl.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dne sreda, 06. januar 2021 ob 20:27:59 CET je Giulio Benetti napisal(a): > During commit "88bc4178568b8e0331143cc0616640ab72f0cba1" DRM_BUS_FLAG_* Please use same commit referencing approach as for "Fixes" tag. > macros have been changed to avoid ambiguity but just because of this > ambiguity previous DRM_BUS_FLAG_PIXDATA_(POS/NEG)EDGE were used meaning > _SAMPLE_ not _DRIVE_. This lead to DLCK inversion, so let's swap DCLK > phase to fix it. > Add Fixes tag here. Best regards, Jernej > Signed-off-by: Giulio Benetti > --- > drivers/gpu/drm/sun4i/sun4i_tcon.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/ sun4i_tcon.c > index eaaf5d70e352..52598bb0fb0b 100644 > --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c > +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c > @@ -585,10 +585,10 @@ static void sun4i_tcon0_mode_set_rgb(struct sun4i_tcon *tcon, > * and DOTCLOCK drivers. > */ > if (info->bus_flags & DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE) > - clk_set_phase(tcon->dclk, 240); > + clk_set_phase(tcon->dclk, 0); > > if (info->bus_flags & DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE) > - clk_set_phase(tcon->dclk, 0); > + clk_set_phase(tcon->dclk, 240); > > regmap_update_bits(tcon->regs, SUN4I_TCON0_IO_POL_REG, > SUN4I_TCON0_IO_POL_HSYNC_POSITIVE | > -- > 2.25.1 > >