Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3049146ybb; Sun, 12 Apr 2020 22:39:23 -0700 (PDT) X-Google-Smtp-Source: APiQypKak5qa37WQnKilQJsEKVjUjdwlXxSSMOkqLkfeH/JmL6gWw3zdCs+B6pZdxQv0UW8yVPZ9 X-Received: by 2002:a37:4e0a:: with SMTP id c10mr10552546qkb.242.1586756363538; Sun, 12 Apr 2020 22:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586756363; cv=none; d=google.com; s=arc-20160816; b=k/Q/dgmkoHaL5+GF/7x0YnhCeMN6fugKcN3R4IMxVeFhz1AgvkMux0RsEm4tMojKeH 7giRONcGuviGOPZEE+Ox0S7fpDL4LKI/JJjOsqwjE3VP/ev5EJwFWIyDppEHcaWuV4Z5 rNuMU0L+A2pXossPyd9arA9ORSWHDSI4jiCmKFAp8p/CHONAMkjUAMYj/RwXw1y63La5 PgPPX60PZFswjoGif1sy//0YLq25fenIhVCnvTgCbUoUQjiUF/B9xvwCxlGHLwYZmJIk Nzeey5AzY7pppaKEpyCMR7stveejdjVig8AL/JfT8WL9j2TD0GjpRMzIGCjJw+79Y4Vr 5X/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6e16XzTG1fdlTCAUCNoldSsaTgM71lNUw+qpGkgxuM8=; b=h7tMbSIRsB10BzcD1ACfxHtIVySZ5bK2CcIu/ZQgBwNkQIGbTg1p3FYzuGhKkp6kCP TaqnUl1fnapa2nk2bDpQLrVHbWvd3JJCsjudMyBMeZgdk/SYudkDmcWdmH9jWMQ1C3aq fkEPKmKLhd4dLFq+hiWMAWZdeA6dXuu+AFH7nbWs6ne+aV+iCLNJh1eCN/iUgzKZX/i1 dMcVn4R5ysdxxoiNBMiF8gCoRCXwsSzo8fO5qIPoWjRCHXYw9m+5Ma7X/Y7nlDT66Fix 9lVigehQf4LnpWf44dCOspE8GZO8Ghy/hNBQSf5fKqvQvHlJYxDNFIpjXlkFfLZLAbDZ 94Yg== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org ([209.132.180.67]) by mx.google.com with ESMTP id h26si5045787qtn.284.2020.04.12.22.39.08; Sun, 12 Apr 2020 22:39:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727979AbgDLTxH (ORCPT + 99 others); Sun, 12 Apr 2020 15:53:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.18]:57498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727315AbgDLTxG (ORCPT ); Sun, 12 Apr 2020 15:53:06 -0400 Received: from asavdk4.altibox.net (asavdk4.altibox.net [109.247.116.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E95D6C0A3BF0 for ; Sun, 12 Apr 2020 12:53:06 -0700 (PDT) Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 6E1E580475; Sun, 12 Apr 2020 21:53:00 +0200 (CEST) Date: Sun, 12 Apr 2020 21:52:53 +0200 From: Sam Ravnborg To: Enric Balletbo i Serra Cc: linux-kernel@vger.kernel.org, Chun-Kuang Hu , drinkcat@chromium.org, David Airlie , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, laurent.pinchart@ideasonboard.com, hsinyi@chromium.org, matthias.bgg@gmail.com, Collabora Kernel ML , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 6/7] drm/mediatek: mtk_dsi: Use the drm_panel_bridge API Message-ID: <20200412195253.GA711@ravnborg.org> References: <20200408211120.1407512-1-enric.balletbo@collabora.com> <20200408211120.1407512-7-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200408211120.1407512-7-enric.balletbo@collabora.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=XpTUx2N9 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=e5mUnYsNAAAA:8 a=_Dwo-_uELdbJNNcBnpoA:9 a=CjuIK1q_8ugA:10 a=Vxmtnl_E_bksehYqCbjh:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Enric. Just a "drive-by" comment. I browsed all the patches - and nothing jumped at me. But then I did not follow all the changes. > @@ -1202,10 +1055,19 @@ static int mtk_dsi_probe(struct platform_device *pdev) > } > > ret = drm_of_find_panel_or_bridge(dev->of_node, 0, 0, > - &dsi->panel, &dsi->next_bridge); > + &panel, &dsi->next_bridge); > if (ret) > goto err_unregister_host; > > + if (panel) { > + panel->connector_type = DRM_MODE_CONNECTOR_DSI; This assignment of panel->connector_type is wrong. We should let the panel tell the type of connector. And if the panel fails to do so - then fix it in the panel. One day, when I get sufficiently bored/motivated I plan to go through all panels to make sure they all update connector_type. Sam > + dsi->panel_bridge = devm_drm_panel_bridge_add(dev, panel); > + if (IS_ERR(dsi->panel_bridge)) { > + ret = PTR_ERR(dsi->panel_bridge); > + goto err_unregister_host; > + } > + } > + > dsi->driver_data = of_device_get_match_data(dev); > > dsi->engine_clk = devm_clk_get(dev, "engine"); > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel