Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp375920pxj; Fri, 28 May 2021 06:08:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0TD1xUQSNa7lgCNW+FPqVAj7R42K3khhSLM9KdQHNthFqSUCubtWCVS9K4V0ROBT2NDgg X-Received: by 2002:a05:6638:dd2:: with SMTP id m18mr8809643jaj.40.1622207328703; Fri, 28 May 2021 06:08:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622207328; cv=none; d=google.com; s=arc-20160816; b=rdun4R0nEihPy0ysJDn+cBaUVvpM6ujAt90dl3cQ5mjzhcA5+Kd4G92pa7j3kYbPVJ Sm4tozW+58+FR2lnXklBHSd3hCEagsbZLpDZBe9O81Wuz0CayA66OyPgjoW07qQuZuKS HiOwPdfobZENkrY/2h/yA9IoWtVivWnGq++gQuwjdUvaSNZl4aTajAScBgq0RdEikbCE V76ciliqSUwHc7oj/G1Q64cIKPVr3eukWyZ9bN+dYUAvlfqF0nj7ZRtxDaqzpY1lJxNh vtCrUN8wsif+J5csIPc9lpsWSb5sOaziR0VXMfm1K6px08nsOwPpAkwt0gd6zLzQVsR5 /OsA== 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=hXF0Ts56dwHAndcdIXFBR1E/2W75Wukvn1BbkoOuP3s=; b=G688oDkpZ74kIS1ZeEa+n8PnS7WT9spDqQPOevnaLsFXI/dE/mrIjhWeR39vvbu3go 0wudFqpD6ZYv9q00ZHtGt/d2ychK5o6PIiz04KAW39d5Po5F0vSxyhm7bhQCvt9N8HBx 08INjz7jsP6K6Gv38E6kng+qTHPWep7EJ3Mmm8rxWVuY5kSWFcplZYVv0U7DK6WGTpU8 4s3aRK6igXzcKX1depziVImdutj2ki2//Dy7ABLUEGtXrtgzhhNLVd/GpSp+iyCRAGtz ahDkJC+aosAa4qkHt1eCBYE9I3i6I3MTpvzMhAAiAn7PSb2KX6hfJJ+z4xzaYgydDZwf 2uGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GIzRpEPP; 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 b18si5898450ile.24.2021.05.28.06.08.35; Fri, 28 May 2021 06:08:48 -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 header.i=@gmail.com header.s=20161025 header.b=GIzRpEPP; 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 S236318AbhE1NI0 (ORCPT + 99 others); Fri, 28 May 2021 09:08:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236068AbhE1NHz (ORCPT ); Fri, 28 May 2021 09:07:55 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5675C06138A for ; Fri, 28 May 2021 06:06:19 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id lz27so5189855ejb.11 for ; Fri, 28 May 2021 06:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hXF0Ts56dwHAndcdIXFBR1E/2W75Wukvn1BbkoOuP3s=; b=GIzRpEPP+mEiI+M7ckcQ/slkmUTYqGmhOGTej6PmDuhSzka2kqH41IB1DFJenbMi1c 08ibSUvl0mnhV5YWffgTXeQY/b0mHGuEu9whZc1J8WyOhUjtY2A53tENr4RfRImNGeOq 2yL9aS0/uLvlnXr360MhMjytDsjv2kx3XiDZyE0BbjV8SfSGEei9HI7z6TzuDZjdPFz9 QaHGCreUCG2Ux1fw/Rw9V3FnaHFjh2tXXm4HpAX+lyYSiwqwbby+gKK0vbxl4YYkW8+2 k0HLuqj+NOf746VAW2+sOEsWj2t7Udi/sgeFq1XS3ZMQQSsQtb64NL7bpGRV9vzQ5ZTq 0kNw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=hXF0Ts56dwHAndcdIXFBR1E/2W75Wukvn1BbkoOuP3s=; b=bBDfUxTYHdR/4EZV60YRJYov3ey4rFV8N8+4zJk095cccvLBO6VFr/fRgrQX6DytJP 1QIV+nyS9lFzxIeck2+iaRFerN4lILkbS6w/pJRtJw7uW1IGryaAihuTzjHsHLnzrACZ IiphiPfzZiGf6EnmC2gjlnbLsbA/GHMJZUUnrceNScBxfUI+le70XgPiSQTcJnCbiQZb 6iGJNrpSEXaLJp6dnosEIaSsp2XR25Cluwjind9boLAH3o5BYnJARuJuAVNWdWyfNQyA EZXef33j4DmJW8ciV/I8cEBqUgu5j9NzQKHHGD7MQJqxIy24vVHKcV3w/VzX6TdlDWMZ VwbQ== X-Gm-Message-State: AOAM531TwI9zXaGt4pghr1qLsHXnElj328IEtCR2HvUNO/qhUp7OXLcg CNK0gRZyBS+0faA0vHrM+g== X-Received: by 2002:a17:906:1796:: with SMTP id t22mr3529966eje.304.1622207178511; Fri, 28 May 2021 06:06:18 -0700 (PDT) Received: from localhost.localdomain (ip4d17b4b8.dynamic.kabel-deutschland.de. [77.23.180.184]) by smtp.googlemail.com with ESMTPSA id u21sm2322778ejg.50.2021.05.28.06.06.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 06:06:17 -0700 (PDT) From: Alex Bee To: Sandy Huang , Heiko Stuebner , Paul Kocialkowski , dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org Cc: David Airlie , Daniel Vetter , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH v3 5/5] drm: rockchip: set alpha_en to 0 if it is not used Date: Fri, 28 May 2021 15:05:54 +0200 Message-Id: <20210528130554.72191-6-knaerzche@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210528130554.72191-1-knaerzche@gmail.com> References: <20210528130554.72191-1-knaerzche@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org alpha_en should be set to 0 if it is not used, i.e. to disable alpha blending if it was enabled before and should be disabled now. Fixes: 2aae8ed1f390 ("drm/rockchip: Add per-pixel alpha support for the PX30 VOP") Signed-off-by: Alex Bee --- Changes in v2: - capitalize "F" of "Fixes" in the commit message drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 64469439ddf2..f5b9028a16a3 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -1022,6 +1022,7 @@ static void vop_plane_atomic_update(struct drm_plane *plane, VOP_WIN_SET(vop, win, alpha_en, 1); } else { VOP_WIN_SET(vop, win, src_alpha_ctl, SRC_ALPHA_EN(0)); + VOP_WIN_SET(vop, win, alpha_en, 0); } VOP_WIN_SET(vop, win, enable, 1); -- 2.27.0