Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1707580lqp; Mon, 15 Apr 2024 14:50:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW29Y9ZJHT+rlsA+ltx+5qFg+Z6pGRc7tZAzfr0h4r4+xL6mBix8YtVbLTDXibsmhmRlkGg+Hq3GbMPLhdjNAeXKRgj7MLPP7d8rviJ4g== X-Google-Smtp-Source: AGHT+IFESJsinJCRYEw6LbLc9enGMG5z6XyXTHlHqRKwCSzXW6fTPSjxykgA4wGHnKVjFvu87K6M X-Received: by 2002:a05:6870:9a97:b0:22a:2e6:b82e with SMTP id hp23-20020a0568709a9700b0022a02e6b82emr13851056oab.38.1713217857702; Mon, 15 Apr 2024 14:50:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713217857; cv=pass; d=google.com; s=arc-20160816; b=A6jodLbZ/QFwD1XHm6qJYe4rsPapNTNuQcpPv+IRM5ohQv61CYspROoQI5l4jiLvHP lY6TQf5efOMrKZGMZgwmfAfUOQbutfG1XWahj9WzpBKGYiGRGx2/7m0uoKje9F2Z3aUD HgJ+L6qGhgvg/T8x5E9fMolNU+edtx8x67VA4cAmPUZc7030mK+fGhYEM98WMUrRXF2T lsdtqI0RU/tKizPVs0YqreqE4oh2RixDOdnvYdOFpyynrgikOoGN8wysV56daegpJh0H oXFqnyKzl2HbiIP9xeFkLYCnZzwXFaAkjWs2mbvGePMCclPHjNPFD0LgXvU/7eh+Ek+M 8jGQ== 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=W6T33KjYTeROfmIB4Tk8vAU7qnDb3WjdLtZbdn4dW7M=; fh=cWSJOWGJAjcdyFDFoN1PB+PJKfgvopPPk2h8P3Abz50=; b=L+wYAhq9nB/gONXdcKxwfBj1hEN/+9uKJ95tEqQskdmoh/yYHaAwjEh34Uyd/tHuJ7 3kADq5Tzil9Uvbkc3fRn12B0DW8ZzMaTs72iTbnhGcv++QuFxAqeEgeyM9nGcUr4qMiQ MbD83c1ByA5V3Sg6qzNEDhQfFZPoCU7Y6Oj9qLSOQCfrO2SevUc0OS55ynd7oOqvRtjC mqN4wswd7LbrXmq53rI86dkAAEHS2DFv+8GAS8pevOje/bPbs01ZAwv+hmXE32zy3OO8 /wUSc+TjA22/EWEx9JUf6ay6pY/xX/0FZ+SWVO4FJ+HDiFEIJCqVXyr95yArSs6aZNue WHqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=xItB+Krt; 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-145951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i30-20020a05620a0a1e00b00789e6b10da3si11118721qka.427.2024.04.15.14.50.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 14:50:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=xItB+Krt; 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-145951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145951-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6917F1C215C6 for ; Mon, 15 Apr 2024 21:50:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9D35159907; Mon, 15 Apr 2024 21:50:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="xItB+Krt" 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 E96261598FE for ; Mon, 15 Apr 2024 21:50:10 +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=1713217812; cv=none; b=I6vKKhTZOr+eACd5UwhLtcr9I1GPFHaQLOIF/MsdLMVnEVqAJM4tjFjcLfPxCN34VJNkBU0QBXHwk3T0KFSCV3zhWEnsAFVX2z5BAI10biP4UemHGa38Cra3pSlkK/xQO1auPQleEkcuNmVb60HekMYCh1TSB+qLnakqZX7E4tg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713217812; c=relaxed/simple; bh=526F18CtfYEEqboFKch5J95lq5PrbYAvtBr25FpdHDw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YVgHLIu8TV6ENXKDfRFeBOozbTAFKkgQo7fXa/gVoGJ01rT98HguwT4dVXms1pHe6ujWikZp9wdkrVpCvmTNwHJT8aTSdGYJLhGYhMkQYBTcfdSNclXJNTceOb/RYKraMmwsP5eA762L0GEClrP3gDkYcezZ1vgWyVVpD6eDYMU= 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=xItB+Krt; 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=1713217809; bh=526F18CtfYEEqboFKch5J95lq5PrbYAvtBr25FpdHDw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=xItB+Krtc9dRh5ur5snc44ZUCQA5jnsWAOz8j43JEVeuD46KtOExC/Id9Xduc15rR f2xZhZ/zxwKnlDCA+em9+zc37KbenmoWByGfHtyeY02LPkX7rlV18QqNRpBnYV3Ypk 7k+s8WTpb4QeFbfugA+8MSVMhZ2BRypPS+5Vs/EML/L1f290u0UG5Md4MwmlCVAHXR +DR0vhwvZVRrw03GbTb9YN9eUJ/BupYRzA93dwaydKK+zJwVkWrRMitIBw32UWkAyA HqQul0xBlKGZledm6mEypMoZjQImfnvTDexCoMupwYFb/LRumQSQfVIo0XiBAS8YyS Jo/G2Nb+A20vA== Received: from [192.168.42.226] (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 7D4323780016; Mon, 15 Apr 2024 21:50:05 +0000 (UTC) From: =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Date: Mon, 15 Apr 2024 17:49:34 -0400 Subject: [PATCH v3 6/9] drm/bridge: tc358775: 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: <20240415-anx7625-defer-log-no-dsi-host-v3-6-619a28148e5c@collabora.com> References: <20240415-anx7625-defer-log-no-dsi-host-v3-0-619a28148e5c@collabora.com> In-Reply-To: <20240415-anx7625-defer-log-no-dsi-host-v3-0-619a28148e5c@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 , Laurent Pinchart , =?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: b26975593b17 ("display/drm/bridge: TC358775 DSI/LVDS driver") Suggested-by: AngeloGioacchino Del Regno Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Laurent Pinchart Signed-off-by: NĂ­colas F. R. A. Prado --- drivers/gpu/drm/bridge/tc358775.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c index 90a89d70d832..fea4f00a20f8 100644 --- a/drivers/gpu/drm/bridge/tc358775.c +++ b/drivers/gpu/drm/bridge/tc358775.c @@ -610,10 +610,8 @@ static int tc_attach_host(struct tc_data *tc) }; host = of_find_mipi_dsi_host_by_node(tc->host_node); - if (!host) { - dev_err(dev, "failed to find dsi host\n"); - return -EPROBE_DEFER; - } + if (!host) + return 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