Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp888618pxb; Fri, 22 Apr 2022 13:30:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJEXDLRZaq2dyk6yUxYuSpOlx21Y3eyjD5B//UcJO6+9j/hfXOmt2TeMV63KVQRKhTqnLf X-Received: by 2002:a17:903:2c7:b0:158:2f26:6016 with SMTP id s7-20020a17090302c700b001582f266016mr6249436plk.154.1650659445348; Fri, 22 Apr 2022 13:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650659445; cv=none; d=google.com; s=arc-20160816; b=n9WvpSBVGXO5s/uJw+/tiRj/3jOSbpzJlSpquz8k9KNTWwGdJXWbbpkJwuG10m2M2p CLODMVfDY3tH3KvMvuZNFLcCKBWzvqLmj0R3dc/q/FSkAUQ6CZKD27asVDgRnRc8fVoB m5WOgVm8BJIefdH8CaKS8N5Eenp0F8Bw2HjDFKfHflAgbYKTuiv9MQeBxnBJNr26uv4a FNVbV3Z2uRBaWKy+PQ54duEr0CGEoTWJL6pap3lUE6f0S85aJnMW/G0aO5fBdhrate6+ GiEruCBl84elR/IqmDZYeL0HGZ+Jr2rR88jKKpfXwtF0Zp96E585MoMkWLb7hZ0mRVqv Nmmw== 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=zXfqWdJ/GLvoUjS9UlqMERMZ6c4eq4qtAdP5ouoRFc4=; b=Eg3LeI0gfkr9NjyDBPHRMijp3VozxjU/vQhUR6+NGtKZ9lvFJmao3NYfMVFI7in2KT 6ULZrDIvKzVW08kU8gnC4O8FhS9dPSF7ohJ/sO6x3t8+Roayjocr4ILu+DN+6bMxhmzj u24HG78ckh003rmpbNMiVEGD3RU0MZpib7naJ0nMXFyi8ejxvL5FACHqd26H6PsqI1K0 ELQ3edzIMRlpt4oZ14C6vaXIf33rwjELD3DQpCh6hXHqNSGja8kb+sa0BuIVcIvKzuQP ltdOUm+XdO/MnMFAYnvegscKl3pBI/7VwLVp8G3W4UlfJZzQ3gmgwlyfC0cYbPAo8vHa SNeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yIL5pQgj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z6-20020a1709027e8600b0015b2e9ae552si4488793pla.276.2022.04.22.13.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:30:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yIL5pQgj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 BCEAF1B9EE0; Fri, 22 Apr 2022 12:17:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382856AbiDVORM (ORCPT + 99 others); Fri, 22 Apr 2022 10:17:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1448537AbiDVORB (ORCPT ); Fri, 22 Apr 2022 10:17:01 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C9575AA56 for ; Fri, 22 Apr 2022 07:13:58 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id s17so11108292plg.9 for ; Fri, 22 Apr 2022 07:13: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=zXfqWdJ/GLvoUjS9UlqMERMZ6c4eq4qtAdP5ouoRFc4=; b=yIL5pQgjVaJ1DFw/YwfK1UT/MWPCZp6d/YcNkK4HhELe/z4lnFdIq7Fl3CX3OwML/u zgEFZi9dezIwX82IHBOHOCczRcHGp77leR3ZNiGwFBJ1hYaJ/WECNZI9zi7UTNR9qRlO fNk0poWubxKn+BH+FNcvz1oqYx1V4R0VEM3+UVEhLgqRRWWrlLrBzk/3okzTSKxW1Mxs kALuYQ3cSA63urCDTDVQeebyfVxkXnTCmHeV/Pcnon7I6SrOotxDXeTYdDjFN0c+4K36 DcatoPPpF9Ix9ID3GgeAdSPV66Mk77nQvlOOTYw5vo+4L4sekwajdyLFb4vCuE3pc0gx w3KA== 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=zXfqWdJ/GLvoUjS9UlqMERMZ6c4eq4qtAdP5ouoRFc4=; b=JsJZzZoM5BVz4tJZTU0+Iz1mWtfHBugjZSOD24eXlDXEu5sE++7giatyAgt8yn+5Up p6WI2ZArzdsYzMPhonFuL10mhszjGNFh8kZuMmJCn0r+kvt5h6FRdDgjhnZkEWYJPWNn hrF/KNFH5B51LeGqIDbi4r776vBhm25iTjWhXC5dMRt4HJADNpkgpPb+BMCOTEbw5I2q XqsxA/aSkEKYJAK9OoD8TnITliDaE/uxHSBmdADGtXzlX1Lzo6YhS5LSo5CGA1+AoUW2 SFPepE2xSlb+0VeZoaXF8UTuicj80m/jVLDPfEX/6S+BWaDIIiejkIcuii1OP2N0W+Ya 99yQ== X-Gm-Message-State: AOAM533tenfmvaia24YIrpnO+WosEOokPAXrcwZcMluje9TBBH7U26fH QIRV8+zG/4rV9ACi8YLSxEDRhDKPBx/x9c2rhr60Fg== X-Received: by 2002:a17:90a:6501:b0:1ca:a7df:695c with SMTP id i1-20020a17090a650100b001caa7df695cmr5673540pjj.152.1650636837577; Fri, 22 Apr 2022 07:13:57 -0700 (PDT) MIME-Version: 1.0 References: <20220422084720.959271-1-xji@analogixsemi.com> <20220422084720.959271-4-xji@analogixsemi.com> In-Reply-To: From: Robert Foss Date: Fri, 22 Apr 2022 16:13:46 +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 16:01, Robert Foss wrote: > > 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 Acked-by: Robert Foss