Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp158990lqg; Fri, 1 Mar 2024 00:56:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXsEs0J1CNqwr9Wbq/g9aFhaVNVaAGTOYsl+FHkvti2/QjCc0Yk3KgWPdIZ4A274NKRr/1GH1WCHiJb7Hg6lle467InkvgOPM4EwARr6w== X-Google-Smtp-Source: AGHT+IE1ezL6Aya2ZyNZ4g4rBhqATQTVU0VO5D8xjtifzWOcPdE7jC6Jbs0TfJLy8aH55dqZ6IYQ X-Received: by 2002:a17:906:d045:b0:a44:5589:c098 with SMTP id bo5-20020a170906d04500b00a445589c098mr774819ejb.7.1709283394185; Fri, 01 Mar 2024 00:56:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709283394; cv=pass; d=google.com; s=arc-20160816; b=pXlc7mtTOmwQ4p9KzlxHbabwv4+nulw13reaqY+oMmm8c1023DrajX39+iLGjVCvzQ QAE1XNzLVkGXRsUZcQJJ33glEwM1dQ6KJ+EuFTHU7mxtgAtamCepWFHGxWAg1naqAjrC JPAt3jR0RO8UPmFe7Ck6Do49m4JAiHG/5GdoD/oFm9dnCUYUoR4wXXRStsCaNYJ7DmpI 6liIU+68WKwr1XwGZ+cYFll9MfSO2bmlDjWUF8TRSHvMYVZH0OUlqG4fWwgLkSNaE4T6 nrjSoqHTmI0vRWkNTltwtaXlD2lx0Q5Q5bPPwzDkJjg/y+pm6MV4CwYB5t7NbOg4fTL+ nk+Q== 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=KzB+0tg2di9bkvbR386BAa4RLnYZFdY85+LPnohL8sI=; fh=Hzjbts1l2ul/lcYy0lQXY/KZnuqwretJaXg40N4PpiA=; b=GuXcvpqXjDM0kSc3N6NWUALAXxczv9+NyFXcOrlcQh45UlosilMUzlSJc9BfPP5yxf /N3d/12lLV1So02DUcSZVb8lQfet82F661egJ+18S8V453aVe70JZ5x0zG/PEAFlMnJ0 Tkq0KIdrkVwnZuyck9Mlxp53w69ftJavjVIoyfII+qojM+L1iOMVrUhPpNa2YCFjxjTY /EnE3xNnROrPxPOEmtzbGcPis9cmpGuVXA8wKyf3okBvzmQVE5cU+dlrdi6ncvDBq+P5 MP826XXnqpCXgzk6vZ9BdVIkKhE0w/KXWtxHAcy1963xq/b6oA8uhn04ZaGdQilCc44W gahA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Y1zaEErm; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-88128-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88128-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k7-20020a170906680700b00a3fc1f03ad2si1212297ejr.91.2024.03.01.00.56.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 00:56:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88128-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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=Y1zaEErm; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-88128-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88128-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 am.mirrors.kernel.org (Postfix) with ESMTPS id BA0191F2158B for ; Fri, 1 Mar 2024 08:56:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08B2469E1B; Fri, 1 Mar 2024 08:56:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Y1zaEErm" 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 850A248CDC for ; Fri, 1 Mar 2024 08:56:24 +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=1709283387; cv=none; b=XpKrUxWCOFULWtkWKnScezCxBx4P3t7qOJsm5FbpT/2xQCR95FxNqziAhfmoWa2SClcRJfXkIgFWdZJyhNSf1gUtom10CAMCL3eq0ophkSyDaUkEkzB4SXGYgy4E6naiECEZVbhS8T9FOkZlAThSY9xMHphX4O/csDBUh70s8zI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709283387; c=relaxed/simple; bh=oSSbSpGB1xGIeGf4XwN8CfSvxw/vvGIdP+EG9LG6jng=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iVLHn71eq2lm0zrTLLLuXkKJZFJB/RYiQNsSdblDeSep2usJO6DQ9N+eqF2k2D+QygOOfnpWES2pGsCz6sNU81KWNg24xLh6QItotlDLiaHjuT6hhzT9z0DvjFHAvRukuX8KhzID5vBnnBRn3mC+eXO47++R8+e4G2cn03Q2VsE= 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=Y1zaEErm; 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 E7D5E899; Fri, 1 Mar 2024 09:56:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1709283368; bh=oSSbSpGB1xGIeGf4XwN8CfSvxw/vvGIdP+EG9LG6jng=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y1zaEErmORD6wTqO2hNh9AYi/oh6ybgGBjMz5svTlX8FG6Uqp5LcKLyFAhp2Gfl8B /Xv2yw8m2+WmKkzTzheOZndhF+KnEbKj7u83YZc+SqWtYA9/btpamz94HY4zmcLSAa HLACKk3Z3tWWzCvk2JwSx1txs0ZvBlmLJ7G32i7k= Date: Fri, 1 Mar 2024 10:56:24 +0200 From: Laurent Pinchart To: AngeloGioacchino Del Regno Cc: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado , 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 Subject: Re: [PATCH v2 9/9] drm/panel: truly-nt35597: Don't log an error when DSI host can't be found Message-ID: <20240301085624.GC30104@pendragon.ideasonboard.com> References: <20240229-anx7625-defer-log-no-dsi-host-v2-0-00506941049a@collabora.com> <20240229-anx7625-defer-log-no-dsi-host-v2-9-00506941049a@collabora.com> <20240301063020.GL30889@pendragon.ideasonboard.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: On Fri, Mar 01, 2024 at 09:44:36AM +0100, AngeloGioacchino Del Regno wrote: > Il 01/03/24 07:30, Laurent Pinchart ha scritto: > > On Thu, Feb 29, 2024 at 07:12:15PM -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. > >> > >> Suggested-by: AngeloGioacchino Del Regno > >> Signed-off-by: NĂ­colas F. R. A. Prado > >> --- > >> drivers/gpu/drm/panel/panel-truly-nt35597.c | 6 ++---- > >> 1 file changed, 2 insertions(+), 4 deletions(-) > >> > >> diff --git a/drivers/gpu/drm/panel/panel-truly-nt35597.c b/drivers/gpu/drm/panel/panel-truly-nt35597.c > >> index b73448cf349d..d447db912a61 100644 > >> --- a/drivers/gpu/drm/panel/panel-truly-nt35597.c > >> +++ b/drivers/gpu/drm/panel/panel-truly-nt35597.c > >> @@ -550,10 +550,8 @@ static int truly_nt35597_probe(struct mipi_dsi_device *dsi) > >> > >> dsi1_host = of_find_mipi_dsi_host_by_node(dsi1); > >> of_node_put(dsi1); > >> - if (!dsi1_host) { > >> - dev_err(dev, "failed to find dsi host\n"); > >> - return -EPROBE_DEFER; > >> - } > >> + if (!dsi1_host) > >> + return dev_err_probe(dev, -EPROBE_DEFER, "failed to find dsi host\n"); > > > > return dev_err_probe(dev, -EPROBE_DEFER, > > "failed to find dsi host\n"); > > > > With this addressed, > > I disagree. That's 87 columns, and the 80-col rule is long gone. It's still a maintainer's preference. I soft-enforce it in drivers I maintain. In this case I'll let Neil decide, as he's listed as the maintainer for drivers/gpu/drm/panel/. > Reviewed-by: AngeloGioacchino Del Regno > > > Reviewed-by: Laurent Pinchart > > > >> > >> /* register the second DSI device */ > >> dsi1_device = mipi_dsi_device_register_full(dsi1_host, &info); -- Regards, Laurent Pinchart