Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp746327pxb; Fri, 22 Apr 2022 10:16:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjYyQpSsx79PamocdfAhv3CsrQ1nqJHr/S0Pnlafo3ZKAPWln8dj+s0etAsWErdOs2B8uE X-Received: by 2002:a05:6a00:ad0:b0:4e1:2d96:2ab0 with SMTP id c16-20020a056a000ad000b004e12d962ab0mr6105670pfl.3.1650647804584; Fri, 22 Apr 2022 10:16:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650647804; cv=none; d=google.com; s=arc-20160816; b=PG9DomBkbPGenm0f6tpqq1mYwWnEhqa21+/NwEzlpTkmFVFGkzO30tHqSKeo/Wjv1v hJdSh9buJSSRtcooP56aoyy6SCDAB38txUJQqaftRin0eddWM0Anyu8CYDhxchk192A4 Gn/L+SADw0rK3jnyhxPdqDkoKkL7/mAICOLoUnrhAcAXdi6oYwtdoz7lFG+13+FFbjz0 MxpcQd6yq0BUz3uuiNabZ6Z8xb2OdL2PVtdZZOhMhOFy65I4qFtfXpENbpHFWKXzPBYk 09E0Rmk/d0PN0eKOcEVlvD3pcDZeFzszbr7zKSrfbA23la7cW77gFxv0w/DtACcycqSg zTzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Chb15DVMiI2nGn5AZ2xaunn8HK8CS50zKGvASbJkZjg=; b=p5BdjzHlEQ17PaVTEGqvv3NdAGnNPBpgLi+8cKJJQtZln9uczUiKK3NoybVMi3mMs9 1P6Hnb4QsygXFI7QMA/uMcmTXDjPBRVRToJyVGTD/BX8rEqCcdgOtX4f7tZRZcN3jq1V SQb25h7LvDu/CcZZJWOVW30Kb3lu+OP7U0iwyf53/nunowmieodFBJY2xpeR3llF5kq0 REVYQlnB+QwC/5OS0N/HdVcULHKWCFepnBWAWg5qqdgzgYg20gdv1LnzkVlSKjrc/NOS k+sTkrWrPzpmjal27Tv1/7L8Qa+gtETIdjr1AIp4OdjvmEs3I+f9yIczh02QV//rnrUM Kygw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QatWE9vc; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j37-20020a634a65000000b003aa7a7ef0e3si7956133pgl.802.2022.04.22.10.16.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:16:44 -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; dkim=pass header.i=@linaro.org header.s=google header.b=QatWE9vc; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2CF67A94E7; Fri, 22 Apr 2022 10:14:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1448281AbiDVOEw (ORCPT + 99 others); Fri, 22 Apr 2022 10:04:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344513AbiDVOEv (ORCPT ); Fri, 22 Apr 2022 10:04:51 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE56E5A0AC for ; Fri, 22 Apr 2022 07:01:58 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id q3so11071206plg.3 for ; Fri, 22 Apr 2022 07:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Chb15DVMiI2nGn5AZ2xaunn8HK8CS50zKGvASbJkZjg=; b=QatWE9vcezju8KZl04JD7UfRVJ4Y7NOBD6/+Fdab+va2kyzFWhSohVlK06dqj0tqTQ +19nVVhwEG7HkHQOobNow0MogRGN1nGIsduZX12Mz1/QWkXK42qyq2wyqfaAwyu087W8 H5oWGD+vF72x/7kygDyGvloW9TZGJwqd3XMpughfAmjols2y9vU913bLVepHpIWye+O5 qlfOU+QGmLCJAtXHoDuyT/JoLl/2GsI1VFGjruoGHCFH4zAoy6KQSqBA5vuM6cMSPuse J+mcRdWWfL3Vb9B9LsnSnvO3mzM1OuM9OQJAMR98FVboKN2XN6WN6AUYp4h7cnIzP6om LzEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Chb15DVMiI2nGn5AZ2xaunn8HK8CS50zKGvASbJkZjg=; b=uad41LYG11B2r8dMbOv3O7yuju5b1rIm5BIi5xSTP9XXl2u5IlTgx1QdLMrgL4qSW0 3zXtrnrhIVCVDWiLH+NwSjBM/WvmYl6LfdeGxtxFUOvuX3lntcu0r084zQHW3MKMlsCr gnQhNSQcrb9a/x7u8QTUbIdyfnRp4Xrz9Xz5le2ySBJbO2A225OrKuhx0tVMiG/84Gov 1h1+RJt3fALGwE8ZojIGUPCXTctHEFsMFf2alNhN2R9Bo4/06Ode0zYLyHfGZgrSohEF 92sotRqeaiX/bhk3qLyi+KTfwjQMVCjCKHPQlFio+lPrCY4YBmZ5iWDKgil8ls5vBsfQ ilUA== X-Gm-Message-State: AOAM531dfRh9ZUW7r4/x3OnjGtwEdiW6SLitaU5xqOF1jiBFiTfGyDit s7pMghJH2ZxMeOgkelCbatk79av+SS6WG/AIb4L2PQ== X-Received: by 2002:a17:90b:3e84:b0:1d2:c015:2182 with SMTP id rj4-20020a17090b3e8400b001d2c0152182mr5548093pjb.232.1650636118195; Fri, 22 Apr 2022 07:01:58 -0700 (PDT) MIME-Version: 1.0 References: <20220422084720.959271-1-xji@analogixsemi.com> <20220422084720.959271-4-xji@analogixsemi.com> In-Reply-To: <20220422084720.959271-4-xji@analogixsemi.com> From: Robert Foss Date: Fri, 22 Apr 2022 16:01:47 +0200 Message-ID: Subject: Re: [PATCH v2 4/4] drm/bridge: anx7625: Use DPI bus type To: Xin Ji Cc: Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , bliang@analogixsemi.com, qwen@analogixsemi.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE 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 On Fri, 22 Apr 2022 at 10:49, Xin Ji wrote: > > 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 > --- > 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 376da01243a3..71df977e8f53 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 = 1; /* default dpi mode */ > + pdata->is_dpi = 0; /* default dsi 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 = V4L2_FWNODE_BUS_TYPE_PARALLEL; > + bus_type = 0; > mipi_lanes = MAX_LANES_SUPPORT; > ep0 = 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 = of_property_count_u32_elems(ep0, "data-lanes"); > } > > - if (bus_type == V4L2_FWNODE_BUS_TYPE_PARALLEL) /* bus type is Parallel(DSI) */ > - pdata->is_dpi = 0; > + if (bus_type == V4L2_FWNODE_BUS_TYPE_DPI) /* bus type is DPI */ > + pdata->is_dpi = 1; > > pdata->mipi_lanes = mipi_lanes; > if (pdata->mipi_lanes > MAX_LANES_SUPPORT || pdata->mipi_lanes <= 0) Reviewed-by: Robert Foss