Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp89994pxb; Wed, 22 Sep 2021 16:49:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNC027DfuNQLIujeun7/f/TEHal0ZK0JSoPt46akSG/Az5o8kzK3pHbpezFE1lgzdu1Zmm X-Received: by 2002:a02:22cf:: with SMTP id o198mr1452439jao.37.1632354566495; Wed, 22 Sep 2021 16:49:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632354566; cv=none; d=google.com; s=arc-20160816; b=qegN7JvMtz4tSHF071vrDGVQtOwowljPJSNnC7UClCjgx5qDUr6POWHYcMnt0rqJ3Z rJnThsKevTszn4OS4FyVlQIOTCg/gu4I/iw70ggF+ueYtp8PNQk2Vc0l0fILJERytAwy UYbVN+nAe33uyQ1W1l5aVzklU5WXArj84o8Y1sFsVOXnO/q4vmLtkQDH0CLVENvFQGHG PbMr2t8lvJoKsX1Ks8jOolZiLCpUxi5yC0tRq57u1EYGyCRhrvPxvTZl8XkX+ibnSz08 AexGy0dfv81s9M+bOB2XZBzqKKifSEz4JfMOfKWEBGZA4ShMrnrMaTvP4b85isIoWywV RV1A== 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 :dkim-signature; bh=dE8ylquFpiZpLFWjp7xqjPqd/++98u8S4mcsY6j37HM=; b=M4+ypqfCfZfeB8GqcclhU+dNwWtkGzDd9OoCiiqPiZLtnlh5ihKHOqE1IolRzHiJ2c HhGnYnNQ7QKlSyTD3rhijIJ3uOWG0+3M05UCK13t291+muCnM8sPwbeQ9kJUgLE9rsyg 0tOfGa6wGdd6nvwxs8byhbjHK4Ug3mOzYJbKGV5B2mvS0bMwt5gk5OCvQ6YXP/k21PPT ywawQ77XS3hzj7tTxc2KZfbZmbCLzknSVzuF5zwF48QGsICSQkeWvuk1wZQI5AzxOyk/ WtC+EuJQre8sLqrjFIeYSc/hERqASoGH3EUAnipZqXDW9RRjMMiJMsA3TIrbp3DRM4ec qFlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=qCb8N16G; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n22si4298298ioo.36.2021.09.22.16.49.11; Wed, 22 Sep 2021 16:49:26 -0700 (PDT) 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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=qCb8N16G; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238591AbhIVXtN (ORCPT + 99 others); Wed, 22 Sep 2021 19:49:13 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:33080 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238537AbhIVXtE (ORCPT ); Wed, 22 Sep 2021 19:49:04 -0400 Received: from Monstersaurus.local (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 806F5E52; Thu, 23 Sep 2021 01:47:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1632354452; bh=ZydzftsYaAUgiQ3QnGiZrwolWAwMZMRyP23CyfGYQ0Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qCb8N16G31AUa7SUEzEMTSwOe1h4j5/M77mkGHMpYwQzbc/m8NdmvPaVrMOGxHpqv Sn+YCziqlGyv4DWynKVKaX5Jr1Y5Su321uhkBT1C9/AURFO4ailgrhnqdQbb9NfWpd Bz6E1JVlIlKYWKz6ocEQjONpU/ZwsNoEpySiYtTo= From: Kieran Bingham To: linux-renesas-soc@vger.kernel.org, Laurent Pinchart Cc: Kieran Bingham , Kieran Bingham , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org (open list:DRM DRIVERS FOR RENESAS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v3 4/6] drm: rcar-du: Fix DIDSR field name Date: Thu, 23 Sep 2021 00:47:24 +0100 Message-Id: <20210922234726.3337265-5-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210922234726.3337265-1-kieran.bingham@ideasonboard.com> References: <20210922234726.3337265-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The DIDSR fields named LDCS were incorrectly defined as LCDS. Both the Gen2 and Gen3 documentation refer to the fields as the "LVDS Dot Clock Select". Correct the definitions. Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham --- v2: - New patch v3: - Collect tag drivers/gpu/drm/rcar-du/rcar_du_group.c | 4 ++-- drivers/gpu/drm/rcar-du/rcar_du_regs.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/rcar-du/rcar_du_group.c b/drivers/gpu/drm/rcar-du/rcar_du_group.c index 88a783ceb3e9..a984eef265d2 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_group.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_group.c @@ -122,10 +122,10 @@ static void rcar_du_group_setup_didsr(struct rcar_du_group *rgrp) didsr = DIDSR_CODE; for (i = 0; i < num_crtcs; ++i, ++rcrtc) { if (rcdu->info->lvds_clk_mask & BIT(rcrtc->index)) - didsr |= DIDSR_LCDS_LVDS0(i) + didsr |= DIDSR_LDCS_LVDS0(i) | DIDSR_PDCS_CLK(i, 0); else - didsr |= DIDSR_LCDS_DCLKIN(i) + didsr |= DIDSR_LDCS_DCLKIN(i) | DIDSR_PDCS_CLK(i, 0); } diff --git a/drivers/gpu/drm/rcar-du/rcar_du_regs.h b/drivers/gpu/drm/rcar-du/rcar_du_regs.h index fb9964949368..fb7c467aa484 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_regs.h +++ b/drivers/gpu/drm/rcar-du/rcar_du_regs.h @@ -257,10 +257,10 @@ #define DIDSR 0x20028 #define DIDSR_CODE (0x7790 << 16) -#define DIDSR_LCDS_DCLKIN(n) (0 << (8 + (n) * 2)) -#define DIDSR_LCDS_LVDS0(n) (2 << (8 + (n) * 2)) -#define DIDSR_LCDS_LVDS1(n) (3 << (8 + (n) * 2)) -#define DIDSR_LCDS_MASK(n) (3 << (8 + (n) * 2)) +#define DIDSR_LDCS_DCLKIN(n) (0 << (8 + (n) * 2)) +#define DIDSR_LDCS_LVDS0(n) (2 << (8 + (n) * 2)) +#define DIDSR_LDCS_LVDS1(n) (3 << (8 + (n) * 2)) +#define DIDSR_LDCS_MASK(n) (3 << (8 + (n) * 2)) #define DIDSR_PDCS_CLK(n, clk) (clk << ((n) * 2)) #define DIDSR_PDCS_MASK(n) (3 << ((n) * 2)) -- 2.30.2