From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43D43C7618B for ; Fri, 26 Jul 2019 10:08:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1BADD229F9 for ; Fri, 26 Jul 2019 10:08:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bxj3Xn2u" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1BADD229F9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RudApuFE/WRbkiBfNMtfk8L8RjVvRCi4Ngbj56ePfuM=; b=bxj3Xn2uVqdsg9 K2WJza/53QwRDYaC3n2WiGZ9H4WKSEsZppqDKUluOnKaJIc5W0WbrBnhhKF/gygmn8WtdbTM0oswx Vs4FIDu1upXI16xknsgYz/8XrIQPEmPdcCckMCSIlY8mbUhvLPxi5jsqONZ/Fru6Srug89TYv3gG/ Brq2kRZLBIY2SPa7NslnfDLdxtFoUGtS1NzzLjGSieq6EOvEfVqhHCnCJgRDCXh5cxJJDiqYeVvDg XuCdlyV5C+AHXJhWVs0BndETRUsO0H1vY8hvqDWJC803bUpHsX6KMXccaXo3VAZMr/QGoVCzyjq7N oEzPYvj/rlrQsUd0ml+A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hqx9I-000575-HI; Fri, 26 Jul 2019 10:08:28 +0000 Received: from asavdk3.altibox.net ([109.247.116.14]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hqx9E-000562-9u for linux-arm-kernel@lists.infradead.org; Fri, 26 Jul 2019 10:08:26 +0000 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 3739C20038; Fri, 26 Jul 2019 12:08:19 +0200 (CEST) Date: Fri, 26 Jul 2019 12:08:17 +0200 From: Sam Ravnborg To: Guido =?iso-8859-1?Q?G=FCnther?= Subject: Re: [PATCH 3/3] drm/bridge: Add NWL MIPI DSI host controller support Message-ID: <20190726100817.GB9754@ravnborg.org> References: <3158f4f8c97c21f98c394e5631d74bc60d796522.1563983037.git.agx@sigxcpu.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <3158f4f8c97c21f98c394e5631d74bc60d796522.1563983037.git.agx@sigxcpu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=dqr19Wo4 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=8nJEP1OIZ-IA:10 a=aMlwc4_KtA_XG01HkD8A:9 a=wPNLvfGTeEIA:10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190726_030824_688278_C860DD58 X-CRM114-Status: GOOD ( 22.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Jernej Skrabec , Pengutronix Kernel Team , Neil Armstrong , David Airlie , Fabio Estevam , Sascha Hauer , Jonas Karlman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Andrzej Hajda , Rob Herring , NXP Linux Team , Daniel Vetter , Robert Chiras , Lee Jones , Shawn Guo , linux-arm-kernel@lists.infradead.org, Laurent Pinchart Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Guido. Following some trivial comments. As for the overall design I already commented on that in the binding. (bridge versus display controller) That it can work on top of mxsfb is a good indication that it is a bridge but I just do not see the full picture. In general the code looked clean and neat. On Wed, Jul 24, 2019 at 05:52:26PM +0200, Guido G=FCnther wrote: > This adds initial support for the NWL MIPI DSI Host controller found on > i.MX8 SoCs. > = > It adds support for the i.MX8MQ but the same IP can be found on > e.g. the i.MX8QXP. > = > It has been tested on the Librem 5 devkit using mxsfb. Looking at mxsfb I wonder hw this was done, as there seems to be no bridge support in mxsfb. Using a patched version of mxsfb? > diff --git a/drivers/gpu/drm/bridge/Makefile b/drivers/gpu/drm/bridge/Mak= efile > index 4934fcf5a6f8..904a9eb3a20a 100644 > --- a/drivers/gpu/drm/bridge/Makefile > +++ b/drivers/gpu/drm/bridge/Makefile > @@ -16,4 +16,5 @@ obj-$(CONFIG_DRM_ANALOGIX_DP) +=3D analogix/ > obj-$(CONFIG_DRM_I2C_ADV7511) +=3D adv7511/ > obj-$(CONFIG_DRM_TI_SN65DSI86) +=3D ti-sn65dsi86.o > obj-$(CONFIG_DRM_TI_TFP410) +=3D ti-tfp410.o > +obj-y +=3D imx-nwl/ obj-$(ONFIG_DRM_IMX_NWL_DSI) +=3D imx-nwl/? So we do not visit the directory unless required. > --- /dev/null > +++ b/drivers/gpu/drm/bridge/imx-nwl/Makefile > @@ -0,0 +1,2 @@ > +imx-nwl-objs :=3D nwl-drv.o nwl-dsi.o The preferred syntax is imx-nwl-y :=3D nwl-drv.o nwl-dsi.o See for example Makefile for mxsfb. Consider to introduce header-test-y +=3D nwl-drv.h nwl-dsi.h So we at build time check that the headers are self-contained. (they include what they need). > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include