From patchwork Fri Mar 1 00:12:10 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: 208570 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp762354dyb; Thu, 29 Feb 2024 16:13:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXewLlIcc27uqGcEtFeioXBz4xgVL+2m4linTUucfmF+whNMSzSD7KcJBABkpusPKGVto3c/rmw49KzsbQqWIywy/GSew== X-Google-Smtp-Source: AGHT+IFoZyr9VGq4OuuP9uR3qwMsvtd08xHndghrCeib1NBdeO3AQ8gSKM441TOM8P5nhQb1vlBt X-Received: by 2002:a17:906:489b:b0:a44:52c3:9003 with SMTP id v27-20020a170906489b00b00a4452c39003mr111894ejq.72.1709252012516; Thu, 29 Feb 2024 16:13:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709252012; cv=pass; d=google.com; s=arc-20160816; b=JxNi5aKJpPywEUHUvAfjbM5UCIfbb0xh1prsQDrjAI4D7uAUG+/5RIdM5KP+8zG8qh KZAWywU7S4myc1kjA+WHVDZQr2JY/2vyWzhuNyvUtqvj0AkSRo/MLLS1agd2+Lrf0SPs 99hxK8zwKP9Ur9gETGYRYzWwz/lt4bXOKkPyGl0DxMZ+FSI0KBI2QzwNS453INXtZNf6 otXR9CbnHtHu1C49noDqzf6YJuDvnnI5nletFGW/QJWNwVph4yozzs+Tl9vlRbujFtAd shvoaAbpu3GJEkXSeUrPjeV71zAJr0/Wili1zNGgyBqoMS7dn9cAe0VcMHC8RqMaS/DO 3JyQ== 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=UHAdgTtcYR8u/hbs0r/AN8yppNLahtPaKoia/pq0DzI=; fh=EPbsNJMLwlXYTg/MTuk9bwilsoK94uNp6NRacKCAfCI=; b=wZV2c2+Htx7BxLk2T2t0Q+zPzN/NKw3+utwXck1mMbiHCRa6JxzLgAGoP1mLogn04k PBAG/vxUfYa/n5F/Ai73qvVgP2FkTLr69wvGhSCLHnOpUvQ1I4ANM+xu2/6dEA6kbGgx TOotjUpj/RTIWdE32MMNw999DobFmmYFQO2Z0f+PDW7vmYjIqVw5g3H/FTH+P1E+fH4k iNXbXJ0VRZzVPOmmcmOQjK7xBxO1U6fua42nT6G3iK43MPpMzI1Z4MYzQxWJis0zwPTv EnAarmvqfWEx0vIitWRSCCXfqZXq/+yhSp5nQgsEZI46BpPEB+1ZPLe7nHfIiG547oZl RVKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QMCvJvfO; 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-87722-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87722-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cw17-20020a170906c79100b00a440a8a71dcsi954472ejb.411.2024.02.29.16.13.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 16:13:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87722-ouuuleilei=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=QMCvJvfO; 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-87722-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87722-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1CD5D1F229F4 for ; Fri, 1 Mar 2024 00:13:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA6E53C07; Fri, 1 Mar 2024 00:12:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="QMCvJvfO" 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 9E93F3C04 for ; Fri, 1 Mar 2024 00:12:40 +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=1709251962; cv=none; b=WUrqHuWxrKZYwGg779GEUhcdgoCLWePjIe8mUDFMcYtpp0fCcmECNHjmbml+x00QCHlkgc9YEx2Op4CXKaapnfG2hPqiN74VK2y9CDuAHDf5U3zh9yEFvgTfm+e4uoD95agSgyb6c/bF6Xex8hjCvHzEZIQZjnbuRINEPB72XBQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709251962; c=relaxed/simple; bh=iH06xccM8Cux1F3BhJ2YYDHKnbi65kEA+R8Dz6nQIhU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qZnv7I9FBYyj0YdT2HUJbsNXBMEsd8emFznyFgRLykky1Vii1B5Da0P82vGxKW8bA7z8yvpqfXVvr91jZdVCYCyYxXSv8yY/r7d28KS2dYJgjceuPqsa0nidA+ALcJAYOk0kSzM0yKoNkzyDVXuk3kXys3fLSxfgM9TebFGTNsc= 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=QMCvJvfO; 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=1709251958; bh=iH06xccM8Cux1F3BhJ2YYDHKnbi65kEA+R8Dz6nQIhU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=QMCvJvfOb47s8BTrX0J8KLUOyCSWQFMsBlKURkN5Iw8iy2JCXUPnT1XgpLe5jYetj I7sbsjq8rs2nSsg2sCt1bsy1BfN4ACvsXxEDFAP8nIVgA0JZra/2MuIP/4H3Ats7Ea Nb4XKvZov0gHj3KHnIQO/pA1L7KoQooL8mpZSfzV4QyqpubiltMDDZ9zNuqQkuGGFe b2QjpJD+FN4NStVvM4H0/VFql14kh89WNclXaT8XNe/8z/xx0BNa3Jzz+Kw5IzqPxA xwj9O2qma7BGQ+NMGCLO5tMTd2DvzcNKr/jZ3REDPV+wfyjft3mG4R1fTGSWHNDy8s e21co4cIe/pGQ== 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 8B471378000E; Fri, 1 Mar 2024 00:12:33 +0000 (UTC) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Date: Thu, 29 Feb 2024 19:12:10 -0500 Subject: [PATCH v2 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 Message-Id: <20240229-anx7625-defer-log-no-dsi-host-v2-4-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: 1792280638098903334 X-GMAIL-MSGID: 1792280638098903334 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 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 9663601ce098..89bdd938757e 100644 --- a/drivers/gpu/drm/bridge/lontium-lt9611.c +++ b/drivers/gpu/drm/bridge/lontium-lt9611.c @@ -760,10 +760,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)) {