From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E8E8C8BE0 for ; Tue, 28 Mar 2023 15:12:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A9F8C433D2; Tue, 28 Mar 2023 15:12:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680016344; bh=OjNn6WSh4hs9Cyx0kFZzTNIWrb45m0nTCMTXC8Z3TLY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hAaSk8uTgz6JtaQzQGCtjOsxrPWe6DPBV4wDnpYsn09sPQgklcAiRLa2gnOWpIsz9 ebS5kXi3ECjbNQ5KO/9MO60sG28k0jJt5ipLUAl8wKtVm6HQAV0XFZ8QF8TXyff3Oz L6YMeq5IvjJH4YM0a5DT6ds8e3T3xZ2RPRHfzT4o= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Matheus Castello , Francesco Dolcini , Laurent Pinchart , Andrzej Hajda , Neil Armstrong Subject: [PATCH 5.15 129/146] drm/bridge: lt8912b: return EPROBE_DEFER if bridge is not found Date: Tue, 28 Mar 2023 16:43:38 +0200 Message-Id: <20230328142608.038704916@linuxfoundation.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230328142602.660084725@linuxfoundation.org> References: <20230328142602.660084725@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Matheus Castello commit 1a70ca89d59c7c8af006d29b965a95ede0abb0da upstream. 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 Reviewed-by: Andrzej Hajda Signed-off-by: Neil Armstrong Link: https://patchwork.freedesktop.org/patch/msgid/20230322143821.109744-1-francesco@dolcini.it Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/bridge/lontium-lt8912b.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/bridge/lontium-lt8912b.c +++ b/drivers/gpu/drm/bridge/lontium-lt8912b.c @@ -670,8 +670,8 @@ static int lt8912_parse_dt(struct lt8912 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; }