Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3030732rwb; Mon, 15 Aug 2022 16:29:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ueRTCkKniaPFMcIagOCy+6QSpYUi7lPU+qLokCl6gukWy3fyJfgpbdnfNZxdq1mTyIyRZ X-Received: by 2002:a05:6402:4303:b0:43d:94f5:8081 with SMTP id m3-20020a056402430300b0043d94f58081mr15887432edc.288.1660606196880; Mon, 15 Aug 2022 16:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660606196; cv=none; d=google.com; s=arc-20160816; b=KYz4Mefb1Vd03MVvE58E3tklWa+XOThjxswCIlFjHb9kWX80feF3/Q20L6kWLeqo7d PsWw+PDyobhIZUPg1VIAmE7ebt6DAOyGm9jnvRgriat2Cbs+nl/uCeEiWJ0piSjNGN0k 0Ks59XM+NMBXTM1oa5NX9FyPEWOmQZuHvs5/gjXj9IBJBtePyOmEU14Xe5UPWdy5tEbP ImzlL6ieZZf63eLnwR6xNR4W0KmijP1mDGQJgPX4ADiQT/vJiOzHs6AQ0+w2tsDoqlHC yPjMPSEPmJP0AQzmHEYDL1I8Iz0zK8+pZXpqi4KZayw2g5a1XmB3VixFGzHuW0RAgr9i fKog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7ACVCbZMz925g7QlXk5RE+LFp4W03Aey98jzfW1g6Wc=; b=tZyrJiLjy4fo2M0FRIzWB+6rou82I1fnUuzE/1hlEceXiddnDgMH2Pj1iME0JyVKHo 7S+5lxmBQZ6IidwWDufWw0PSZgjk5AMQd0OBJk9Aybtr1v66XFtECW1ktmxRkHaZDffe vmWu7tb/ohFiFgA+4egz+di51meNU59QtQ17ijgR0l9NToKKV/rPWe4GxSEGOWnFIx7L 9TKzebmSWfV6x52M/QOtUJoi/EZo5ltwI3x6DbKPmzNlRfwC/mdaPTRxCYIwj4OiTTUQ V/ykCUTkI/GBhrFSj7xgsGpj+G3/K5NInPP4phaYXHzpgH5UEUwQf7S4cuytDueR6s0X N5fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oI06dbog; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a056402254e00b00441e527a6ccsi10060944edb.281.2022.08.15.16.29.17; Mon, 15 Aug 2022 16:29:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oI06dbog; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344960AbiHOXU4 (ORCPT + 99 others); Mon, 15 Aug 2022 19:20:56 -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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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/bridge/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, 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) -- 2.35.1