Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3215162imu; Sat, 24 Nov 2018 00:17:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/U5+OlZ/LOCZOZJ7p1kmpFRb5YjcE+HYHWZAeZDi+103qsPGpx/iAKKtuFQvQA+7x4apfQb X-Received: by 2002:a17:902:2c03:: with SMTP id m3mr19000728plb.125.1543047447666; Sat, 24 Nov 2018 00:17:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543047447; cv=none; d=google.com; s=arc-20160816; b=NJK7Y+TW5OUm8vn3MfMi7D8N2fJMFUNZSVf/is1R7Fmjb4j+OIIW4EXdjgymqt8J+o +nH1HhR1suxz6j/NyZvqJckkTb4wJsRvqLCLz1I/6hZXv6MJ+WgrDl8usDFTZ4hgEoSk G8bxTC97sVsyTx98nEbhpCyi7dhFJSKkC7XcfZlFJf9x/nzkRiODdvpz+Q8C2gMUWUNY ddN1si9lJuPMIBNDOoHOp5Ho8UpeCmc0GGJjeECa0+YXTDvneCV8nR6O7WQmqmKKFBep lO4E6fvm1bkyeWlwAUYIJJXo1FlUJr6XO3Be72bmvy1CWATxc7UpVz1Ow5ZAEKBSYXxB y+Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=RkSD0iJpXwXmRY/iEjGSdfRVhIb+/TSKvHoM9kwuWJg=; b=a3Lfvo5b1FwvyT1hXTpuiVxscs7yxizzFoaLBAyOXSP4Jx0ewQUjF4vJWEHh55u1cb KTYFbhB/o5EY7rtK+SHMfe7J4Qqog0wEaV/ZIdlSRqsXbzXjr5qFqNXUp9V4QEcP3zNE 81/qhg/pW47PyYW3RS28Ei/dJC+MaOBMCJLTRMK7niPWKNgybti8oXzY5dRmFh9/Kqdg hcsIJWHLNZgZLKCLFgQPKCNDSjvvqxdUII81amwfVaIXIiv4CKRNy6RCIEiw+rk2ATIC lIKpTOe029sPiY6F27Lldbne3M4x8YeUrv+dig1ykvFbz1HhBy5/HCZzzMQ+9QFbHl6I k4oA== 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 w5si33179560pfl.279.2018.11.24.00.17.13; Sat, 24 Nov 2018 00:17:27 -0800 (PST) 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 S2409053AbeKWUKh (ORCPT + 99 others); Fri, 23 Nov 2018 15:10:37 -0500 Received: from mail.bootlin.com ([62.4.15.54]:49508 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409032AbeKWUKh (ORCPT ); Fri, 23 Nov 2018 15:10:37 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 43C8E20F75; Fri, 23 Nov 2018 10:27:08 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost.localdomain (aaubervilliers-681-1-94-205.w90-88.abo.wanadoo.fr [90.88.35.205]) by mail.bootlin.com (Postfix) with ESMTPSA id 02AD220F7E; Fri, 23 Nov 2018 10:26:37 +0100 (CET) From: Paul Kocialkowski To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Cc: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Chen-Yu Tsai , Thomas Petazzoni , linux-sunxi@googlegroups.com, Daniel Vetter Subject: [PATCH v2 40/43] drm/sun4i: Set the coef_rdy bit right after the coef have been set Date: Fri, 23 Nov 2018 10:25:12 +0100 Message-Id: <20181123092515.2511-41-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181123092515.2511-1-paul.kocialkowski@bootlin.com> References: <20181123092515.2511-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard The COEF_RDY bit is used to tell the hardware that new FIR filters coefficients have been written to the registers and that the hardware should take them into account starting next frame. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/sun4i/sun4i_frontend.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_frontend.c b/drivers/gpu/drm/sun4i/sun4i_frontend.c index 368391a9e5fd..0e92f59efd49 100644 --- a/drivers/gpu/drm/sun4i/sun4i_frontend.c +++ b/drivers/gpu/drm/sun4i/sun4i_frontend.c @@ -95,6 +95,10 @@ static void sun4i_frontend_scaler_init(struct sun4i_frontend *frontend) sun4i_frontend_vert_coef[i]); } + regmap_write_bits(frontend->regs, + SUN4I_FRONTEND_FRM_CTRL_REG, + SUN4I_FRONTEND_FRM_CTRL_COEF_RDY, + SUN4I_FRONTEND_FRM_CTRL_COEF_RDY); } int sun4i_frontend_init(struct sun4i_frontend *frontend) -- 2.19.1