Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3157943pxb; Sun, 31 Jan 2021 06:14:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzf+po3ozupswj0731w7YessmlTw7Zj8dSg4sdEsg5LwdqDiTXjCJAM1szxjXIw40HUG/AB X-Received: by 2002:aa7:cdcc:: with SMTP id h12mr14355077edw.380.1612102493836; Sun, 31 Jan 2021 06:14:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612102493; cv=none; d=google.com; s=arc-20160816; b=nGXqbPX8XD5WQokYwhh9vyRjTZeqn43FGLErCtwlUUiFl9JMa0q12pB/Cxqys3pQVo YLWkXrlCY68nabiJpNAflZK2AC1qqV/nzdeRSVqNeC2BXA2hte8ti61bPkEnyiEWuS0S tEAVPD63vpzcMN187X5F45K5Fpg2b+6IRYDPS089atmsKY5/NSGk9ILssxyGwOwhA5jf hDCca4rvjSjbssBvpcO1+hl/XrWEghuWfLL5UBB5EqEAtrZ0u/8BbxY0oRv6p+BGu2DG cESoR4nxumzD70OfGyeuTAWDGLKobD+CMRSJReQPm9pfUp7+q0sdZe2GzL0eqQwW92Mq LsDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=eHyxcdRkq1cYMti9nVUicUhH69aVVf5LQFGWJ0sd/ls=; b=uRzn/E84gD9gYz9krSEQYYF8AbmgcrMwvB58vPVnY1irVy8yyVAA4cANW8EwkxKhAh fnzs2MAs4Q1/2fQX6ht0N0mp9VaMrsyPqnSgSs2MwcYTX4N5mamRL2A3aQFCSWVXOBTm pk3ynBNgeCXcfUxSPenzPtJuzDGQZhN6qDmONglRaFT0tCGYWvZR5lLBYPVjquiJtv0K PHjapY0AlmToFQHizHBX2TCeSrI82sDw+a2G39YjATbcr+kLnfnTKnx74uAca4C0/B6z 6pf9vNnGzVEN05OIp25NxwI1ngtxVdORtnpsFVlZCs6qLz5ZIIUTPzA5SZlnpOxCoIsL MEIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="lnj5kA0/"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by2si8672867edb.143.2021.01.31.06.14.29; Sun, 31 Jan 2021 06:14:53 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="lnj5kA0/"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230198AbhAaOLm (ORCPT + 99 others); Sun, 31 Jan 2021 09:11:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232130AbhAaMvF (ORCPT ); Sun, 31 Jan 2021 07:51:05 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15698C061573 for ; Sun, 31 Jan 2021 04:50:25 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id hs11so19957452ejc.1 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=tmUcmBKB47EG/fI5+USrSBkjlrxIh8erXdfVBNoTv8jVP8jVt4QZLWEq7+LOJ13rBY ufKTngo7obtJ5hR0ZKw9nMBvW702zv8vMpmyIwb7pAbN1iUIzfFGEB5YmBrNmJJdp7Lg iPAGWfYG2hvQ2lM19yEnLlg71+uG/aScJn6m2g+pq+o1oEJJC7RRIAI3mUQgPvF+DaO8 lI/BiawSimf+44UdTV+hzQvZNh/8QSuycN94ua5pTdG1cog2nVcmVQz0zlWxtKjPwWUB nDIfTGrf/yjCdRrzSZGYMZIWL7Jo1jFaCCrnn9GKpfEIwLmhHoUkOMfWAi0eBGZPSikQ vI5w== X-Gm-Message-State: AOAM532Cz+cDOd4CHbvToMD2C7Tw25Sihzq6CCDmWPqdc7rulunoEGLG Gye6V/6J1p6PJWVsimI2igw= 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 Cc: hjc@rock-chips.com, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, -- 2.11.0