Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1707741lqp; Mon, 15 Apr 2024 14:51:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUixotppXxytL2bIXe8qdQHOfU0UxqUBGzUXz9RjDIhW3FaJBT5N3m9aT//tjzqzWRa8drjmjAFA+kZKTFWAp/JDPgU7eiO63U3h9iWGg== X-Google-Smtp-Source: AGHT+IHRsNYTKKvnMr6XIyXnEr+D8JNSQcfdQ7g73ovRYd9eY8Dl2+H4dorh4Gpd93RpEM7axciq X-Received: by 2002:a50:cc85:0:b0:56d:c721:d0b2 with SMTP id q5-20020a50cc85000000b0056dc721d0b2mr7832285edi.33.1713217880504; Mon, 15 Apr 2024 14:51:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713217880; cv=pass; d=google.com; s=arc-20160816; b=EoxD1oP9T09+DPDdxXar9cD39an7k2vPkvreeEeowgdYW3jjaqDp0bCAaXgm1sWl4N UG7OZ32moCZrFPRVrknIm+fLqqWVUKHQSXGXV6+48e+zN/LTeIUTz8XyWDUQn+NgYWoV TffaIAMd98B0QOSmbGyanb2dezSuNFWTm94BIVlEs7UVZ4sMooMEuV31sHLkBzdFJGTP PWevToitxsUy/pP3aAdtJqIGmRKs6yghj4mVZX3L/chLhQCLzahKmy5IgjkQopNhLZZv 2n5tP3sROThTTjm04YysLouSFzYseNCzJ1ANfHYCns5roYAxm9pfL6PTEubfZvAhxF+6 lHhA== 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=hg+h9anyHERFrfCfrqNJ2ZwkEljLpq2QkZDCZWRGYLU=; fh=cWSJOWGJAjcdyFDFoN1PB+PJKfgvopPPk2h8P3Abz50=; b=p2mMEy0FQUC5X4AZTysE9E8SSyLiTv0fl56x3pPxo4jgqxxnEerhRvDcnv1FovDMHA 6lHTStQcGfSuwSRNWOxst9jkWhAWJrPoI5/PrvnLUtB23Un8qILEn50d+7MJdIeFr7Yr Sk1fhe2/yuQnmUr84SjOcvj5CwtpYG0LxRaAGuUJciQdJjHZXNv7/iBQa/UhbUymlqvv zUPEgIg2SHTQwsvdOSESoGkokqZCxcVslPAzQB6DIygjgO5jOQ5soDGtUwkxEL6lOgwc V5R4bOL/MRmKm4ov78VxAVTTPtfoXq62lYWHpvGEyxQi6HJolxFBIj4I+423jJhjBZ2/ bY4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XLBue5P0; 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-145953-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145953-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. [147.75.80.249]) by mx.google.com with ESMTPS id t19-20020a50d713000000b0056dfbee4e73si4884250edi.209.2024.04.15.14.51.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 14:51:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145953-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XLBue5P0; 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-145953-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145953-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 19CBA1F22281 for ; Mon, 15 Apr 2024 21:51:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AE25158D61; Mon, 15 Apr 2024 21:50:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="XLBue5P0" 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 031C615A490 for ; Mon, 15 Apr 2024 21:50:19 +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=1713217820; cv=none; b=jZArHsMcwQmICI5CFAfxoBdxW82Uo+KB1GcvOnL5NTxS2PZ0EZL2e15QT7Y2qHSYfHY4qqsXm/Vv0C+S6xvO+cwfJF3R+e4n6PE0OH6TBmFAVr2wNQKuFEGuAnRQuq0QOqhKGxIxYwoKlPCCXy7Q8246JIlL/b3cdXSB+25zYlo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713217820; c=relaxed/simple; bh=XO/SFxxPX4RjdOyW3lNuttRRCQa2YMLS8do8S0ZonKM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gPosWn6zhAutZ8BJ2C3rcKSHXD9TDFiqRe5bHWzFueQu8XIilywTdaIS8/eAmvELFgL3EziMXEozfZm5riKyknPp52AryaGNV90jEaIcOob0OWN2eiEk5ro5mjYaPeeYdukV40psFu9+fzduT/2A8RK81pUxbqZcR/bi12CAnIU= 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=XLBue5P0; 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=1713217817; bh=XO/SFxxPX4RjdOyW3lNuttRRCQa2YMLS8do8S0ZonKM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=XLBue5P01Rv1DloNVBYNVq8DR5mpbFvFvA5FlXflxbs7vCYGa+rUjnM+5Z9PJL28t WEPC5WRuKqcmiQx0EGsRJq54p0JpakHAjCvNm/VFg6NIa5pArZFnhZILeAPqmTqFKN FAtHpgUYIsTCKHUk3vVZjqIpDs41m4M7JV9gQorvN1YNLxzIMuiiemwkXkyamoAAQe dCrTZQ1Ng4mkjTmvh2brJ7yGBCNgmLwFPi609Oj2Dhf+SI32im7IQRb46hzRhelOWZ 2FA8eJAUAQnBIe/WY/+1XutTWvngdo0FZ4XezVOxLh1JUi176ZF4uJAoVdYFgDRWCR FS3xt7YXwZG3w== 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 C56B23780016; Mon, 15 Apr 2024 21:50:13 +0000 (UTC) From: =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Date: Mon, 15 Apr 2024 17:49:36 -0400 Subject: [PATCH v3 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: <20240415-anx7625-defer-log-no-dsi-host-v3-8-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: 623a3531e9cf ("drm/panel: Add driver for Novatek NT35950 DSI DriverIC panels") Suggested-by: AngeloGioacchino Del Regno Reviewed-by: Laurent Pinchart 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