Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp672969ybn; Wed, 25 Sep 2019 06:07:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPnOvj021zCFZGJYSQ1Lgu3w7mWbCEL+i0FO8g8t08RBMJ5ASs5b/wRM3nAfbDfPbUAen7 X-Received: by 2002:a05:6402:a50:: with SMTP id bt16mr2751781edb.114.1569416859004; Wed, 25 Sep 2019 06:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569416858; cv=none; d=google.com; s=arc-20160816; b=awQIKozxmVtdT9eDTTPUj5HVTYnuJzdWrh/oB/0adqKBg2qzF5yhOJIob+Y8BmRksP /NuoqqW/AV8nHc/XOjhifRtSJOx195WTYvh+X5yaWgY8utQApEkW2cNIWITpV52/SCRQ kyem0QYGeIzRnAc5bUEFz6nNmTzrwpeo/55/nUMEkZa7deBswEhNmbrnJoUkL8eaOPOm G465ZANueFjuENjXfqdEPEJdK1IugoUmq5iAJubtKwvYXtwP/9JnHq+JtQrKG59gYRWk 1eB1Yn/Kv4i4xfesnH5pxJGOxCRvFzv6iS9yLQzgWMtciPmbRRnROdCHool+hKwOSNVR viEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=f/VyApd02cOSABrOzaRZSGGDnmgRagbHIwNT04ec+6Q=; b=pTzRVFntAj2As1Wv/v9yky0uJoZlUxk5L8WWV0fH6y2lkQeO6VSTuXBNM6keArwdM2 0MRtxkMPyrw6FmRBcRwAYq1EeBjldkgdccAMiKyx/jzZ5/Vozk+KODewsHOsety18Mz2 rGiZOOSZ7uex5TZsUDBd3cNzO6h2vpM1Q2xsgxhzAM854m+IUk90Zrd+TccJMUPjdt+s XO55lMyjxZYkarDHFD7vhrfxZJEQKudQh8KlB709HJ1dOigWE0DDyGJkAUOzgJVsJUTC NuPro8V/0AHLY5/jKuHfiDhgpAcsOBh8/KErVvjdBw/9ObDJfW1wzqes3kHJKai9y8Xc 41Dg== 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 k18si2496581ejo.145.2019.09.25.06.07.14; Wed, 25 Sep 2019 06:07:38 -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; 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 S2406210AbfIWMyE (ORCPT + 99 others); Mon, 23 Sep 2019 08:54:04 -0400 Received: from regular1.263xmail.com ([211.150.70.202]:46774 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391072AbfIWMyD (ORCPT ); Mon, 23 Sep 2019 08:54:03 -0400 Received: from hjc?rock-chips.com (unknown [192.168.167.236]) by regular1.263xmail.com (Postfix) with ESMTP id E6319270; Mon, 23 Sep 2019 20:54:01 +0800 (CST) X-263anti-spam: KSV:0;BIG:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ADDR-CHECKED4: 1 X-ABS-CHECKED: 1 X-SKE-CHECKED: 1 X-ANTISPAM-LEVEL: 2 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P17988T139868132738816S1569243231409431_; Mon, 23 Sep 2019 20:54:00 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <94fa76bf4e25606d40b21fd3065b7ab0> X-RL-SENDER: hjc@rock-chips.com X-SENDER: hjc@rock-chips.com X-LOGIN-NAME: hjc@rock-chips.com X-FST-TO: dri-devel@lists.freedesktop.org X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 From: Sandy Huang To: dri-devel@lists.freedesktop.org, Linus Walleij , David Airlie , Daniel Vetter Cc: hjc@rock-chips.com, linux-kernel@vger.kernel.org Subject: [PATCH 34/36] drm/tve200: use bpp instead of cpp for drm_format_info Date: Mon, 23 Sep 2019 20:53:48 +0800 Message-Id: <1569243230-183568-4-git-send-email-hjc@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1569243230-183568-1-git-send-email-hjc@rock-chips.com> References: <1569243230-183568-1-git-send-email-hjc@rock-chips.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cpp[BytePerPlane] can't describe the 10bit data format correctly, So we use bpp[BitPerPlane] to instead cpp. Signed-off-by: Sandy Huang --- drivers/gpu/drm/tve200/tve200_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tve200/tve200_display.c b/drivers/gpu/drm/tve200/tve200_display.c index d733bbc..915f3b1 100644 --- a/drivers/gpu/drm/tve200/tve200_display.c +++ b/drivers/gpu/drm/tve200/tve200_display.c @@ -101,7 +101,7 @@ static int tve200_display_check(struct drm_simple_display_pipe *pipe, * There's no pitch register, the mode's hdisplay * controls this. */ - if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0]) { + if (fb->pitches[0] != mode->hdisplay * fb->format->bpp[0] / 8) { DRM_DEBUG_KMS("can't handle pitches\n"); return -EINVAL; } -- 2.7.4