Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp105623lqg; Thu, 29 Feb 2024 22:29:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWmAJjCqfRb0h64iHcqTMl7TUWEjHFyB13pOLPxGZAIUqDZHq9RxeN4eT5+StLjQN8b2r539mY00ZMQNhsZ+NWrU7sbhbuejT2ovptVhQ== X-Google-Smtp-Source: AGHT+IGEyYfnSJi6W7BrnslbegzkmhSFnefvxQCqK9xKaSDCKOxoHa+f5ISFzqmx5G8kPNxB+05C X-Received: by 2002:a17:903:32d0:b0:1dc:693b:4074 with SMTP id i16-20020a17090332d000b001dc693b4074mr960365plr.7.1709274576288; Thu, 29 Feb 2024 22:29:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709274576; cv=pass; d=google.com; s=arc-20160816; b=UhVUIdTAK53draDfRiIUnU6lmZhMh5AFPYEtXlhrFzZkfP03oGtwHHDlxuHtXnSRsR hf9OZO9V6ozNCG04qlyqF43OAKU5nZcF+xrS5cpt7F5mJFUgWHMn4Iq9To0MNxsZFBXL REVKZoCI0sKuuWpbxAbMNcw+DB1QJXiFFLD9AQqvrCsTJviC3NRORwpSMHiyR3oT1hkw j/ngI2hX23askSOXD0R6s5c50vBovaFL2y6/TSVm7/D4bfzsanPHNYNpwHzEsmkKnKKo P0oGLwe9aofvMlnwVXk97ltnd8Si1GJ6WNJLLOGCNIQu0CB+SaTUt8kzbkeweVJYgAcS 5TVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9f727DsM/r/Tz4gNklUY1rFEP/ZyLQV052fsk2Vwws0=; fh=4xd92tVc35GIrVMcihk447j1L5gm89s1q2++ftl/SCs=; b=qTR2jCbXS4M15NmvBZJ7Ea5YCAK0yUQmO5xQLk1CHZVfDXGQTQvhsAC74JSxKcvn5U fhccJE+OySF/wPwSemysQQNdUpkN3rOle8RHYjwnrBzhI7ccV5lW3fzdAXZEd8qR6Wzz qpcJET9zGHPP9T/Auu0FibSeTYYUczfW9zIlo8hn5lAS7p5kqJH+oOJDmWPzGobnfhG3 S9tNuwZUUviqvIyJ/XTjYYlYFNoknJmhCRgNcLegm/Zqolwwhkf1xqoZC5d31KfWtdHs HJRe2m84zjRVpGXKK1Vf87Lw0jaeemrVfcNzWx4L1tCf0bABiqNuJ1U+6UAFWuYw2EV3 CDtA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="voaQ/OQU"; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-87952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87952-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x20-20020a170902821400b001dcccd329fasi2753134pln.184.2024.02.29.22.29.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 22:29:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="voaQ/OQU"; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-87952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87952-linux.lists.archive=gmail.com@vger.kernel.org" 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 EB535287F25 for ; Fri, 1 Mar 2024 06:29:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A44F5F84C; Fri, 1 Mar 2024 06:29:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="voaQ/OQU" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 B787F3A1DC for ; Fri, 1 Mar 2024 06:29:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709274569; cv=none; b=kscgdC4ioWKBkqz7xl5EFPpJJ4Hhs7dOnbX52htL6o5sq859PHxUyHHA2UHYTHLyRkWk8D2tt1cdudyFOVcwzh8ngbkfL/QAmFvTtXEjPm0JBE9Mek3MfjgSi+Pc6vCRR64EC+ZwI7G1yjIjnHHnENjcUzCK5BBFuQn5YOdEoM4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709274569; c=relaxed/simple; bh=aeGiOvUNWFB44kw5uf/9p/wmucL3JVEsUpe4CuPUWEA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PXONudr0JCOP/nse29GhYbYTcGBL2Wub3MxrPg5rOchIBM8VsdT2knezf9uRHiz2zHWkpy3u1fWX8ieAGTLOS0OQsaW5LIHOY4rjXyq6Mt9f4kral6U2IKWmx8EJxp3bKHAuH4zsaoMTrsyYr0ZTMGFtqHX59V0LxmWXOgg3KfI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=voaQ/OQU; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (89-27-53-110.bb.dnainternet.fi [89.27.53.110]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 41EAE9CE; Fri, 1 Mar 2024 07:29:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1709274543; bh=aeGiOvUNWFB44kw5uf/9p/wmucL3JVEsUpe4CuPUWEA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=voaQ/OQU5xC3qLX5hG8/6UBRTL7Hcwa1D39IHDyTqxiNPAIylYE2vEdH1x+BAZl6F SS6IHESFOkEucozhKW9m+gbfUt3fCbubJz0QFflZas+SZLyn5kKDhb2Z/IB9dyx9Oi G/TSTeinLVtk8N/LzgNyM3F9w2nY1poo7yUwZH/s= Date: Fri, 1 Mar 2024 08:29:20 +0200 From: Laurent Pinchart To: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , 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 , kernel@collabora.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno Subject: Re: [PATCH v2 8/9] drm/panel: novatek-nt35950: Don't log an error when DSI host can't be found Message-ID: <20240301062920.GK30889@pendragon.ideasonboard.com> References: <20240229-anx7625-defer-log-no-dsi-host-v2-0-00506941049a@collabora.com> <20240229-anx7625-defer-log-no-dsi-host-v2-8-00506941049a@collabora.com> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240229-anx7625-defer-log-no-dsi-host-v2-8-00506941049a@collabora.com> Hi Nicolas, Thank you for the patch. On Thu, Feb 29, 2024 at 07:12:14PM -0500, NĂ­colas F. R. A. Prado wrote: > 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"); return dev_err_probe(dev, -EPROBE_DEFER, "Cannot get secondary DSI host\n"); With this, Reviewed-by: Laurent Pinchart > > nt->dsi[1] = mipi_dsi_device_register_full(dsi_r_host, info); > if (!nt->dsi[1]) { > -- Regards, Laurent Pinchart