From patchwork Mon May 23 16:15:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Foss X-Patchwork-Id: 575530 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 0EACAC433EF for ; Mon, 23 May 2022 16:15:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238436AbiEWQPa (ORCPT ); Mon, 23 May 2022 12:15:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238433AbiEWQP3 (ORCPT ); Mon, 23 May 2022 12:15:29 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F39965408 for ; Mon, 23 May 2022 09:15:28 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id wh22so29748227ejb.7 for ; Mon, 23 May 2022 09:15:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tGFnUfATheJcgd6cmDQVYlu9gLXYWRlr8k9P4s/DGYQ=; b=IKmHlc9/5WgvRfW91RixgfNPoqkOopUkLPRDZC6vJFj6T8bRRMmUi83qO2Tal4kN8j lDryajBcl60SVsBNNyNhxreZojGw9vRQykC4IU/uZ9D3SUu5xtRDao+JxQJ6TWl+4jPt aeejXEYDstEVn2kDjbPhtOd/jlcUWAfQN1TooyyiC9pXAB58biywh7WDVneKyXdzvVFP rubJY+qyrF7bjbLXQleiO4LphrbkiecCrhNhT9Dhx7tLPQuwTjCWT8yIuB7NSd03iARA nS1ohli+xGxpE4P1OyGe2eQwohkRF3rF3NAV0UqOez+IawIUAl6PFkkSOgqLhm3fasDj hvCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tGFnUfATheJcgd6cmDQVYlu9gLXYWRlr8k9P4s/DGYQ=; b=7NnhwRZ9A7vLCR69C9XtnnFs+RHjFjS6ik8gOtLw6iadbo0nrwfVBX56LkB2AoyI4W /PZUZCykG07Q0FA4m11Q/yOeL3fT/KsE0CZuLOeICqHnsbHykIOLajzO/JkZ26BQ7jDV acgavNFLauQpN2AhkkdkQ0x6hD2hq6UjKybEj6IfgiEqLN4hVKPhlOsHCSVTyYEh70ib tP3Om8yqjWl3CvyFmyg927HED8DwC0wsAQIvoBfeAf03Ths9ok3egOVA7ldfgZ3YgM3u K0drq8o2thlRy7Mk+zgctPl+iiVP2tarjZ3ZMu0kPdH33TysWN0YazNzZr8NVgNLXc9d agvQ== X-Gm-Message-State: AOAM532qpzrOfz3yvSTvNysPDECL/tlusud1GovvP8Q+RcBdk/pJJ2Oc WzqzMOUuS8tjTsi73YsbxHuQlg== X-Google-Smtp-Source: ABdhPJxKHQ4KaT+LrQ1BMBe4p/nRE/TYR99LwxI7ls1LX1ia2lhZ2Nz6mIM6eBSkHUl/ZyncTSHaTw== X-Received: by 2002:a17:907:6d93:b0:6fe:cf1c:cdab with SMTP id sb19-20020a1709076d9300b006fecf1ccdabmr6745653ejc.609.1653322526576; Mon, 23 May 2022 09:15:26 -0700 (PDT) Received: from prec5560.lan ([2001:bf7:830:a7fa:f33e:a35d:7618:8a44]) by smtp.gmail.com with ESMTPSA id i11-20020a170906264b00b006feed212f50sm950591ejc.184.2022.05.23.09.15.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 09:15:25 -0700 (PDT) From: Robert Foss To: 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, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, xji@analogixsemi.com, hsinyi@chromium.org, sam@ravnborg.org, maxime@cerno.tech, tzimmermann@suse.de, jose.exposito89@gmail.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Daniel Vetter Subject: [PATCH v2 1/2] Revert "drm/bridge: anx7625: Use DPI bus type" Date: Mon, 23 May 2022 18:15:19 +0200 Message-Id: <20220523161520.354687-1-robert.foss@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This reverts commit a77c2af0994e24ee36c7ffb6dc852770bdf06fb1. This patch depends on the patches just aplied to the media tree, and will not build without them, which leaves drm-misc-next in a broken state. Let's revert the two latter patches until rc1 has been branched, and rc1 has been backmerged into drm-misc-next. Signed-off-by: Robert Foss Acked-by: Daniel Vetter --- 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/bridge/analogix/anx7625.c index 0fab2aa47c67..e92eb4a40745 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, anx7625_get_swing_setting(dev, pdata); - pdata->is_dpi = 0; /* default dsi mode */ + pdata->is_dpi = 1; /* default dpi mode */ pdata->mipi_host_node = 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; } - bus_type = 0; + bus_type = V4L2_FWNODE_BUS_TYPE_PARALLEL; mipi_lanes = MAX_LANES_SUPPORT; ep0 = of_graph_get_endpoint_by_regs(np, 0, 0); if (ep0) { @@ -1641,8 +1641,8 @@ static int anx7625_parse_dt(struct device *dev, of_node_put(ep0); } - if (bus_type == V4L2_FWNODE_BUS_TYPE_DPI) /* bus type is DPI */ - pdata->is_dpi = 1; + if (bus_type == V4L2_FWNODE_BUS_TYPE_PARALLEL) /* bus type is Parallel(DSI) */ + pdata->is_dpi = 0; pdata->mipi_lanes = mipi_lanes; if (pdata->mipi_lanes > MAX_LANES_SUPPORT || pdata->mipi_lanes <= 0)