Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp12080248ybi; Fri, 26 Jul 2019 04:28:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLQM884rJuPNdVUj4aYPH/YI0LE7xXxNWHjmXm8JGC7N5KRD0eHxXJbcAhWyFGNVdedcE8 X-Received: by 2002:a17:90a:d814:: with SMTP id a20mr97908951pjv.48.1564140516311; Fri, 26 Jul 2019 04:28:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564140516; cv=none; d=google.com; s=arc-20160816; b=vRseIpFSwbqS7JPi4BE/IOnj8kepRo1Alwnrs7FbvYet8rvq6y1WxOuUvUSxsZ+Lo9 M7pJhmOlgH6AR842gxLPC3RctnVSnsAkmclFkEYfDEM/y0jt7MB7Nr/f9sdNg1b0le0I 5UWDIrapHDs/CgId6oWw0CRahvwm8lahupDd9LlOwVGP0lJCTTpw6cXHD8Nb4REG2Jat sTMym8s1a3KTZMrP7/pWjyVxW4pRvHCJcXz4egEBLeHOCJGXaCxFYwHvtxj/eidnuSkN /rUV5r0u4Bj8F9G+mJKSOOlCG7A07I7Z8QmH8DNXQ6W7DNK9Xyz8XIGIFq9Gdlb0Sr3O 7LKg== 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=EYDHF2viGAO7INulhQjnGn1wMlyhHlC54xWBdg+6oIw=; b=pIa+OevSLiUd04KHU0bC8UkLUajc+uNyDaYgudNySqt5JLKhRH2YnF0rxBabBZH0I+ g/nWPQUgKQ0jdBm3IX3MpJ3riC+Dq/6IBe6JbwD8R5MQC8gs2NcDkZ3nlRYf52Q1z3Rr Mz1yvRCdshMKoWFdYHXmL4Eo/68Ht74aJVXQTJRmJdiuzMkW0AUMnIsSlOJbdERtLrxU saWxDaQdAa7HldbDvLDv5oHWBmLIaQg5bt+n3JGvYsUYgvvxq7J1M5cUv8aR/wI/p/NH f2IplM0xwhjJ2C9sYsqJj3ADEByu16Hoe4VJckR0RinvyAfd5MBgeFN2b0RQvbY5ngR0 n7mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=Abl1Av9X; 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 33si45145653plv.153.2019.07.26.04.28.21; Fri, 26 Jul 2019 04:28:36 -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=Abl1Av9X; 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 S1726793AbfGZLAj (ORCPT + 99 others); Fri, 26 Jul 2019 07:00:39 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:51340 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbfGZLAi (ORCPT ); Fri, 26 Jul 2019 07:00:38 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 0FABA5C02B3; Fri, 26 Jul 2019 13:00:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1564138837; 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=EYDHF2viGAO7INulhQjnGn1wMlyhHlC54xWBdg+6oIw=; b=Abl1Av9XYNIGg7/KWzSis/iAAeoLSkkVbDapmS9iSmxuO/x9+keLZx4mhaq96DkqPNeAE1 Lg0y2TsF9fLpyY4ZCna4GxpQulihTPQ61oUSrDCCx06gBltqE5dOSXM04sqDOCi6Ses1+u MeuI7kqT2SLCl26GU59MynKLg9ZyZuM= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Fri, 26 Jul 2019 13:00:37 +0200 From: Stefan Agner To: =?UTF-8?Q?Guido_G=C3=BCnther?= Cc: Robert Chiras , Marek Vasut , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] drm/mxsfb: Read bus flags from bridge if present In-Reply-To: <9390060f65f94722cb13101d4835d9048037f7a0.1564134488.git.agx@sigxcpu.org> References: <9390060f65f94722cb13101d4835d9048037f7a0.1564134488.git.agx@sigxcpu.org> 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-07-26 11:49, Guido Günther wrote: > 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 Looks good to me. Reviewed-by: Stefan Agner That is similar to what I sent for the imx DRM driver: https://lkml.org/lkml/2018/9/12/913 I probably should follow up on that patchset. -- 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 e84bac3a541d..3b8eb3ac13b6 100644 > --- a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c > +++ b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c > @@ -215,7 +215,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; > > @@ -239,6 +239,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));