From patchwork Sun Jan 31 12:50:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12058325 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96C70C433DB for ; Mon, 1 Feb 2021 08:11:08 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2EFFD64E24 for ; Mon, 1 Feb 2021 08:11:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2EFFD64E24 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 035076E432; Mon, 1 Feb 2021 08:11:07 +0000 (UTC) Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by gabe.freedesktop.org (Postfix) with ESMTPS id 673F76E165 for ; Sun, 31 Jan 2021 12:50:25 +0000 (UTC) Received: by mail-ej1-x633.google.com with SMTP id p20so591306ejb.6 for ; Sun, 31 Jan 2021 04:50:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=eHyxcdRkq1cYMti9nVUicUhH69aVVf5LQFGWJ0sd/ls=; b=lnj5kA0/kXNleiS2dTLwg9KK/txJOAaYmpDc/vU1TcrwjlZNBiyI3Hq+rEmmXS/iSf /Ydg9TW/k4H6HLxZANFnANadjXqaoJX7uWTLl/4e4OZyMO5woc5E+fwDQtPiFFs+lLno 020mUWdn5g3nETAzG/jRKn/hhei3fwx5s4zvEOseSlsRsKUMGY1o4EMmUqgNu6eG0ZG/ ygEVc1IKJzNuBw0HJLROF5huPz5pceZoQxMIwi9bDtmNYNrbt1Uqa52Z7EOSbLRqrtR0 W3lItFYMhULm9dPnIu8D+jjbtCuhlavYaBQH5tD/UlRJFX0rAxS4MyjtEeeQ+c35OI5g 4QYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=eHyxcdRkq1cYMti9nVUicUhH69aVVf5LQFGWJ0sd/ls=; b=Fzh3wwOOurrlYlRsNGlsRshvM9Ikon5fRlwo9jZ7NUvgWTJUIHZdkHuW0mxZ9TO2ih jONiQRL8+mUS5t7JUsdks7r1Jfu7KUbMUh4Q6d12hC+5Q0DNq+/ku95n2QF8st+Yqe/z iaem06pCFRdofH6gBBrTQ8S7rM4NzYefv2OK7VrQ7atoS1/p2Gkn4eiiS6hmva26YGXR ooFdghw0z2MHeCneOEiWO5HyyzanbUZ6r7UHFyUe1z4cYAjj9Zl0s5fqgfUvP1iE7Q+m A8wtOoEXXa5GuvfnsjYBQuTka5BCxJb+f4Hj6pTJFLcC8Dj7lNVQSkbFQh5zNrVY+Bjr mdWQ== X-Gm-Message-State: AOAM532RSZ2TtFlDxrRSMbaqdto1Tu1AoDLRZyqU77YrdI4fbABfdG5/ bHEDud1FAwbMkWQh4x4gmGDBhH5BqTg= X-Google-Smtp-Source: ABdhPJzwvktPNgAiUqWHn6Vhx5flBjZAJHGe74jXpTZzOk80auNUnuuIRMzLHiftM9290UwaUG+snw== X-Received: by 2002:a17:906:2e0d:: with SMTP id n13mr12820275eji.554.1612097423877; Sun, 31 Jan 2021 04:50:23 -0800 (PST) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id j18sm1317753edj.36.2021.01.31.04.50.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Jan 2021 04:50:23 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Subject: [PATCH] drm/rockchip: vop_reg: add PX30 version info Date: Sun, 31 Jan 2021 13:50:16 +0100 Message-Id: <20210131125016.10837-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 X-Mailman-Approved-At: Mon, 01 Feb 2021 08:11:06 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: airlied@linux.ie, hjc@rock-chips.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To reduce memory various Rockchip VOP versions share common reg structures. However more recent added SoCs not always have to same futures as the old ones. Add PX30 missing version info, so all VOP version checks work correct if needed in the future. Signed-off-by: Johan Jonker --- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c b/drivers/gpu/drm/rockchip/rockchip_vop_reg.c index 80053d91a..0697057e7 100644 --- a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c +++ b/drivers/gpu/drm/rockchip/rockchip_vop_reg.c @@ -312,6 +312,7 @@ static const struct vop_win_data px30_vop_big_win_data[] = { }; static const struct vop_data px30_vop_big = { + .version = VOP_VERSION(2, 6), .intr = &px30_intr, .feature = VOP_FEATURE_INTERNAL_RGB, .common = &px30_common, @@ -327,6 +328,7 @@ static const struct vop_win_data px30_vop_lit_win_data[] = { }; static const struct vop_data px30_vop_lit = { + .version = VOP_VERSION(2, 5), .intr = &px30_intr, .feature = VOP_FEATURE_INTERNAL_RGB, .common = &px30_common,