Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1707389lqp; Mon, 15 Apr 2024 14:50:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7Wdw6e+4G84mpB7M3u+qvXVJyGXlw3xaS+DiMw7XVY8va3WWbOMd52sFclrnKvC76oTzc8+K1YiEtpSUo7C3n2TtfKrSQmbD5BmD2OA== X-Google-Smtp-Source: AGHT+IFsRpUCvRHwTvvDb1o7DlxtB60gl+dsRMfo0o/G8QD/rqcxtODMlx1zD9knj3IPSBIRXuu0 X-Received: by 2002:a05:6830:138f:b0:6eb:828c:96e5 with SMTP id d15-20020a056830138f00b006eb828c96e5mr2914621otq.27.1713217825385; Mon, 15 Apr 2024 14:50:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713217825; cv=pass; d=google.com; s=arc-20160816; b=ixEdMtm37udiaYxLOv/D6rkmtbGb9vmfvbJeQPHeeawNa5zgnZunHnLYtSXJlBXiGO 3TmR+O+ckdTfd5RxLqo00TSZYnIpwpKQHV6hqYgJiK8P74CwM/fOvQ4JmFNpR2i8e2M+ uuHfmB6w11IW/+hhgxBVIH3XDnCNCzsnZkD+9P4y1B0/84QYvxuZD12r3w5pfvPM03Mz /xoaxZTfS9fpLCFp/dBYAeQY0xDjBwuzo831WQRkN/xSc7oVGslKH3D2iLX6vnewxpwD +TB5z43DgmGyorUKzPvjlp/dMHA2JlBYEI3eKstcXedtQZPKIoZOO26Or7itNkaFpxbB NjiA== 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=Nq2BoefC5s4VVmH5ybRcUGXkjrCFu6cei9aoXwlmKxA=; fh=cWSJOWGJAjcdyFDFoN1PB+PJKfgvopPPk2h8P3Abz50=; b=MXCkXBgrJj9AfxZsnUzkPu5TyMyho3/aTvjCrxG7ugbpP+SSc+Ye12q8s53Oct1UaZ FbhyorXdfziyhehWTT8qo/8zbtMO/d0UIoJY3AqTWN4g8mQBKx34fY4AoUSQJ30yzt+s 7OtWPoGtEK6UIZA1ZRSn1WQmJbA0IRebEGILobqq3K3YTvzcAsTNDdXwSVwE1Q6RlzIi vigf+r2IsxAAznQTI8MS0509dyEU+Gv2L8BCvD653E1q69Dun9NPjWaoUi/OAnbjkYi6 OjCFYcHcWy8eQjCsoA/bklHhP/e5J9AXmZKN2U7+Sq9+Qmbc06QsZ6uiSz1buV9Uefwf YCLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Xxp3pbQT; 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-145948-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145948-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 l10-20020a05620a210a00b0078d5075fd8bsi10942642qkl.365.2024.04.15.14.50.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 14:50:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145948-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=Xxp3pbQT; 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-145948-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145948-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 1A4931C21AAC for ; Mon, 15 Apr 2024 21:50:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67536158D95; Mon, 15 Apr 2024 21:50:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Xxp3pbQT" 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 3CAEC158D80 for ; Mon, 15 Apr 2024 21:49:58 +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=1713217799; cv=none; b=HHw3jC+lZtNSSyN6Wtbf5xvCISAUws9D7zM9X65RqEPvLqFmvLdWES3I/AXov6CEke4UfZ+oA3cqQNi7v7c6lWSVbSCnBGYHIVqvk41A+Ca0et4yqV4VQJFmC1rm6WpapqWlCHZdLtG/zP4ZaLLcer2aVAxZv2ISQ26OZ2OY+rI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713217799; c=relaxed/simple; bh=bChM9UGlVtj6Xr9kbCiD5QbzhVFBRYOxb2a7pbEdNCY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sEEaTt2kDm+jTk4AauvXDDA87EQwieJ0eGkEOS+npjn9V6UiKDU5jSmJozkA+2NiR4XX2VZwY/g6A4saWzXVX5lyKr2gx5yBCj1uP2k6AxIXjxgF5WJd8KcRxB+gxAbIn7wLYO2jFNGIgAi2cq2ZDb23Ncl4k/elaLsywm08aA8= 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=Xxp3pbQT; 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=1713217796; bh=bChM9UGlVtj6Xr9kbCiD5QbzhVFBRYOxb2a7pbEdNCY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Xxp3pbQT5sD3WMcpp5eV4CHA+OwQi5doxsuL54tmNV58E9x4SzsBLiuaLX8Eyy/mT Lqz6N3c+f7MQaEra/gXPFT1U/6lC+mLHKRnYuiycjIoBcavb67uj0B4Fx/DkD1+qJP 9TV+U9KLEnB8t2+ZD3jDcvGvh7u7C8s4rzG1AdBx9+5fdyCBuFIJPJhDgt7jFzymen D6BGD2is3aqLIpmb8cP1RM24k5kCYDUbO1ma126guC4P08hh2ayh52QMy//z8Pmng+ 9leb4JN18AZngU986loBDSpgySC+C2U/xrHoJfqt2vnwfKiuYby39PbX3ylAVqW6Fl qcuvPOLVu1n9g== 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 066D537811CD; Mon, 15 Apr 2024 21:49:52 +0000 (UTC) From: =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Date: Mon, 15 Apr 2024 17:49:31 -0400 Subject: [PATCH v3 3/9] drm/bridge: lt8912b: 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-3-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: 30e2ae943c26 ("drm/bridge: Introduce LT8912B 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-lt8912b.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/lontium-lt8912b.c b/drivers/gpu/drm/bridge/lontium-lt8912b.c index 4b2ae27f0a57..1a9defa15663 100644 --- a/drivers/gpu/drm/bridge/lontium-lt8912b.c +++ b/drivers/gpu/drm/bridge/lontium-lt8912b.c @@ -494,10 +494,8 @@ static int lt8912_attach_dsi(struct lt8912 *lt) }; host = of_find_mipi_dsi_host_by_node(lt->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