Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1540903ybk; Sat, 16 May 2020 14:54:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0LaGw1GbkItdQ5mwO6r1YWPYVJWb+74Afqpcx3GX6a8UMaWmGkEamgkmfa6h5cg03mZ8U X-Received: by 2002:a17:906:8748:: with SMTP id hj8mr9165762ejb.335.1589666055408; Sat, 16 May 2020 14:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589666055; cv=none; d=google.com; s=arc-20160816; b=vZGa/9zmjDnN+t9ha8ca9cp8cT9JBuKf/HPiRgSapWQiFauJRJl3P++HCcY/og/grc C3k8F8vAfGfs6G4FwOxTKaS5SCH/F31xRn9Bv0f/VPPHz+or/NJA3cr77q/c/WDVjlRT +ap1d9dZ38UuejoJ9XfSoAcUPTx+vj4rgt1zXkvq9/MiNevcieK49yj+TqrZr8+sDXP7 pucrB2L8wFiRBmysjsswAHoisMOI+cHREQXyjDwsr+dl1BK4c3MEiTLq35yce+VmLxWD nNJi3n9620SAWRSEN53Wd09b6KDtF1SC3fhRSG9//Lqt9y2bVw7aA2DTIjx7rmj5e2hD 6oJA== 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 :dkim-signature; bh=DZ3mFeVx2083BRizDxURnQKM6dH9xQ+CWBzj61Y2Hu0=; b=xDcAKLtxxwytLDL2mHl6myQo2k0mPS3W3aLbrto+nT63KyWvdriBhuY5jNGU+asIyy Aiqx2hIb/fKH8bX55Lu0kP+OuXL4J152KNc0JNgJzJFmAs5kb92y9rTsJGXaA4b7lYvW jnSTPsyi+3B7eM8yDT71qR0On0Kc6Lkch2HDvlBQI3UzF9ZFF1AjcpJEY1n9FEaXaEls Vi1bp9hrSh2lS635ayQjPbMno9GoUO9dl/IPst3qeCInBIMtMYWdnfOWboxnP/BKSeBE PeG7NvzBqytAGUlRw6lQXO7blFBIz7zhVSf6QITFDcn+dmOxLL/Nz2tWIsMpHYFSZxJW 09FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=vbzCiBCH; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m11si1783126ejq.18.2020.05.16.14.53.53; Sat, 16 May 2020 14:54:15 -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=fail header.i=@crapouillou.net header.s=mail header.b=vbzCiBCH; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726984AbgEPVv5 (ORCPT + 99 others); Sat, 16 May 2020 17:51:57 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:46958 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726660AbgEPVv4 (ORCPT ); Sat, 16 May 2020 17:51:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1589665875; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DZ3mFeVx2083BRizDxURnQKM6dH9xQ+CWBzj61Y2Hu0=; b=vbzCiBCHi2wej+JngAjvf72avQu2zmvEjGXRV4S8rZwzj3OiHwLirhPDrZIV79X7E1Etru sPbnhTEeclFFCBfsq/swJjUAlrYLxrvQXiU1IkUutFN0w+8tDl4FZPYpUOAfgRhIQe0A6y KFq2HVbrV0grSPM8QP0+bxJVklxVTTI= From: Paul Cercueil To: David Airlie , Daniel Vetter , Rob Herring , Greg Kroah-Hartman , "Rafael J . Wysocki" Cc: od@zcrc.me, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH 07/12] gpu/drm: ingenic: Set DMA descriptor chain address in probe Date: Sat, 16 May 2020 23:50:52 +0200 Message-Id: <20200516215057.392609-7-paul@crapouillou.net> In-Reply-To: <20200516215057.392609-1-paul@crapouillou.net> References: <20200516215057.392609-1-paul@crapouillou.net> 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 The address of the DMA descriptor never changes. It can therefore be set in the probe function. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/ingenic/ingenic-drm.c b/drivers/gpu/drm/ingenic/ingenic-drm.c index 3207105755c9..e43318938e9e 100644 --- a/drivers/gpu/drm/ingenic/ingenic-drm.c +++ b/drivers/gpu/drm/ingenic/ingenic-drm.c @@ -358,8 +358,6 @@ static void ingenic_drm_crtc_atomic_flush(struct drm_crtc *crtc, ingenic_drm_crtc_update_ctrl(priv, finfo); clk_set_rate(priv->pix_clk, state->adjusted_mode.clock * 1000); - - regmap_write(priv->map, JZ_REG_LCD_DA0, priv->dma_hwdesc->next); } if (event) { @@ -768,6 +766,9 @@ static int ingenic_drm_probe(struct platform_device *pdev) } } + /* Set address of our DMA descriptor chain */ + regmap_write(priv->map, JZ_REG_LCD_DA0, priv->dma_hwdesc_phys); + ret = drm_dev_register(drm, 0); if (ret) { dev_err(dev, "Failed to register DRM driver"); -- 2.26.2