Message ID | 20240229-anx7625-defer-log-no-dsi-host-v2-5-00506941049a@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-87723-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp762433dyb; Thu, 29 Feb 2024 16:13:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUmlLAKRrZHjLhsBrBBl0i+bxQI242NGXURE4x5XzbkvU8PpR65dwRZ+seanC0vUhFSCi3fNZJSwkhobp5non3B60NO2Q== X-Google-Smtp-Source: AGHT+IE5qml8dOEIunRisHFs0LyGBE10FbY9FZBKl7uyn7M9nRtiertsQ4E40WjjO3Z/a4e8yErb X-Received: by 2002:ac8:5f0b:0:b0:42e:b2a6:ab66 with SMTP id x11-20020ac85f0b000000b0042eb2a6ab66mr111662qta.38.1709252024852; Thu, 29 Feb 2024 16:13:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709252024; cv=pass; d=google.com; s=arc-20160816; b=EQHvbprGn/YhR9/BfCRgNd1qBllLocY4o5W3WQ8S+qbqCeKv+RNmGg0ON4Shn/7Lj0 D9z3gt7jHbY3p2IQRwHukKzbsWUX7EEuOIVT1D/P933NELol9nvWz2pHsAO+bIMzrlyt xQivlPcveiGa8HEBkPRM42a84g5XhubEdFAxDPx1PQIrvC4CPkPwtZ1+hCraVBtEibas 4942Q7YAy8vZNGV3KoJ2GmeGrNi43PbWB6WV1FmgpkLnABmRW7mFWvGzKApZjynHpmc/ md72hCU0Xie5Z0bq2UmqE6x1zZV3YteK4nNFdm0U2/RR9OKqIxDnj1SInQwXmhTjMkNR z7Xw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=HAkgbionryHs6BGpBGx2TFA6XOGyDEyx9OwBzhqLNVY=; fh=EPbsNJMLwlXYTg/MTuk9bwilsoK94uNp6NRacKCAfCI=; b=txHhxCQnWgu/93gb1V/8RuH7XnidYv7qyqrbApUNU1c9hBHuMQzrU1U+4MNbqdj6xT uSKxvF2RrFIeGr3Xl3HbFK/NvzTFx6JPnf306MpwU5RrBI2980CUwrbmvX1ENohdqwnX CZFFe6GhFwfH2rSuqbJGvgaqPJwZyOptHRiPr5wKj932EeTI2gMtZGf4CtD8Ttt/OSUV gRd27EcrDgMF/XjCqXeUKOjCxNEYPM/7LMiSqyjgyhQttUB9yR83I+8YgayVGPtjKd74 1thVYUVh6HDZLFiEkg04tu239EGxfll/B1SgECJOVCUHNpFSLGV5Qa+YzvXGcDgUTjqS Ejnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Oe4pTP9H; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-87723-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87723-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f5-20020ac85d05000000b0042e626ae053si2670719qtx.213.2024.02.29.16.13.44 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 16:13:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87723-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Oe4pTP9H; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-87723-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87723-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A12481C20F9E for <ouuuleilei@gmail.com>; Fri, 1 Mar 2024 00:13:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99E02468F; Fri, 1 Mar 2024 00:12:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Oe4pTP9H" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 69BD363C for <linux-kernel@vger.kernel.org>; Fri, 1 Mar 2024 00:12:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709251967; cv=none; b=o3TzFVIOTYV7mHGYmT9NzVtdjrhR+BJM42lJcvNKNlQGW3QMhTA/ip69ucA56eFB/tmjjWqPiak6XjWhOWhmMgbq5xZbee10UCFccCyYScfj6SXlaGBCaf9vbxZTTduFEz8AlSUu1vCyIxKPv8ylghpjIGSjmP/aEFcP1JSN8g4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709251967; c=relaxed/simple; bh=USSgCDP9hS4bs7tJCyGn4h6s80NL6hl+B96SysSOP2Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dTNF2AtYBqlIVAaKgjmyXC3Q3i54DSaQusIdKELHgoPoxyL/AbBbJsyo5omPT+naJS1Ep/XsyFc5MiPFkiJuA7GFM1r+8KrUhMxQEc5S+hPtVr0+9IQExrqmyqK+6ywB/V0KdXqng8MNIAyCyfB4RfBiUu4DzDDkhzrcBivPrYY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=Oe4pTP9H; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1709251964; bh=USSgCDP9hS4bs7tJCyGn4h6s80NL6hl+B96SysSOP2Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Oe4pTP9HkQIUhqP7j+3FqMmZmdGnO2r3byoKDxh6zJe1fAoftVHZrxeVbPtsb9yrI sRAxGkyEfKav4ZWFDQ6FCq40DNstMDbt7ZYt9d1HxPcJjhhr+Vhsm43df5zMC+E1XU RfLxK8wIhCYLV1vQVFNUNTRHiLyEeu+uM70wOskQO+OPK55SWmxWqlqWs0EIaV2STL jeNSAT0O/IQk79pXb4Y01x78p8hs8WLpRwTFvImMOEMa8aekp/ssl4ond2ULq5ZhMH VoO7a6MDbi0ATB8uHe3fuP1xyTav7pzpPN4fNIU3q47i6O5oCxaUw2uxS1cj/eMcJ0 s7Us4BWoXqpjw== Received: from [192.168.1.205] (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 1CA4337820EC; Fri, 1 Mar 2024 00:12:38 +0000 (UTC) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com> Date: Thu, 29 Feb 2024 19:12:11 -0500 Subject: [PATCH v2 5/9] drm/bridge: lt9611uxc: Don't log an error when DSI host can't be found Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240229-anx7625-defer-log-no-dsi-host-v2-5-00506941049a@collabora.com> References: <20240229-anx7625-defer-log-no-dsi-host-v2-0-00506941049a@collabora.com> In-Reply-To: <20240229-anx7625-defer-log-no-dsi-host-v2-0-00506941049a@collabora.com> To: Andrzej Hajda <andrzej.hajda@intel.com>, Neil Armstrong <neil.armstrong@linaro.org>, Robert Foss <rfoss@kernel.org>, Laurent Pinchart <Laurent.pinchart@ideasonboard.com>, Jonas Karlman <jonas@kwiboo.se>, Jernej Skrabec <jernej.skrabec@gmail.com>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, owen <qwt9588@gmail.com>, Jagan Teki <jagan@amarulasolutions.com>, Marek Vasut <marex@denx.de>, Adrien Grassein <adrien.grassein@gmail.com>, Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Sam Ravnborg <sam@ravnborg.org>, Bjorn Andersson <andersson@kernel.org>, Vinod Koul <vkoul@kernel.org>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Vinay Simha BN <simhavcs@gmail.com>, Christopher Vollo <chris@renewoutreach.org>, Jessica Zhang <quic_jesszhan@quicinc.com>, Marijn Suijten <marijn.suijten@somainline.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> Cc: kernel@collabora.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= <nfraprado@collabora.com> X-Mailer: b4 0.13.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792280651506194185 X-GMAIL-MSGID: 1792280651506194185 |
Series |
drm: Switch from dev_err to dev_err_probe for missing DSI host error path
|
|
Commit Message
NĂcolas F. R. A. Prado
March 1, 2024, 12:12 a.m. UTC
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 <angelogioacchino.delregno@collabora.com>
Signed-off-by: NĂcolas F. R. A. Prado <nfraprado@collabora.com>
---
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 e971b75e90ad..b803899126d5 100644 --- a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c +++ b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c @@ -265,10 +265,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)) {