From nobody Mon Sep 29 21:12:45 2025 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 4173DC25B08 for ; Mon, 15 Aug 2022 23:22:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345168AbiHOXU5 (ORCPT ); Mon, 15 Aug 2022 19:20:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353456AbiHOXQe (ORCPT ); Mon, 15 Aug 2022 19:16:34 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AAD37CB7E; Mon, 15 Aug 2022 13:03:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 9E75BCE12C5; Mon, 15 Aug 2022 20:03:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94A8BC433C1; Mon, 15 Aug 2022 20:03:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593796; bh=BUqfmJppzrrDjgVL8ArtUJH4QAhxvWr+02ifyMxp61o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oI06dbogt1cmK4XcxyCGzNXwLxqsfm66f+OdeW14rhF0s4raAAqjwHMmFxOd0O82v 9Gj64LwhnctNGoCG4iAdTXhuona2THX71Eu0gPC9pL/FRyRhUCjnfYHIE3Be/QCiaf OLSop5zIzRRUr9lZJcmLrw8aC4yF4hItjhzISZqE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xin Ji , Chen-Yu Tsai , Robert Foss , Sasha Levin Subject: [PATCH 5.19 0309/1157] drm/bridge: anx7625: Use DPI bus type Date: Mon, 15 Aug 2022 19:54:25 +0200 Message-Id: <20220815180452.024856616@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Xin Ji [ Upstream commit a77c2af0994e24ee36c7ffb6dc852770bdf06fb1 ] As V4L2_FWNODE_BUS_TYPE_PARALLEL not properly descript for DPI interface, this patch use new defined V4L2_FWNODE_BUS_TYPE_DPI for it. Fixes: fd0310b6fe7d ("drm/bridge: anx7625: add MIPI DPI input feature") Signed-off-by: Xin Ji Tested-by: Chen-Yu Tsai Acked-by: Robert Foss Reviewed-by: Robert Foss Signed-off-by: Robert Foss Link: https://patchwork.freedesktop.org/patch/msgid/20220422084720.959271-4= -xji@analogixsemi.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/bridge/analogix/anx7625.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/br= idge/analogix/anx7625.c index 53a5da6c49dd..01f46d9189c1 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.c +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -1623,14 +1623,14 @@ static int anx7625_parse_dt(struct device *dev, =20 anx7625_get_swing_setting(dev, pdata); =20 - pdata->is_dpi =3D 1; /* default dpi mode */ + pdata->is_dpi =3D 0; /* default dsi mode */ pdata->mipi_host_node =3D of_graph_get_remote_node(np, 0, 0); if (!pdata->mipi_host_node) { DRM_DEV_ERROR(dev, "fail to get internal panel.\n"); return -ENODEV; } =20 - bus_type =3D V4L2_FWNODE_BUS_TYPE_PARALLEL; + bus_type =3D 0; mipi_lanes =3D MAX_LANES_SUPPORT; ep0 =3D of_graph_get_endpoint_by_regs(np, 0, 0); if (ep0) { @@ -1640,8 +1640,8 @@ static int anx7625_parse_dt(struct device *dev, mipi_lanes =3D of_property_count_u32_elems(ep0, "data-lanes"); } =20 - if (bus_type =3D=3D V4L2_FWNODE_BUS_TYPE_PARALLEL) /* bus type is Paralle= l(DSI) */ - pdata->is_dpi =3D 0; + if (bus_type =3D=3D V4L2_FWNODE_BUS_TYPE_DPI) /* bus type is DPI */ + pdata->is_dpi =3D 1; =20 pdata->mipi_lanes =3D mipi_lanes; if (pdata->mipi_lanes > MAX_LANES_SUPPORT || pdata->mipi_lanes <=3D 0) --=20 2.35.1