From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6659C6FD1C for ; Wed, 22 Mar 2023 15:22:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231459AbjCVPWL (ORCPT ); Wed, 22 Mar 2023 11:22:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230127AbjCVPWJ (ORCPT ); Wed, 22 Mar 2023 11:22:09 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3092A6189A; Wed, 22 Mar 2023 08:22:08 -0700 (PDT) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C8BBABC4; Wed, 22 Mar 2023 16:22:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1679498526; bh=ECK/hhQogZ8dTEHvIQvrK0ZnIJ6cFQoDnWNyVMenZ30=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NE7YxpTO9SxNdNQR4V4tSiHobmBwpockjhKa20DZnNebz4IVkqptgA5XMo/w3pMLD 3L81daijr0e+cB2jQz4OxgLiG2mZkmS9ckP6jf5Wu8IkbTMDsIU7fmWvN/F+3Hm5GA rb5m0LEZkiwysf9Mtvy8Inu1qoTysp7vEhVMRa1s= Date: Wed, 22 Mar 2023 17:22:11 +0200 From: Laurent Pinchart To: Francesco Dolcini Cc: Adrien Grassein , Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, Matheus Castello , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Francesco Dolcini Subject: Re: [PATCH v2] drm/bridge: lt8912b: return EPROBE_DEFER if bridge is not found Message-ID: <20230322152211.GP20234@pendragon.ideasonboard.com> References: <20230322143821.109744-1-francesco@dolcini.it> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230322143821.109744-1-francesco@dolcini.it> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Francesco, Thank you for the patch. On Wed, Mar 22, 2023 at 03:38:21PM +0100, Francesco Dolcini wrote: > From: Matheus Castello > > Returns EPROBE_DEFER when of_drm_find_bridge() fails, this is consistent > with what all the other DRM bridge drivers are doing and this is > required since the bridge might not be there when the driver is probed > and this should not be a fatal failure. > > Cc: > Fixes: 30e2ae943c26 ("drm/bridge: Introduce LT8912B DSI to HDMI bridge") > Signed-off-by: Matheus Castello > Signed-off-by: Francesco Dolcini Reviewed-by: Laurent Pinchart > --- > v2: use dev_err_probe() instead of dev_dbg() (Laurent) > --- > drivers/gpu/drm/bridge/lontium-lt8912b.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/lontium-lt8912b.c b/drivers/gpu/drm/bridge/lontium-lt8912b.c > index 2019a8167d69..b40baced1331 100644 > --- a/drivers/gpu/drm/bridge/lontium-lt8912b.c > +++ b/drivers/gpu/drm/bridge/lontium-lt8912b.c > @@ -676,8 +676,8 @@ static int lt8912_parse_dt(struct lt8912 *lt) > > lt->hdmi_port = of_drm_find_bridge(port_node); > if (!lt->hdmi_port) { > - dev_err(lt->dev, "%s: Failed to get hdmi port\n", __func__); > - ret = -ENODEV; > + ret = -EPROBE_DEFER; > + dev_err_probe(lt->dev, ret, "%s: Failed to get hdmi port\n", __func__); > goto err_free_host_node; > } > -- Regards, Laurent Pinchart