Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3245250pxm; Mon, 28 Feb 2022 15:27:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwl6S5B2+4bVf+QgcQuMF6SFqdF7qbJ+mysLcnWUpsS8sepvTnsjXapEm/Ux2voY3wJWGWL X-Received: by 2002:a17:90a:2c0b:b0:1be:da5a:b294 with SMTP id m11-20020a17090a2c0b00b001beda5ab294mr636898pjd.9.1646090844728; Mon, 28 Feb 2022 15:27:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646090844; cv=none; d=google.com; s=arc-20160816; b=zmEG7AK9cXR1maFI5EZ9OnLz2yRkmT81FnX+B2mrnvCDGKznKNUITwGah2UDpbuGtv TUSwD056EvWNlbaatllC5dZWtwABJf1QGD6qzrMU37e5L6wTXnXCMxwz1fRr4U89St/l f7DnwETFkpN0DAtY8IbaC/aPoVJ0F6JJmfZPb++WjRs3V3y4LoyybeLjbe5QJtQsyLSo 9WYjzEW052QNuCL5jNwRihqY5PLBzCr5/uYa8D5TO98itwrQteok1iETo9ryA9S3dVJf qJoeE07ZKyZXs/s1cskGS83R1qAxx9f6qhcYGkyHQD6IJ7oO2/SuE3gA8xY7Kt9IQsmo QhNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=YoKGT+wQRDDvUCpyosJE1epHxWa9V5XMLaEMIURQc+E=; b=uv2u2XkPONkCS+k52iaCK7k07lPJ4GIEyQIyhdXbifPpZaCeTgSoXXm9CTpWcKdp0B ASm6N0eXrrZ0BocqgdPYWsqGnqnXRZ1PZYBCnnxdDTxBGBfytLFd/YJcSgpJoTjV7nGT YitLJbbXPRWEajHHCpfzbhfUTg1TLC2vpfqLLo+0rsIF5fP48w+a4NxaycrxDI+WGYBO HTRT6bBoV3NFFPkWasyk9IzxP8XAL8JGYvGtBEf0gx2ZmZsd8TTBgeFXxoFK3XTJp6Pj 5qyDEUJ8M0DKSWQ/EZ6FVIpge+S74CEL+JZpTzGL9SdmVaehwih8vGOg4l2NyM5OpzXe vQ5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Xi4ptyLz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 126-20020a620484000000b004e193f2001fsi9600383pfe.189.2022.02.28.15.27.08; Mon, 28 Feb 2022 15:27:24 -0800 (PST) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=Xi4ptyLz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229760AbiB1XZW (ORCPT + 99 others); Mon, 28 Feb 2022 18:25:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbiB1XZV (ORCPT ); Mon, 28 Feb 2022 18:25:21 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB02BC3311; Mon, 28 Feb 2022 15:24:41 -0800 (PST) Received: from pendragon.ideasonboard.com (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3B22F478; Tue, 1 Mar 2022 00:24:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1646090679; bh=GequZV5BwVjpKPb+Q/rQWeSXyCGPG/WT/t2NCTE3e44=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Xi4ptyLzFjcJ0ffGr6xtQG2NQb6Tbk4Id3luptcVQKUalOnq7cbUIgwJlty9rVGMd TevFoHW2bEgBDHUj46YHrjIPfOEZY5t5NTiAEOz//i69Gtnx9P0eytbjrV05xq5ocC MbG5jVP6lmrsARn2BaUJRbkXne/VCRmLhDAR3bOw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220228183955.25508-1-jose.exposito89@gmail.com> References: <20220228183955.25508-1-jose.exposito89@gmail.com> Subject: Re: [PATCH] drm/bridge: ti-sn65dsi86: switch to devm_drm_of_get_bridge From: Kieran Bingham Cc: linux-pwm@vger.kernel.org, jonas@kwiboo.se, airlied@linux.ie, robert.foss@linaro.org, dri-devel@lists.freedesktop.org, narmstrong@baylibre.com, linux-kernel@vger.kernel.org, jernej.skrabec@gmail.com, thierry.reding@gmail.com, Laurent.pinchart@ideasonboard.com, u.kleine-koenig@pengutronix.de, =?utf-8?q?Jos=C3=A9_Exp=C3=B3sito?= , lee.jones@linaro.org, maxime@cerno.tech To: =?utf-8?q?Jos=C3=A9_Exp=C3=B3sito?= , andrzej.hajda@intel.com Date: Mon, 28 Feb 2022 23:24:36 +0000 Message-ID: <164609067646.2361501.15747139249939190799@Monstersaurus> User-Agent: alot/0.10 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 Hi Jos=C3=A9 Quoting Jos=C3=A9 Exp=C3=B3sito (2022-02-28 18:39:54) > The function "drm_of_find_panel_or_bridge" has been deprecated in > favor of "devm_drm_of_get_bridge". >=20 > Switch to the new function and reduce boilerplate. >=20 > Signed-off-by: Jos=C3=A9 Exp=C3=B3sito > --- > drivers/gpu/drm/bridge/ti-sn65dsi86.c | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) >=20 > diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/brid= ge/ti-sn65dsi86.c > index dab8f76618f3..fb8e16ed7e90 100644 > --- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c > +++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c > @@ -1232,15 +1232,9 @@ static int ti_sn_bridge_probe(struct auxiliary_dev= ice *adev, > { > struct ti_sn65dsi86 *pdata =3D dev_get_drvdata(adev->dev.parent); > struct device_node *np =3D pdata->dev->of_node; > - struct drm_panel *panel; > int ret; > =20 > - ret =3D drm_of_find_panel_or_bridge(np, 1, 0, &panel, NULL); > - if (ret) > - return dev_err_probe(&adev->dev, ret, > - "could not find any panel node\n"); > - > - pdata->next_bridge =3D devm_drm_panel_bridge_add(pdata->dev, pane= l); > + pdata->next_bridge =3D devm_drm_of_get_bridge(pdata->dev, np, 1, = 0); Yikes, I was about to rely on this panel variable to determine if the device is a panel or a display port connector. (Well, I am relying on it, and patches are hoping to be reposted this week). Is there expected to be another way to identify if the next connection is a panel or a bridge? Regards -- Kieran > if (IS_ERR(pdata->next_bridge)) { > DRM_ERROR("failed to create panel bridge\n"); > return PTR_ERR(pdata->next_bridge); > --=20 > 2.25.1 >