Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5199353ybp; Mon, 14 Oct 2019 17:29:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPk+rzKa8vXWF5moHeXnSBA74VNiKvICwENJzvf/dQQ+c1Tasafvks2tIQdRoHsaD/r16d X-Received: by 2002:a17:906:d964:: with SMTP id rp4mr30710977ejb.147.1571099354367; Mon, 14 Oct 2019 17:29:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571099354; cv=none; d=google.com; s=arc-20160816; b=PEKC2SP0jGoFmmC6vREFvuOMnkfVZfWIZJv0jDzkI2aZ1PYgwesuof56gIsmRu04iC cLr88CCUK9AesrM/6+/Y6VVTaqhjc3qrbhIGDjG4zluh8oupALQVR3L+Rw9Aov5A4wTy vqZTHaZ+IJp4Hz7spqXy/4I9byr6UEF5Y7OfyikBLPUboM+qzH68YsI1egwCG+sWt2l2 4QTtcnrZEYr3HND9Szob9bPFB2Dj6zxGzoMzReTgwYwsZ7AMwr/PLFzO8XvJW/yCmf+n af3esR3SA+h9FBmALsHj9bSWWTDA3vClnC+VZe9C3uOcuL515jG2a/k8VSKV6EXDorYK 7x3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=ifyjUFLJ9uzTTzrkMj72r74yQo5VoUndfopoOcl3f6Y=; b=JewxaBF1GK79dxSuPQZiQlja5nsUvEFsIVbKmn2rhd2pcMRaQ+gQleW8wlIehbBqZD zdrs+tmSMuXTxCPRn6/2DniTR6cyucKgwb89w7Hkq3viSb9HzZFrQ9ZK/JM5e/ZboQdc uXssJk/VRfUXxCWoMTkIPndsvN3x1iLX2R0j6XkF0C1H5nIupTAjQ8lFG7Hxwsmc08tP UCytp1aEXuHVx858oQ7Am+7WYrz0F+VDlIG63MwuF9sKxB6RdD93qBLRRGGeQ+5J2QUf VjrgH7I2B9yRclvl+/vyzhzlg/zMsTW1XgEyatXl5p9bf/a65MbqVgxot4MgINuyMUw6 TCVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=ayl3bydt; 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 v17si13937725eda.256.2019.10.14.17.28.51; Mon, 14 Oct 2019 17:29:14 -0700 (PDT) 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; dkim=pass header.i=@agner.ch header.s=dkim header.b=ayl3bydt; 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 S1732899AbfJNUYz (ORCPT + 99 others); Mon, 14 Oct 2019 16:24:55 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:59780 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729667AbfJNUYz (ORCPT ); Mon, 14 Oct 2019 16:24:55 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id E5B6D5C1173; Mon, 14 Oct 2019 22:24:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1571084693; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ifyjUFLJ9uzTTzrkMj72r74yQo5VoUndfopoOcl3f6Y=; b=ayl3bydti//Ft78EF77JKVgVud3aqxfZUVRuMvkxxAa1IFoCp3dkRn5NwJLsQZZPle7h6C 5Vt2j+sm4oPWLuS2/XFt4lLAG1myi+QvLayxT8TgtM5RRNelA1XOmaMc7tHIfQT/1WYTlt 4YpAItIPKcBliTO2mLv6ikb7eM8fheY= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Mon, 14 Oct 2019 22:24:51 +0200 From: Stefan Agner To: Robert Chiras Cc: =?UTF-8?Q?Guido_G=C3=BCnther?= , Marek Vasut , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Fabio Estevam , Pengutronix Kernel Team , NXP Linux Team , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 02/14] drm/mxsfb: Read bus flags from bridge if present In-Reply-To: <1567078215-31601-3-git-send-email-robert.chiras@nxp.com> References: <1567078215-31601-1-git-send-email-robert.chiras@nxp.com> <1567078215-31601-3-git-send-email-robert.chiras@nxp.com> Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-08-29 13:30, Robert Chiras wrote: > From: Guido Günther > > The bridge might have special requirmentes on the input bus. This > is e.g. used by the imx-nwl bridge. > > Signed-off-by: Guido Günther > Reviewed-by: Stefan Agner Applied to the drm-misc-next branch. I decided to apply those two since they are independent from the rest. You can drop them in the next spin of the rest. -- Stefan > --- > drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c > b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c > index de09b93..b69ace8 100644 > --- a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c > +++ b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c > @@ -209,7 +209,7 @@ static void mxsfb_crtc_mode_set_nofb(struct > mxsfb_drm_private *mxsfb) > { > struct drm_device *drm = mxsfb->pipe.crtc.dev; > struct drm_display_mode *m = &mxsfb->pipe.crtc.state->adjusted_mode; > - const u32 bus_flags = mxsfb->connector->display_info.bus_flags; > + u32 bus_flags = mxsfb->connector->display_info.bus_flags; > u32 vdctrl0, vsync_pulse_len, hsync_pulse_len; > int err; > > @@ -233,6 +233,9 @@ static void mxsfb_crtc_mode_set_nofb(struct > mxsfb_drm_private *mxsfb) > > clk_set_rate(mxsfb->clk, m->crtc_clock * 1000); > > + if (mxsfb->bridge && mxsfb->bridge->timings) > + bus_flags = mxsfb->bridge->timings->input_bus_flags; > + > DRM_DEV_DEBUG_DRIVER(drm->dev, "Pixel clock: %dkHz (actual: %dkHz)\n", > m->crtc_clock, > (int)(clk_get_rate(mxsfb->clk) / 1000));