Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp60150lfe; Fri, 15 Apr 2022 19:29:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyM1bDcTVd0IijEShtB8M29g5buR1QC1XD4ZpekruPoNWd2wtNvYLU95dnCOOMIdyqqoOoT X-Received: by 2002:a05:6a00:8e:b0:506:1dce:2bd7 with SMTP id c14-20020a056a00008e00b005061dce2bd7mr1696323pfj.68.1650076179416; Fri, 15 Apr 2022 19:29:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650076179; cv=none; d=google.com; s=arc-20160816; b=rnBUHURC6fDBGqdNROQvgHi4XexX2GsxmLy8twDRDt0Jm1ftAksAIeyC3sKtr+Uq7f oY6IjouLS/Yn+GC3sc1KdObuvnc9+Sto84a6gPX8hI7raVfj72H4PKdvQCb1wAScjOtJ xClitYRA5PIWukSOUqn7vTnY5FNMV+dMHiD2K6vTAg6BlUWosyaJGDQiW8LaV0Motk59 46IK/zPXdZwWJKlQRY5+5Cb/hjinJaDX7Yn9OPRUfmjHlfpzCp9P72ZBxaQOm+AW5tTl 5pP5/fm5+iHZKfklByxTzMH/lKNj+JhN5ngGYRn0AHEyd+JLPx8bdmKHHHLR6RbVRfoE cJgA== 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=8LtMx+aT8592vzwS9tEry386EzHkD2NgozLudTXTuH0=; b=oQQNssAwv2iw2fsLrvLonK0zoAyk3cDQsMScIqMpRFd8YOYZxgBF95LgHbEa54vcPl eVVh5Yt7zHvtQJoG59QBCcbxNGI/Z50wsRtuKMOk72FPYxxNSOQAoivw5zfy/ML8o3ki RMwA8q83cQEFzvsLSUbou8HcGeucDb8JERuUW5vJGz4AUJAM3abW3ucfkKKol2m+j2jP yPNVrvifE4txdAsuE3FlfACaIBQ8DDBd7GWM2Ds2d2oePOQJsPNs0WBTvFcwtlFIHnVD LmmkMHkzT6Wua6CrO81NZiSxDtFfGLSx/8aTxKcrrG8+jidPgNO3Z4PCNahWsuzRHfAQ K4QA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u36-20020a634724000000b003a1c51d9e27si2921436pga.403.2022.04.15.19.29.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:29:39 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DA852127589; Fri, 15 Apr 2022 18:42:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240466AbiDNIFU (ORCPT + 99 others); Thu, 14 Apr 2022 04:05:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbiDNIFT (ORCPT ); Thu, 14 Apr 2022 04:05:19 -0400 X-Greylist: delayed 599 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 14 Apr 2022 01:02:54 PDT Received: from honk.sigxcpu.org (honk.sigxcpu.org [24.134.29.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAE054C43A; Thu, 14 Apr 2022 01:02:54 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 98739FB03; Thu, 14 Apr 2022 09:47:27 +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 1x8Uot4rq9Or; Thu, 14 Apr 2022 09:47:26 +0200 (CEST) Date: Thu, 14 Apr 2022 09:47:16 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Liu Ying Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, kishon@ti.com, vkoul@kernel.org, robh+dt@kernel.org, krzk+dt@kernel.org, andrzej.hajda@intel.com, narmstrong@baylibre.com, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@linux.ie, daniel@ffwll.ch, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, robert.chiras@nxp.com, martin.kepplinger@puri.sm, Andrzej Hajda , Jernej Skrabec Subject: Re: [PATCH v7 1/5] drm/bridge: nwl-dsi: Set PHY mode in nwl_dsi_mode_set() Message-ID: References: <20220414064858.405096-1-victor.liu@nxp.com> <20220414064858.405096-2-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: <20220414064858.405096-2-victor.liu@nxp.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Apr 14, 2022 at 02:48:54PM +0800, Liu Ying wrote: > The Northwest Logic MIPI DSI host controller embedded in i.MX8qxp > works with a Mixel MIPI DPHY + LVDS PHY combo to support either > a MIPI DSI display or a LVDS display. So, this patch calls > phy_set_mode() from nwl_dsi_mode_set() to set PHY mode to MIPI DPHY > explicitly. > > Cc: Guido G?nther > Cc: Robert Chiras > Cc: Martin Kepplinger > Cc: Andrzej Hajda > Cc: Neil Armstrong > Cc: Laurent Pinchart > Cc: Jonas Karlman > Cc: Jernej Skrabec > Cc: David Airlie > Cc: Daniel Vetter > Cc: NXP Linux Team > Signed-off-by: Liu Ying > --- > v6->v7: > * No change. > > v5->v6: > * Rebase the series upon v5.17-rc1. > * Set PHY mode in ->mode_set() instead of ->pre_enable() in the nwl-dsi > bridge driver due to the rebase. > * Drop Guido's R-b tag due to the rebase. > > v4->v5: > * No change. > > v3->v4: > * No change. > > v2->v3: > * No change. > > v1->v2: > * Add Guido's R-b tag. > > drivers/gpu/drm/bridge/nwl-dsi.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/gpu/drm/bridge/nwl-dsi.c b/drivers/gpu/drm/bridge/nwl-dsi.c > index d5945501a5ee..85bab7372af1 100644 > --- a/drivers/gpu/drm/bridge/nwl-dsi.c > +++ b/drivers/gpu/drm/bridge/nwl-dsi.c > @@ -666,6 +666,12 @@ static int nwl_dsi_mode_set(struct nwl_dsi *dsi) > return ret; > } > > + ret = phy_set_mode(dsi->phy, PHY_MODE_MIPI_DPHY); > + if (ret < 0) { > + DRM_DEV_ERROR(dev, "Failed to set DSI phy mode: %d\n", ret); > + goto uninit_phy; > + } > + > ret = phy_configure(dsi->phy, phy_cfg); > if (ret < 0) { > DRM_DEV_ERROR(dev, "Failed to configure DSI phy: %d\n", ret); > -- > 2.25.1 > Reviewed-by: Guido G?nther Cheers, -- Guido