Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp105975lqg; Thu, 29 Feb 2024 22:30:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVVvc5aompl34IrsIrY25scK39P4Ag37Ewq0QZtDi7O1dBkdjHfNsqdOY77KLYOrrCjMQbRY5/b1sHsYVzkpKJKBLS4aFexXvZ1JULYkg== X-Google-Smtp-Source: AGHT+IGIpd+yTr+/UkM2sWqoNWFbVxj0ttygb5g9LsuYlM3RBFme1TKWXNWfHJR69CD4gSNgK9sN X-Received: by 2002:a05:6a20:d487:b0:1a1:213c:6533 with SMTP id im7-20020a056a20d48700b001a1213c6533mr6527092pzb.22.1709274638678; Thu, 29 Feb 2024 22:30:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709274638; cv=pass; d=google.com; s=arc-20160816; b=I5UxSwH2tppJvF+0+VMI3cj2AM/c7ACU8l3c8SvxroDwXhR3S/Pbea5qtfJunxdKXT z/e0vMpNz05y2cTiLXLcwKEUy6nK4T7j4ntn05ZGhp4LmirXoFy0f63S97RAtO9oY8Wg pF5DDEQT/SAtd+HgMo84kaDoIuZ3/Z4hkxdA4pemFS0o7EjDDyDZEwX2VLdPaI9TphS/ hCniJUS86AiJcvBaYPPpU4gmmV55lRd3aAnYta7T/ChxALbeUofjhFkNFj0xJCTx1H6v XcVD6Yn0sDn2keQHZNxBEubhF0jjO+20WWQ7hjIMgXwAYgWGG97qdZ3YmRHI272HxhUk 3jjw== 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=65QX+ny2eKNR8EzcaGmzYiO1H52gPcqRhSGA6PjObaA=; fh=4xd92tVc35GIrVMcihk447j1L5gm89s1q2++ftl/SCs=; b=RGeW1WDW8ouuSoRhkckxyhV9Ut9e1Loro05UuNp2Ituktw26v3GvwctdUdgFGrrhDX pOM7Y1q2QMRa6/YehuqO9odY1rW50LaAvNIXj+RuqIm1tltSu0AYg8SKoVUEDU6FIWb/ SwhaEhflPVtuzIwIKZPHRTBaA5O/cFbqQCOshkucKH29IplNMerBo8qHqPxDzzNSXdY8 hbN2qmdnzy3+dglM657o9HqTolWJWzzZ86RdFib9Gsmik2H2KI4uVwYCtMZDrRVh/HDU /fY8pM4PlKE0Cjf+yY3crv9K7gd4iD9hsvnVNwq91YEFy16IvPrIehN2jwItLoxOobah gGKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=sjuvuVk3; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-87954-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87954-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m17-20020a63f611000000b005cee0fe93aesi2865582pgh.472.2024.02.29.22.30.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 22:30:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87954-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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=sjuvuVk3; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-87954-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87954-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 5CFB12880BE for ; Fri, 1 Mar 2024 06:30:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B7775F87D; Fri, 1 Mar 2024 06:30:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="sjuvuVk3" 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 8A9F45FBBF for ; Fri, 1 Mar 2024 06:30:19 +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=1709274621; cv=none; b=OxYiO+qTZ37xxSo3J4RwDbvlIsReNdq4fa7c40lD1n9r8aBW1iL13UtRacBhfou2PtKa/XcP59vTaAJRhozIRPjyugmW6lH1Ek/Ay/sJup+uEB4IZGLjv3si3msjFvz4IWfAkfZenGwssV/EebtkqIrcR40VUm8u4ARu91qiVME= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709274621; c=relaxed/simple; bh=yQbUQsOdFYQQXWH7Fu3bQwR+ZertHCl0TbbU2bMrM9I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ufdQETrDAEHT/vrAcAojYIiEk7feRnKX7LKVHGPNyj9H2j7a7KDv+kimVzjXZShzQCT8ybqVt1vLCfSuFCvI95YZzUgnjhDtWBwiNzmQR80o6A66bCsPqntSyvKe/6NXkTRgo4jECM2F26cGKNpS89pLlIMjs7eBlgf7CHBlfBU= 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=sjuvuVk3; 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 B21AD15EE; Fri, 1 Mar 2024 07:30:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1709274603; bh=yQbUQsOdFYQQXWH7Fu3bQwR+ZertHCl0TbbU2bMrM9I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sjuvuVk3mvhPD4qOQdsUfQL9rsF7Ebg/5dWQ0amqTckNifDDjFNTOQRMzgM3usEBu /py7bYR1hX+q7b0FmLKseEmEHuUoiAxuU6Eypnw6UXw0yQk6hiBSEOqggJocR7sJgB +8aPDIfsBp3wgLtdNcPC7z1VReju+5hs4I/6PfLg= Date: Fri, 1 Mar 2024 08:30: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 9/9] drm/panel: truly-nt35597: Don't log an error when DSI host can't be found Message-ID: <20240301063020.GL30889@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> 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-9-00506941049a@collabora.com> Hi Nícolas, Thank you for the patch. 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, Reviewed-by: Laurent Pinchart > > /* register the second DSI device */ > dsi1_device = mipi_dsi_device_register_full(dsi1_host, &info); > -- Regards, Laurent Pinchart