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 24B3015FCE9; Mon, 27 May 2024 19:12:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716837160; cv=none; b=uc102C9/4hE8cabj9l/pUL2lleKVopymRJcV5tdQ842ZJLiIuj3qNp5A4AKMUpxOV1Ts7kQQ0amoOSXurkbIOplZVfIEqXPsJtu0A2Z/++j7uvLMr0U8xM0syEDzMGI1dm9sKQkmPPCZfXRboOeaDNw7XzwG7Ysspos+HSf1kNA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716837160; c=relaxed/simple; bh=h9vkSWKMKRS7QwwfeQICzDs9D8nevTxonC7/4Swy1ek=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=coUa9ZJBca7oMlh7VBAnjquqIrjIK8IcyTxn6GMVjwoncGyd4NKuCLLJ5m1HxlzkeR9ka0uhBVmcqqaZhdoLbRySHXvMAEmiWIkTyAE3cHF8amZZB+DEITKrttAZjy4cS1o+ZH3c+vTj/RmGQU5YpxPsD/FycEPsPVXwSeo6Lv0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p+sQnBtB; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="p+sQnBtB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFCB7C2BBFC; Mon, 27 May 2024 19:12:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716837160; bh=h9vkSWKMKRS7QwwfeQICzDs9D8nevTxonC7/4Swy1ek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p+sQnBtBuHudzj9Sw29G4hIm7L9SqYn1UAqsekQdiiTCotMSYLTrqTIILi1HBllXO 3ZqycWQYkpBggb8+mw1wxpEpC4dirLvZEVZD6Rw5OPJIATWz3lFgAN4oeJ25oP9Bex JYYgPUBIbJgxFIqsvcbAVuq11VVjsFi71B0t8ksY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, AngeloGioacchino Del Regno , Laurent Pinchart , "=?UTF-8?q?N=C3=ADcolas=20F . =20R . =20A . =20Prado?=" , Dmitry Baryshkov , Robert Foss , Sasha Levin Subject: [PATCH 6.9 334/427] drm/bridge: lt9611uxc: Dont log an error when DSI host cant be found Date: Mon, 27 May 2024 20:56:21 +0200 Message-ID: <20240527185632.455223803@linuxfoundation.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240527185601.713589927@linuxfoundation.org> References: <20240527185601.713589927@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: NĂ­colas F. R. A. Prado [ Upstream commit 6d9e877cde7e9b516a9a99751b8222c87557436d ] Given that failing to find a DSI host causes the driver to defer probe, make use of dev_err_probe() to log the reason. This makes the defer probe reason available and avoids alerting userspace about something that is not necessarily an error. Fixes: 0cbbd5b1a012 ("drm: bridge: add support for lontium LT9611UXC bridge") Suggested-by: AngeloGioacchino Del Regno Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Laurent Pinchart Signed-off-by: NĂ­colas F. R. A. Prado Reviewed-by: Dmitry Baryshkov Signed-off-by: Robert Foss Link: https://patchwork.freedesktop.org/patch/msgid/20240415-anx7625-defer-log-no-dsi-host-v3-5-619a28148e5c@collabora.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c index f4f593ad8f795..ab702471f3ab1 100644 --- a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c +++ b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c @@ -266,10 +266,8 @@ static struct mipi_dsi_device *lt9611uxc_attach_dsi(struct lt9611uxc *lt9611uxc, int ret; host = of_find_mipi_dsi_host_by_node(dsi_node); - if (!host) { - dev_err(dev, "failed to find dsi host\n"); - return ERR_PTR(-EPROBE_DEFER); - } + if (!host) + return ERR_PTR(dev_err_probe(dev, -EPROBE_DEFER, "failed to find dsi host\n")); dsi = devm_mipi_dsi_device_register_full(dev, host, &info); if (IS_ERR(dsi)) { -- 2.43.0