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 D6FCE1EEF8; Thu, 13 Jun 2024 12:34:13 +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=1718282053; cv=none; b=my+hnjYNmoskETDmHlqKSJyTQpzGXKoa7mxKVMVd1/VpB8VwG1kEQsD8LhNMR0TovYU0dNgftk7D0yU95RdFpU7r0VK/s7T/myn6kGQr3wFrtzUi3NmM5yMjYj82nw6/9btyAzrrolvrPs97OYf3P4uk1TD2zQqRFoWYcMmuMvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718282053; c=relaxed/simple; bh=NzUB97dop+ffjLFGN3CaXeQS0RHWr9lZlrFMs0WfUe4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kmFh4adCW6r0MYaVuXUhCmsTRhzsjrOpqoPa6Z42NEB18CE+6c6RslLqCX1Bc68HMYmU2edwnoYMuK8+Nccf0HkmOYZrr6LisYfNXmN8kd946HCNAlRiSwnRB1lCReRF4MtHxeC15jbOcVcfX5QA7BrSjC21lreTxBL3UufThfY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ab5KfIQS; 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="Ab5KfIQS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0617AC2BBFC; Thu, 13 Jun 2024 12:34:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718282053; bh=NzUB97dop+ffjLFGN3CaXeQS0RHWr9lZlrFMs0WfUe4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ab5KfIQSrnau4Hys5wot5jJBHzl01MMZbkuNsETKyJf45SfCNdlOHQhw5v5iq/VOL N2+EeUh0pkYOJAPkpwWGhu06CxGjGJa1SXWhK189VA8uI3b0KcYnLAzwknen5KOiYn lHfiQ2TPX699uhuiHPTxKrqzUF/W8h0jua+1jfKM= 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 5.15 145/402] drm/bridge: lt9611: Dont log an error when DSI host cant be found Date: Thu, 13 Jun 2024 13:31:42 +0200 Message-ID: <20240613113307.791369746@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240613113302.116811394@linuxfoundation.org> References: <20240613113302.116811394@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 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: NĂ­colas F. R. A. Prado [ Upstream commit cd0a2c6a081ff67007323725b9ff07d9934b1ed8 ] 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: 23278bf54afe ("drm/bridge: Introduce LT9611 DSI to HDMI 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-4-619a28148e5c@collabora.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/bridge/lontium-lt9611.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/lontium-lt9611.c b/drivers/gpu/drm/bridge/lontium-lt9611.c index 660e05fa4a704..7f58ceda5b08a 100644 --- a/drivers/gpu/drm/bridge/lontium-lt9611.c +++ b/drivers/gpu/drm/bridge/lontium-lt9611.c @@ -766,10 +766,8 @@ static struct mipi_dsi_device *lt9611_attach_dsi(struct lt9611 *lt9611, int ret; host = of_find_mipi_dsi_host_by_node(dsi_node); - if (!host) { - dev_err(lt9611->dev, "failed to find dsi host\n"); - return ERR_PTR(-EPROBE_DEFER); - } + if (!host) + return ERR_PTR(dev_err_probe(lt9611->dev, -EPROBE_DEFER, "failed to find dsi host\n")); dsi = mipi_dsi_device_register_full(host, &info); if (IS_ERR(dsi)) { -- 2.43.0