Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp234720lqc; Thu, 29 Feb 2024 16:13:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVg48w822OdNtQjU+A/9xgE/oPrxhWqtd1zgXBxPY1iR0wm8UHAg289HizxOaZcMIa9KT8oQAKwFV3+WgzwEG3T6jAxOWDBCBJrPigDOQ== X-Google-Smtp-Source: AGHT+IFPKEzTJVI5Oi00CjNaQB9mQBCQNWIG6fKG7e6JZpFN/leYPYSFcvt2XlwThfo8ZGo9cIzQ X-Received: by 2002:a05:6402:904:b0:565:bc3d:f355 with SMTP id g4-20020a056402090400b00565bc3df355mr130685edz.5.1709251991587; Thu, 29 Feb 2024 16:13:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709251991; cv=pass; d=google.com; s=arc-20160816; b=zINDA73rjwOgb64jJk64zd2bV8yw1lH4eBH7NB7E7P7ubrOzp7wcCxdK9QRp3BbViX RseHrQi5908yzKfjnDWwEovSv/8TU0jmQtyYNYAhUgdZ25eWksPkLrwpARV8bPc5aNHF zqgRcNIPGSeL3Qgmr65R6mIC4+LOnROOrPtnTA+dIwgA1lBuAEMpLO9B4zPrKDgufL1C b+bhWxNlfpsbugM/g/kWMn5/qk/DiQkLVj1sOXB1H6fT59cVYNUZVyl25z2f8zW5u9iB VJT2NNAGRLWv+4RZVMHEZ1rekE+JXtYlYiZwl9pNLWC+X385Zob5K4Yxbq8JHGvuXN1f ixfg== 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=c84h65NinOEbrRDe/T74+6ebbxz3Z98Wen4o7An62wM=; fh=EPbsNJMLwlXYTg/MTuk9bwilsoK94uNp6NRacKCAfCI=; b=0EtD9p+K/RTI9UfWrSohfzm7+EbB07PjcCskkfcTrfytNI3AfuVMeCVL5A0WVUal4I D9iAR+uaDBT0Z7EJnlvXuS+DK3CPK/+3p2RUyiklg1+O57Q0KiKMle/UIVDvIoIzxYae 4Oa38AtaB+dmAq/RJQfyCLIoiW9iuuLo9ad5MwIesdVUTKxQbRrz6l68PGBz9kI0Jieb k1H8T6g8t4/+7rD5IWga9yQjfFd1eCrLH67WdAtha3Kfv7TtLE27TLNrD82xJLcK1e2n +YnSXikeo/8bGUWDI2oS6BPM1ngbK+3h3M6uXUqMfC/78ysHiXddT6CxAfgjuRBMAYyw PoZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=V7r6Wd2Z; 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-87721-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87721-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bd5-20020a056402206500b005643fc438besi962729edb.189.2024.02.29.16.13.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 16:13:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87721-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=V7r6Wd2Z; 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-87721-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87721-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4B1A41F227C4 for ; Fri, 1 Mar 2024 00:13:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5893D1FB9; Fri, 1 Mar 2024 00:12:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="V7r6Wd2Z" 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 0E2792582 for ; Fri, 1 Mar 2024 00:12:34 +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=1709251956; cv=none; b=CoSTBxyh306o2l0dw2iqvu9OXtLH8ddj1uE8wywpuyn9uVWT7/TSkQyGmlazH3xwT+LY9fNDIBgWjm/S5yIj8D2WpOqlY+iOYM+iAMf4ZNEJEZu0HcjhIhUa5HyHVBEglgSht5wMQsYRWG7qtjXg6eFG3iDIWPPD0Cym8ZJ83z0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709251956; c=relaxed/simple; bh=WVysYAyr15mAm5m4P/SUrQDSA/7qQTGaNZ7Cnm3KAOg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CuiRfUAutzbcezu1NoLRzhQqWBk2LTNiHrLIS8VWitF/f+GYC0JEoKWE+52hctZ8frk9WGpwc2Gx8mEB7OiZ/zybGffXX2nc4y/Jzkk0/U6Op3jb1XFKd2dV1zLOmWwv2Psn8crqt9tDHXQuuFvV2KPlpO0k/JCoci4Y1ohCqxg= 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=V7r6Wd2Z; 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=1709251953; bh=WVysYAyr15mAm5m4P/SUrQDSA/7qQTGaNZ7Cnm3KAOg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=V7r6Wd2Zq7IqIuAc7RYAeEuBl0zwwqCHFPKfaWlTO2uEW2vOT9jyvDiBZ6TFEb+Rs gt5QZzWWrRQfSCGcp8YRrVaxwmhhPz2/hh9JPtZex3VA7AwvOIiIFJAExoV3x/fmCi wZjd8m9VkO2VLjx38KFB2oRaBPbsKpmmB4H8jw81L+TJhwC5INjvPOPRPvwMkDWg8z WhPSGy/WLLe6fY806qHsH93O/e3zKEmb/qv6m7e70WOD83C1vRaaqT5xvFnwycVA5w irwu6+6iVgQoWiKfxKrOl3r8wN+Yd5sIqISzT6grUcL4p5ihJKYbNHmxtnV1RVBJD1 QwiJeZD5JMy2w== 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 3CDB937820EE; Fri, 1 Mar 2024 00:12:28 +0000 (UTC) From: =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Date: Thu, 29 Feb 2024 19:12:09 -0500 Subject: [PATCH v2 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: <20240229-anx7625-defer-log-no-dsi-host-v2-3-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: 30e2ae943c26 ("drm/bridge: Introduce LT8912B DSI to HDMI bridge") Suggested-by: AngeloGioacchino Del Regno 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 273157428c82..15aa890c3e6d 100644 --- a/drivers/gpu/drm/bridge/lontium-lt8912b.c +++ b/drivers/gpu/drm/bridge/lontium-lt8912b.c @@ -496,10 +496,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