Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3438969imu; Wed, 7 Nov 2018 10:19:14 -0800 (PST) X-Google-Smtp-Source: AJdET5dkIdBOjti/rSXL74evEC/ROprsKlxX5/jtbpd0rBq8Vi2RU3olMr2vOaRaKke3HQWenDLZ X-Received: by 2002:a62:4b8c:: with SMTP id d12-v6mr1266917pfj.38.1541614754746; Wed, 07 Nov 2018 10:19:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541614754; cv=none; d=google.com; s=arc-20160816; b=SnIavzXnl40wRyTjgm3a7JsWAkyxRV+vuJztBgdDq8nWv+6JMYPJPAYMrFqdfRkq9B ZfT0/AJlp7BAetrzX5UOvA/WT3RlNrzcaMEzgxhETtDTCfEvAGtcCIg484nSPuf2kKwt z403lf6Wg4HAMl39T1egXf5mxXSKJx39fwpAn+ru9nF36GlN3gdHptTOerQ4sS/paACR s2HIlh7Gp+qrIwasKmNHDKgPYAA+by1x+dXOMuXshArxhdnwNf39WUAnhf/9+Aes9cJA a7SiN3QdxWPNYzS1xRYpXmX32DgPF5NpsuUEmbqVLj48HwI4n7mVipRe8vpkX1lgUDKf /iAQ== 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=7NncYOAIuKCepIjiIqyMgh+jpIlw8XeYrhYo1BTLOwg=; b=n7CAY4e842z7rslKEPwt0c2pdYBDshvazl9IyoEMNZcH7MUzXnV8Xnq0HJPV0IrmpG 7/zTZ6hrmY0yvI/j5pQcvD+sSAeIrpkFClQVEqgk5SAwdCzxCcXzKzyua4Dd6HDTMj+R xg1foi6oLJUmnucYzQVJjLI8iyp4qTHWJ9UxvnrW4smdjFrGG9R8ol9KqYRqJCAGmnPI npZn5cMM0wS1vPi8OZMllErrbRx38iTskpB5smBF+fD0/SYSTXSTNt1cEAc87FCs+w11 UNtnsVmHmoH1ZK2Y9ytgX/fLae/D5wlPUlGNx/Up451LgNpQ1mPrjn/pPI0tskHArDHl g7ng== 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 v19-v6si1290235pfn.26.2018.11.07.10.18.59; Wed, 07 Nov 2018 10:19:14 -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 S1727939AbeKHDuE (ORCPT + 99 others); Wed, 7 Nov 2018 22:50:04 -0500 Received: from leonov.paulk.fr ([185.233.101.22]:48854 "EHLO leonov.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726363AbeKHDuE (ORCPT ); Wed, 7 Nov 2018 22:50:04 -0500 Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id D9534BFE1D; Wed, 7 Nov 2018 19:18:29 +0100 (CET) Received: by gagarine.paulk.fr (Postfix, from userid 114) id 097C2C1077; Wed, 7 Nov 2018 19:18:29 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on gagarine.paulk.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 Received: from localhost.localdomain (collins [192.168.1.129]) by gagarine.paulk.fr (Postfix) with ESMTP id BE084C1065; Wed, 7 Nov 2018 19:17:56 +0100 (CET) From: Paul Kocialkowski To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Thierry Reding , David Airlie , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , linux-sunxi@googlegroups.com, Mark Van den Borre , Gerry Demaret , Luc Verhaegen , Paul Kocialkowski Subject: [PATCH v3 1/8] drm/sun4i: tcon: Pass encoder to RGB setup function Date: Wed, 7 Nov 2018 19:18:36 +0100 Message-Id: <20181107181843.27628-2-contact@paulk.fr> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181107181843.27628-1-contact@paulk.fr> References: <20181107181843.27628-1-contact@paulk.fr> 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 Passing the encoder to the TCON RGB setup functions allows accessing the connector from the encoder directly instead of relying on the panel. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c index f949287d926c..5e1f762fc3db 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c @@ -478,6 +478,7 @@ static void sun4i_tcon0_mode_set_lvds(struct sun4i_tcon *tcon, } static void sun4i_tcon0_mode_set_rgb(struct sun4i_tcon *tcon, + const struct drm_encoder *encoder, const struct drm_display_mode *mode) { unsigned int bp, hsync, vsync; @@ -684,7 +685,7 @@ void sun4i_tcon_mode_set(struct sun4i_tcon *tcon, sun4i_tcon0_mode_set_lvds(tcon, encoder, mode); break; case DRM_MODE_ENCODER_NONE: - sun4i_tcon0_mode_set_rgb(tcon, mode); + sun4i_tcon0_mode_set_rgb(tcon, encoder, mode); sun4i_tcon_set_mux(tcon, 0, encoder); break; case DRM_MODE_ENCODER_TVDAC: -- 2.19.1