Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp235245lqc; Thu, 29 Feb 2024 16:14:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWg2t3fIMzUjtLw8xm2QKRvX7C4f7coOBw3tHbppgzHkD+lm2RKjDN7YMWFrJcuUVbFUiNokxgFRPtXUscAOtca/6wM1pj9sy/i+42pCg== X-Google-Smtp-Source: AGHT+IFqCs5gw/igCj2uO0maOP8Ed+OYFCQbkbGi10TUKSaB99YuPPUKc/wBvIOQ53iulHWorFAc X-Received: by 2002:a05:6808:130c:b0:3c1:d10b:374e with SMTP id y12-20020a056808130c00b003c1d10b374emr231662oiv.12.1709252056342; Thu, 29 Feb 2024 16:14:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709252056; cv=pass; d=google.com; s=arc-20160816; b=WVN1hiu+KY/kWSdqvKqwPX1jhG3yo7HMjyw0W/rr8JtctJAXYkhQ/mHFZi5vN6bvQ1 cngLqXcxkvRVkEBiryLEZLzUEU0xNbE3i60wv1umZG+nyRSpN1TDpkUqrBjtDSKyrwOv M5ICE1kBTFJkfgJfAPPWk8R4DggQa/gZzLrginlwwJc2SqD10wlT8Qzh0Uj2gb4Mezud TQVQavhrBPmiT6/4EULKVg0p18DobE8Vs8SnOTsk0cXALlosg0AAT34jZ6jA/xiJDXzg juOWkQ8TKJjiPsr3Wy8Eqv3f8G48b5jsjJpU+CkrAxkfqAXHLiXO3SSKpUKws3rpumgP 3+GQ== 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=zz5kR7mG6e5NsdwpqHbvSi3t4GCs4tZxByx2jgHJBHo=; fh=EPbsNJMLwlXYTg/MTuk9bwilsoK94uNp6NRacKCAfCI=; b=KH0Sx3bXSUXu6lYOa7LVLVmB430nvAQxxa11Bdtjy5EbfNrB5ZYU8PNLJMImRL60BV h/lMrwh1AkssY/93kea6/Yy8sNYB1w+C/dL8bv9eOPPEMf/Is2ou+pVBjP/kvxCggm9R /03CkoNfmAcgc7EH0McVvTRY3fEg+N/rTisQvIAiizbPm6pjNMn0L/lUAGJBlgF8QY3/ DEedz6QBJPfnOxhbQ7+mrzT7/KE/u+kOakI9cxZHOu80jrCRv2FK7d4MdPAkrsxwrK6I M0t0T7sbBsXB+lTAMlkflMd88WC56zpf/6YVSL4G5KafebxkhP+hx4buOp3FuNSjXRdM BiwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=M1YLZif1; 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-87726-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87726-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 cu13-20020a056a00448d00b006e148370b87si46665pfb.205.2024.02.29.16.14.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 16:14:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87726-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=M1YLZif1; 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-87726-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87726-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 048C4282C21 for ; Fri, 1 Mar 2024 00:14:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4367C1FCC; Fri, 1 Mar 2024 00:13:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="M1YLZif1" 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 0EF2E6AA2 for ; Fri, 1 Mar 2024 00:13:01 +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=1709251983; cv=none; b=PjNoqHezDXdCJt5aEEWDnbZzu+bTcJxTAJrtcptndmq2HZZitKR3/Dcsw36zpPOkwBIpnoWcVypCPUnY3+3H39jM/F2SP92OFBb+L2zioasvsS+RFTMQAHlOWmC14ZciTyZXW5NQKpxX4UiZ1zoHNH8H/fPqeC89FYGPsJGc4EY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709251983; c=relaxed/simple; bh=MYKBxuR+aJph7D9FYI37RGyFCJkN1zgdY0Ybz9nXzqY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ahWqfKuZiMbQWqWcdOqD3w5Eg3MDMiyD/gnjyBTD1Hl/tfNTea5hGIl4Xs/7VmtRlX2WM4v4tOR+Ea9kfP57NwdegbeI5fUAi/3MUsklLXKq2OSfQd4KhU+7U30dGaJQbjvzMikA0IlxmV6gX86BWxRwEhPzXTOeFuMO1XvLDxM= 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=M1YLZif1; 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=1709251980; bh=MYKBxuR+aJph7D9FYI37RGyFCJkN1zgdY0Ybz9nXzqY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=M1YLZif1WED+vvuhoA+scIcRTPnw98+XmpYskhv7KfiRTZHliAuL/NFFZwRaikprw 5/kPyPgu+FNAttkzLubD2cCK2Y9EseyttFZrq32z3e+tH4VM4XT1a8lzAl+2JJTiY2 a3MYMdMeHRYcS+hzq0bi5oKBS832zjV9QIzM0svssSolLEF/cgs6mIzRhzPuPcgVXq 3/HWsNnvmiEj4DMlbMpsd7mbO5Cv9QFxBslrY99kO2YhDnq9/EhRKsxC8Cxo5qbeeK CRlZvaITDZW6gdhNvOyuXjmGggHb+LlsoZzZqLWGkPpyW8/lxG0s3JjW4kM+Vq37a/ mdGKQOqTVEt5A== 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 31A22378000E; Fri, 1 Mar 2024 00:12:56 +0000 (UTC) From: =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Date: Thu, 29 Feb 2024 19:12:14 -0500 Subject: [PATCH v2 8/9] drm/panel: novatek-nt35950: 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-8-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: 623a3531e9cf ("drm/panel: Add driver for Novatek NT35950 DSI DriverIC panels") Suggested-by: AngeloGioacchino Del Regno Signed-off-by: NĂ­colas F. R. A. Prado --- drivers/gpu/drm/panel/panel-novatek-nt35950.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt35950.c b/drivers/gpu/drm/panel/panel-novatek-nt35950.c index 648ce9201426..028fdac293f7 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt35950.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt35950.c @@ -556,10 +556,8 @@ static int nt35950_probe(struct mipi_dsi_device *dsi) } dsi_r_host = of_find_mipi_dsi_host_by_node(dsi_r); of_node_put(dsi_r); - if (!dsi_r_host) { - dev_err(dev, "Cannot get secondary DSI host\n"); - return -EPROBE_DEFER; - } + if (!dsi_r_host) + return dev_err_probe(dev, -EPROBE_DEFER, "Cannot get secondary DSI host\n"); nt->dsi[1] = mipi_dsi_device_register_full(dsi_r_host, info); if (!nt->dsi[1]) { -- 2.44.0