Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp234966lqc; Thu, 29 Feb 2024 16:13:37 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWrv+FNjQW6gQuVm3g7lE9R80vD7ifcZDom+vRtY2BAhedtNdo+F9MejAZAfsxC2MNTFUSEamsksa9fjwAcuolYoLt/6tPG8KUNq29/tg== X-Google-Smtp-Source: AGHT+IHfv/R7M/7sTE6JKHV8uLVAHyQuz/e7BM7Y54rISAnWfBJTA28/ZPOzUg/kpwOxMkkKu0Uz X-Received: by 2002:a05:6602:2c53:b0:7c8:13cc:32af with SMTP id x19-20020a0566022c5300b007c813cc32afmr123358iov.2.1709252016955; Thu, 29 Feb 2024 16:13:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709252016; cv=pass; d=google.com; s=arc-20160816; b=nFAk7SymZscTENW+tnz0FzLDLOQGb/zTXnClnG9890tGehRYDxY/b/YYDPQfmDjts7 2JUC4G+aI1bX/DzYtnN+IHugRPZ/d6rTdgm1CY4ilfr1zbGmzYXTNh3lcvgvJoHErjCm CQhuDk5trnMrgqcNrRfMcztBAAmWrQ3dZCmwa7/loz6y0WZB+wdZIARVd21SF891I2cS 98oucwph3wE/13l/bX6Kql5H7AfMAQwmdxfdCt5ZdZibIozTH469WvhzyxGtKaHki8nY dWXf6Zs7tKPTtGRdnper4GiEdPyNyabrf/Fthuwg1pR9tFSgWOASZRqEOuD8PB4VlvYd ITZA== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87723-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h6-20020a655186000000b005dc4b84b38asi2356295pgq.72.2024.02.29.16.13.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 16:13:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87723-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87723-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9B339284CDB for ; Fri, 1 Mar 2024 00:13:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AEE0C3C2F; Fri, 1 Mar 2024 00:12:48 +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 ; 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?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= 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: List-Subscribe: List-Unsubscribe: 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 , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , owen , Jagan Teki , Marek Vasut , Adrien Grassein , Srinivas Kandagatla , Sam Ravnborg , Bjorn Andersson , Vinod Koul , Dmitry Baryshkov , Vinay Simha BN , Christopher Vollo , Jessica Zhang , Marijn Suijten , AngeloGioacchino Del Regno Cc: kernel@collabora.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno , =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= X-Mailer: b4 0.13.0 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 Signed-off-by: NĂ­colas F. R. A. Prado --- 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)) { -- 2.44.0