Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3794977rdb; Sun, 10 Dec 2023 23:02:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhZC9XMvmYxQAM8HBAtM36Y8qNH9hB9MiAQ3I0kSPB8Z3RLaIxLVpCjvA5ByXIVndsMw57 X-Received: by 2002:a05:6e02:17ca:b0:35d:59a2:bc0 with SMTP id z10-20020a056e0217ca00b0035d59a20bc0mr2912165ilu.86.1702278159098; Sun, 10 Dec 2023 23:02:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702278159; cv=none; d=google.com; s=arc-20160816; b=HKwgM42aLXQwgdilWxv255/o3LpaLw558ZkSma95+J75t9YAgpypkRfbXRhbeprOxZ cQkjp05acjwpkREAYQvBPdHhZ3R+9lFEg/QXG90fchSgQYuftx+m2PC8OtDVmaTIyY/z bJP7C60CMvJdjAmU+dC6bxCjz+1pwbfggaZFq46fAii5Szy/fuNHHzfHMOfdV5/MgDiD F4wpuT+RXuGP8+Rk0XmUHUC4P5Hd5yrWpV0/8chWWVlN3x3oRF74rcDloi2/wPmiaT2y i4s8jdr0kx0C4+pY2EQH3nmkgYSPydLN34mHIuZTt502OoJdYT1PhTw/pSPRAJ8AzWaT 3k+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:from:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date; bh=Nz6zV+O/ILOV3ZX0foLYP9YuRYWWN4gebv6oKDrSreM=; fh=g17TTV3IAh7upqWYUv7HGC34+Nx1v9H4Zz+OCPOH6/U=; b=BaRNYyY3ANaL3uWfP+V2j+x3xaO4SZSW0AE89TasvjsjTpRqdXeKsEhi9OzVgnJr0t V/IJmJB0rJrZlo7wg5h6zsqcjBSI843wjLsJeBRxqjlXAjiX3GEGlGtvfylMvkCU0VMp InYse0cgW77BAhyqF+dObMgEmZhw+q2LZZGnJG12c9Fo/mtOzw5STbFVb2kvP/RmiB4p 7FcGVxLW+VOxn+63fDOE2BCtsZQQPqRNeJOrHA/EciIDAez0l9LndQSitrD+HrrQG9OF npbZZHybEhnb4nNJ3/cnksqGuQy4sX2aTribZTu8sMqQLUdQthIV51HxhFDbRSjCRKKd /N+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u8-20020a63df08000000b005c5e2165e37si5734828pgg.125.2023.12.10.23.02.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Dec 2023 23:02:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0CAB2805ECFB; Sun, 10 Dec 2023 23:02:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233148AbjLKHC2 (ORCPT + 99 others); Mon, 11 Dec 2023 02:02:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjLKHC1 (ORCPT ); Mon, 11 Dec 2023 02:02:27 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CDD39B for ; Sun, 10 Dec 2023 23:02:34 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rCaJ9-0000gN-3W; Mon, 11 Dec 2023 08:02:27 +0100 Received: from [2a0a:edc0:2:b01:1d::c0] (helo=ptx.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rCaJ6-00F2lD-2c; Mon, 11 Dec 2023 08:02:24 +0100 Received: from sha by ptx.whiteo.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1rCaJ5-006Q6S-WA; Mon, 11 Dec 2023 08:02:24 +0100 Date: Mon, 11 Dec 2023 08:02:23 +0100 To: Andy Yan Cc: heiko@sntech.de, hjc@rock-chips.com, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, devicetree@vger.kernel.org, sebastian.reichel@collabora.com, kever.yang@rock-chips.com, chris.obbard@collabora.com, Andy Yan Subject: Re: [PATCH v4 13/17] drm/rockchip: vop2: rename VOP_FEATURE_OUTPUT_10BIT to VOP2_VP_FEATURE_OUTPUT_10BIT Message-ID: <20231211070223.GE1318922@pengutronix.de> References: <20231207075906.651771-1-andyshrk@163.com> <20231207080210.652594-1-andyshrk@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231207080210.652594-1-andyshrk@163.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) From: Sascha Hauer X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 10 Dec 2023 23:02:38 -0800 (PST) On Thu, Dec 07, 2023 at 04:02:10PM +0800, Andy Yan wrote: > From: Andy Yan > > VOP2 has multiple independent video ports with different > feature, so rename VOP_FEATURE_OUTPUT_10BIT to > VOP2_VP_FEATURE_OUTPUT_10BIT for more clearly meaning. > > Signed-off-by: Andy Yan > --- Reviewed-by: Sascha Hauer Sascha > > (no changes since v1) > > drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 2 +- > drivers/gpu/drm/rockchip/rockchip_drm_vop2.h | 2 +- > drivers/gpu/drm/rockchip/rockchip_vop2_reg.c | 8 ++++---- > 3 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c > index edca7723335f..2b996f1a25ad 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c > @@ -1995,7 +1995,7 @@ static void vop2_crtc_atomic_enable(struct drm_crtc *crtc, > return; > > if (vcstate->output_mode == ROCKCHIP_OUT_MODE_AAAA && > - !(vp_data->feature & VOP_FEATURE_OUTPUT_10BIT)) > + !(vp_data->feature & VOP2_VP_FEATURE_OUTPUT_10BIT)) > out_mode = ROCKCHIP_OUT_MODE_P888; > else > out_mode = vcstate->output_mode; > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h > index 2763e54350a9..615a16196aff 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h > @@ -11,7 +11,7 @@ > #include > #include "rockchip_drm_vop.h" > > -#define VOP_FEATURE_OUTPUT_10BIT BIT(0) > +#define VOP2_VP_FEATURE_OUTPUT_10BIT BIT(0) > > #define VOP2_FEATURE_HAS_SYS_GRF BIT(0) > #define VOP2_FEATURE_HAS_VO0_GRF BIT(1) > diff --git a/drivers/gpu/drm/rockchip/rockchip_vop2_reg.c b/drivers/gpu/drm/rockchip/rockchip_vop2_reg.c > index 275d265891db..48170694ac6b 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_vop2_reg.c > +++ b/drivers/gpu/drm/rockchip/rockchip_vop2_reg.c > @@ -136,7 +136,7 @@ static const uint64_t format_modifiers_afbc[] = { > static const struct vop2_video_port_data rk3568_vop_video_ports[] = { > { > .id = 0, > - .feature = VOP_FEATURE_OUTPUT_10BIT, > + .feature = VOP2_VP_FEATURE_OUTPUT_10BIT, > .gamma_lut_len = 1024, > .cubic_lut_len = 9 * 9 * 9, > .max_output = { 4096, 2304 }, > @@ -263,7 +263,7 @@ static const struct vop2_win_data rk3568_vop_win_data[] = { > static const struct vop2_video_port_data rk3588_vop_video_ports[] = { > { > .id = 0, > - .feature = VOP_FEATURE_OUTPUT_10BIT, > + .feature = VOP2_VP_FEATURE_OUTPUT_10BIT, > .gamma_lut_len = 1024, > .cubic_lut_len = 9 * 9 * 9, /* 9x9x9 */ > .max_output = { 4096, 2304 }, > @@ -272,7 +272,7 @@ static const struct vop2_video_port_data rk3588_vop_video_ports[] = { > .offset = 0xc00, > }, { > .id = 1, > - .feature = VOP_FEATURE_OUTPUT_10BIT, > + .feature = VOP2_VP_FEATURE_OUTPUT_10BIT, > .gamma_lut_len = 1024, > .cubic_lut_len = 729, /* 9x9x9 */ > .max_output = { 4096, 2304 }, > @@ -280,7 +280,7 @@ static const struct vop2_video_port_data rk3588_vop_video_ports[] = { > .offset = 0xd00, > }, { > .id = 2, > - .feature = VOP_FEATURE_OUTPUT_10BIT, > + .feature = VOP2_VP_FEATURE_OUTPUT_10BIT, > .gamma_lut_len = 1024, > .cubic_lut_len = 17 * 17 * 17, /* 17x17x17 */ > .max_output = { 4096, 2304 }, > -- > 2.34.1 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |