Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1707439lqp; Mon, 15 Apr 2024 14:50:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjsVsTlR16L1QQaedf35vecjin0MYVB1NMdyAFm2venwZ7C6X2f3R+2NVZE1GfKtXqbElFIV/UxjHRYGeS9Rn7JiQCcTNcTIjUB5pRGw== X-Google-Smtp-Source: AGHT+IGUqs7OxCR12cGbzQJLPQxluM4TyglmtE3+6HD0BH9aYMLmSzGEqjEZW+VgsEGrEdScnIEG X-Received: by 2002:a05:6358:7d0c:b0:183:9a25:848a with SMTP id i12-20020a0563587d0c00b001839a25848amr11597420rwg.2.1713217836192; Mon, 15 Apr 2024 14:50:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713217836; cv=pass; d=google.com; s=arc-20160816; b=gZluAlVyyhP7W9Y7s2emvIndXqCBktZG6TlIIwgJe/jte0iMzlGKHN8kXgtutNWd6q JzNx9MJXSbUTvRT9fpVxJZb//Pxk/U8pxPNQLI75wWWB/A4RenhfjJfll8Em7ASYodqY Dx7+FwbakUvted6AJivUQ6NDfv1MRJZqFDGTyeA5ZGEmAbfjRjc8s/zRlUMUef8freYH V/km+JFQtT3tUtnM1iUW9VfEFoNGQoe4bDYQwCkDv+cSoUJ8h9LsTzUIN+5NeDaY74E1 bh/pZzHsa9pHr46MFrlbIevJQDI0tZulbKEm56Qdwes31PlfR/dRxBLnLl42Xs5apb+V b27w== 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=fb3frMpvQiHCjDe6p47YV0YVoqLYeCXsSneJNsQpJzk=; fh=cWSJOWGJAjcdyFDFoN1PB+PJKfgvopPPk2h8P3Abz50=; b=n+uwN8Azlkrj8VeF9eI8CZRELXaGn10tvDkc+O7yvN4PlNdjNmih/aOw1t90o+uJYF h8q6SZPt0FBtSPuXDHUZbTy5tfd5O5lflhWsr1QvzMuUCohsd8VMxR7ODL/DWSCCnPGO DG1xcrn4cr8vVWrOEjKrUqF5rnfwV5ggOroap2W6jCoim6xYH24l4Q6XnfJzq67/wVhR +iKXoeJel/fSCqbpSxNw5tFfO493m3X/7GdNV9TIGLOcpZX7osBlRxHFgE/JXcT7kkyE IhpgMM8T3uxAdclgAewoBUCvpMvz/PMZ9oRfQ1AAB2zGDgG660AEbj5xFFDK+bnQphaX A4ZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Rn4i4dT1; 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-145949-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145949-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 j14-20020a63ec0e000000b005dc892c862fsi8496108pgh.638.2024.04.15.14.50.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 14:50:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145949-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=Rn4i4dT1; 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-145949-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145949-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 93296283448 for ; Mon, 15 Apr 2024 21:50:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABA941591F8; Mon, 15 Apr 2024 21:50:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Rn4i4dT1" 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 8FA841591F1 for ; Mon, 15 Apr 2024 21:50:02 +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=1713217803; cv=none; b=WvTlmXaKjumbDs/cKKlgCq++3MXPJpoAO5UaRPyGC6Isgj1D+wiMeZRVhC4VI5f6304coTb7YNCPokqg5uxC82TxNOnCHq5r5hBqUqmkRGUKBr2EjM522iuaXLjmigQdDNJXHBrvXxId9aUGTkoP1h8i161gR1hxxPhp2vKDxrM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713217803; c=relaxed/simple; bh=4PLzCTFLQ5va4QXfK0MJssDil8CJ4xuFUO8RMSa/pJI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=s4oPatSVDLw+cUhOE91CgbsSo/jOKrd9bYeAq47iwxE2Ootch4TwJumQRb0yuKc+XGpk+VybpeXb/nzG3uaKOKI6gJ+01BrWTzzwjfj7ffcM8V5Rbf4OB7z3O5jKnGgbcIlkP9sngXodqv6m/3WZY22dFzF5LOHKV+0GkkmO+vA= 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=Rn4i4dT1; 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=1713217801; bh=4PLzCTFLQ5va4QXfK0MJssDil8CJ4xuFUO8RMSa/pJI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Rn4i4dT1uJWheGWHjgLYzlLr/xdp9QmQHjIKaDccOSzEyDP0RR82CO2CSzMC6UtbV GwgspAIAsu6i2jCGQeqKM5MwcY/Y20NSxB2uAiqSanIapMvguhHcBAIyUsk9UahHBc bh5zK/iOMXinBU1SYeLz14SAXeRLhhxA4bN49w81VqfajSLJC0quIu+U4YkETB5/09 A1M3VOBhiLb0D1kkkmKy9oXJ7FB+OE3Kz4V/KRY7rHf1XENBwVkpfUlj9v8Gx/F3g8 jd6WWJ5F+Tr8VffW4qVWufzJGd6c56lJdm5XcGhqSULQmH5CiZVBXfetVKvNXhaZu/ k+gGBoipc7B8g== 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 2F3093780016; Mon, 15 Apr 2024 21:49:57 +0000 (UTC) From: =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Date: Mon, 15 Apr 2024 17:49:32 -0400 Subject: [PATCH v3 4/9] drm/bridge: lt9611: 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-4-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: 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 --- 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 a9c7e2b07ea1..b99fe87ec738 100644 --- a/drivers/gpu/drm/bridge/lontium-lt9611.c +++ b/drivers/gpu/drm/bridge/lontium-lt9611.c @@ -761,10 +761,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 = devm_mipi_dsi_device_register_full(dev, host, &info); if (IS_ERR(dsi)) { -- 2.44.0