Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp147108pxy; Fri, 30 Apr 2021 02:19:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAJOIOd5dD12neUDJ6/aZmstBzESpfNe1mUlUMuOCx5YCN5GsUF1kq6RNd2aVtqRA/oTkY X-Received: by 2002:a05:6402:514a:: with SMTP id n10mr4791196edd.25.1619774388974; Fri, 30 Apr 2021 02:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619774388; cv=none; d=google.com; s=arc-20160816; b=RdEc18KJjEuhMsjmhdPrOFmxmVXnfqVi271SXonkGbRSZJwliTMIbrcHznvq3ogcYL A3liTvyCdugpsCZLpK5yCr8re/3Dzbjj0odTv3RUu93luWPbnG9V6Ev3NvHDW0DAGYj5 hf5Bhj+t+5MV4dqvV0B7EAJg5fPbEEHcKILTQ2R5FQywj4VsqhGCCZ/ZzLh5/ZgBhp7z NV/KnzOYuFDM6UYdgZDqPs6n+GvBAVVyYAFNML6Wi8eTnEI2jLUTqw5EpTngSCfDRKZi /2qJXXP0Ms+zxlYsR5+pt9aho9INy+yg2kgbu6fs4dbRY9nt1AylZ04jhWoukqi0wvKV 2wyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=XUeYCe9E12UNLvWasLUvxSmeXx7nkp5bouMeKVQdXB0=; b=lCDQ3B+iyDCq63lnE291v0OPdk0D1sup+K6AyE73PUkKq7ZIMfjBGPC2RTHmZ91PdX FPFxAsGVUmOTXnS7RTTKSFku3p23zOeIxKqMCySWGd5LC0wKqMNDjgKaWN7RnUN//FW2 CndL+Pya5aR3Z/M+7WjAbPHTAM5N53sQ0amXuh76NV6z2S0gLYAd/nIlguWDdptia7Gp l3FEOQQErwHdtFZkNFrPT/2bAXSmfg6X8CJzdbTnR3leM2FvkX/nf1pDG1s0djM0rhJ7 S0Ve+RDKZ/WKkfuHoVhtw/hI6IRPmE8vkHVFxonruSCUhVUT1/Ac/Pws6AnFGRv69eST Ze+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay17si3117964ejb.496.2021.04.30.02.19.25; Fri, 30 Apr 2021 02:19:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231181AbhD3JSp (ORCPT + 99 others); Fri, 30 Apr 2021 05:18:45 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:52800 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbhD3JSp (ORCPT ); Fri, 30 Apr 2021 05:18:45 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 40E37FB03; Fri, 30 Apr 2021 11:17:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mNeG7bnrk71z; Fri, 30 Apr 2021 11:17:53 +0200 (CEST) Date: Fri, 30 Apr 2021 11:17:52 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Liu Ying Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, a.hajda@samsung.com, narmstrong@baylibre.com, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, airlied@linux.ie, daniel@ffwll.ch, robert.chiras@nxp.com, linux-imx@nxp.com Subject: Re: [PATCH v3 0/3] drm/bridge: nwl-dsi: Get MIPI DSI controller and PHY ready in ->mode_set() Message-ID: References: <1619170003-4817-1-git-send-email-victor.liu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1619170003-4817-1-git-send-email-victor.liu@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Liu, On Fri, Apr 23, 2021 at 05:26:40PM +0800, Liu Ying wrote: > Hi, > > This series aims to make the nwl-dsi bridge be able to connect with > more MIPI DSI panels. Some MIPI DSI panel drivers like 'raydium,rm68200' > send MIPI_DCS_SET_DISPLAY_ON commands in panel_funcs->prepare(), which > requires the MIPI DSI controller and PHY to be ready beforehand. > However, the existing nwl-dsi driver gets the MIPI DSI controller and > PHY ready in bridge_funcs->pre_enable(), which happens after the > panel_funcs->prepare(). So, this series shifts the bridge operation > ealier from bridge_funcs->pre_enable() to bridge_funcs->mode_set(). > > Patch 3/3 does the essential bridge operation shift. > > Patch 1/3 and 2/3 are split from the original single patch in v2 and > are needed by patch 3/3. This split-up helps clarify changes better. > The split-up is done in this way: > > 1) Patch 1/3 forces a full modeset when crtc_state->active is changed to > be true(which implies only connector's DPMS is brought out of "Off" > status, though not necessarily). This makes sure ->mode_set() and > ->atomic_disable() will be called in pairs. > 2) Patch 2/3 removes a check on unchanged HS clock rate from ->mode_set(), > to make sure MIPI DSI controller and PHY are brought up and taken down > in pairs. > 3) Patch 3/3 shifts the bridge operation as the last step. Looks good to me and tested on imx8mq Librem 5 Devkit with https://lore.kernel.org/linux-arm-kernel/cover.1617968250.git.agx@sigxcpu.org/ on top so Reviewed-by: Guido G?nther Tested-by: Guido G?nther Cheers, -- Guido > > > v2->v3: > * Split the single patch in v2 into 3 patches. (Neil) > > v1->v2: > * Fix a typo in commit message - s/unchange/unchanged/ > > > Liu Ying (3): > drm/bridge: nwl-dsi: Force a full modeset when crtc_state->active is > changed to be true > drm/bridge: nwl-dsi: Remove a check on unchanged HS clock rate from > ->mode_set() > drm/bridge: nwl-dsi: Get MIPI DSI controller and PHY ready in > ->mode_set() > > drivers/gpu/drm/bridge/nwl-dsi.c | 86 +++++++++++++++++--------------- > 1 file changed, 46 insertions(+), 40 deletions(-) > > -- > 2.25.1 >