Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E034C25B4E for ; Tue, 24 Jan 2023 14:49:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235060AbjAXOtK (ORCPT ); Tue, 24 Jan 2023 09:49:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234997AbjAXOsi (ORCPT ); Tue, 24 Jan 2023 09:48:38 -0500 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4188645BFD; Tue, 24 Jan 2023 06:48:35 -0800 (PST) Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id DAD2E8563B; Tue, 24 Jan 2023 15:48:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1674571713; bh=Y5gd2EDZ3Kk/gz4KuqyqTDq9f2L0geBvWTECbmKRxN0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=VuZHofmifGRfHdEG7Cdxz2Mu0ebPR7yzH4o9dCwFx27waZvyKcKpiQXSllJeBJH2Z ammntn4sLK8BdzUnAsfiGa6Zhe3IPqqu0qSleVMA3vwe2aWVn7EYCeT6eCHu4lx0/t oKSb68hlsCr20gfOc83UwatA4QWY3NYKbAWWVHcLnhM2rnF/gs4TMi3HE05ReDGWSY lMkzVrI+Gv4hPSfmiIlvmX2cUbi3DUW9Qftk+yaL6UFiL2w8qmXvbl5zorAe5AXW8U k4x+DHSkFtd3dmtPLovLfoji+XbbElt8Z5eR+e2YLIOh47GbMZmOqD1OGmTMib/CjG uRVXjw6Z2Rwjg== Message-ID: <25ff9e4d-0a9f-59fc-902a-5b68cf7200b9@denx.de> Date: Tue, 24 Jan 2023 15:47:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH 2/2] drm: lcdif: Add i.MX93 LCDIF support Content-Language: en-US To: Alexander Stein , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Liu Ying Cc: s.hauer@pengutronix.de, robh+dt@kernel.org, linux-imx@nxp.com, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, kernel@pengutronix.de References: <20230123072358.1060670-1-victor.liu@nxp.com> <7ac57bc28da40df054c81fd74f69207af66ad97b.camel@nxp.com> <13189854.uLZWGnKmhe@steina-w> From: Marek Vasut In-Reply-To: <13189854.uLZWGnKmhe@steina-w> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/24/23 12:15, Alexander Stein wrote: > Hi, Hi, > Am Dienstag, 24. Januar 2023, 08:59:39 CET schrieb Liu Ying: >> On Mon, 2023-01-23 at 16:57 +0100, Marek Vasut wrote: >>> On 1/23/23 08:23, Liu Ying wrote: >>>> The LCDIF embedded in i.MX93 SoC is essentially the same to those >>>> in i.MX8mp SoC. However, i.MX93 LCDIF may connect with MIPI DSI >>>> controller through LCDIF cross line pattern(controlled by mediamix >>>> blk-ctrl) or connect with LVDS display bridge(LDB) directly or a >>>> parallel display(also through mediamix blk-ctrl), so add multiple >>>> encoders(with DRM_MODE_ENCODER_NONE encoder type) support in the >>>> LCDIF DRM driver and find a bridge to attach the relevant encoder's >>>> chain when needed. While at it, derive lcdif_crtc_state structure >>>> from drm_crtc_state structure to introduce bus_format and bus_flags >>>> states so that the next downstream bridges may use consistent bus >>>> format and bus flags. >>> >>> Would it be possible to split this patch into preparatory clean up >>> and >>> i.MX93 addition ? It seems like the patch is doing two things >>> according >>> to the commit message. >> >> IMHO, all the patch does is for i.MX93 addition, not for clean up. >> Note that the single LCDIF embedded in i.MX93 SoC may connect with MIPI >> DSI/LVDS/parallel related bridges to drive triple displays >> _simultaneously_ in theory, while the three LCDIF instances embedded in >> i.MX8mp SoC connect with MIPI DSI/LVDS/HDMI displays respectively(one >> LCDIF maps to one display). The multiple encoders addition and the new >> checks for consistent bus format and bus flags are only for i.MX93 >> LCDIF, not for i.MX8mp LCDIF. Also, I think the multiple encoders >> addition and the new checks should be done together - if the new checks >> come first, then the new checks do not make sense(no multiple displays >> driven by LCDIF); > > You are right on this one, but on the other hand there are lot of preparing > patches already. Even if it is useless by itself, having the bus format & flag > checks in a separate patch, it is easier to review, IMHO. I agree on the ease of review. [...]