From patchwork Fri Mar 1 00:12:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 208571 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp762375dyb; Thu, 29 Feb 2024 16:13:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX8rgPYe3BT4r5LM7NUdtBY/FWRsh8OtgXvfhKk6eEdnUTdP6+KlCWGTbT08fIlRHK0KtTZeyCW1r+5Da5Hcku2FWwCEw== X-Google-Smtp-Source: AGHT+IEz6PLmkI9noTzobZjRgN6pehmSU8WE7/K+kAncHURGUsYRsC7FDhwBD7GmqsfKT0BVng2/ X-Received: by 2002:a17:903:247:b0:1dc:c161:bcbc with SMTP id j7-20020a170903024700b001dcc161bcbcmr137654plh.5.1709252015798; Thu, 29 Feb 2024 16:13:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709252015; cv=pass; d=google.com; s=arc-20160816; b=Zl5gpX581/nuDrgEgEe1R/oeo7/3JCwrgwz7EI9nSB2M8cBGwlvLp1n5PzQ+y6478x dXjUHPAkrwgsnZkEWFhODZ9lvz7WrHczcIcbTcJUXqrePccpoVVYRLzImtX+o99fQZHd IknG9DCQ4H9C5O4B9KKd4ddTK9SNOBowiY4PMcT2mGaJh4ouGUPr/+4LXHIc1RcibgJY AAgLBz1gtlM4Jc7eIePZnXi7WaGWTrF07joI/w4NVZ4yz3I3RiLlhi+pjBntMZk3k+jY kOx3J/kkm7KVw65YLO3McNmUCCFnHewiGMvt5JMo4Oc/Mpiq1q9d0KWreBaEogXt2GL5 Dkmw== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87721-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h9-20020a170902748900b001dc91eecd64si2149584pll.146.2024.02.29.16.13.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 16:13:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87721-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87721-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 278BAB21283 for ; Fri, 1 Mar 2024 00:13:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2FC493232; Fri, 1 Mar 2024 00:12:39 +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?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= 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 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?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Mailer: b4 0.13.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792280641850826773 X-GMAIL-MSGID: 1792280641850826773 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)) {