Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2444845rbb; Wed, 28 Feb 2024 01:52:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXyR/zkE/q4o7WaNPtRTzRtceHpsh9W2DxcrhOwa1EmxyBPbMt9xE90rBxVj0Lhnta0ntGAedFe558696ktCmgkzCewFzhot1saLK2apQ== X-Google-Smtp-Source: AGHT+IGK0U8XY2LEwchZz8mMrwwOcyUofW/cX4CDnu7L82PZteALVcPE2F7RGceeSRS1Xf0a+GnI X-Received: by 2002:a17:906:1917:b0:a3f:47b9:2969 with SMTP id a23-20020a170906191700b00a3f47b92969mr8755584eje.58.1709113960804; Wed, 28 Feb 2024 01:52:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709113960; cv=pass; d=google.com; s=arc-20160816; b=DDlCo684QCrI3fWrvPxExJ9l13MpjxAYRKDFtohuD1ujc/gRcX1pI7yRf2PdyNv04o I3L+LLPR4S1ReVnsUVw1sjqsjlcAPCAeRlOZge5YhPlaenq6s3TEblLBMRtJ1WzVYXJy vHb0B2RdWtWjM4HWiBYFO0SyZq6YnYBekY0m1wSBYCuKqK7/+MzrWsOX1Ljdeilg19IC 4VxYdBPUFnKeHMtLUBZPl3RY5LUykxxIAlxVyJStXmLoxGX5dfTR689DZVxyscNH9TX9 uJy2Ehk1eP+g+wLC2FmgeilrvLD1HrgSr+hIxBTgHMvfOzPVt7IlXPIBOfmXQNpEsWBJ Wshg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=LxxU4X8QYe2LFlpcHqdXgjj68H9HKwjfQi+iqBgz630=; fh=KRPygDEdghQ1FUvrGuJ8Zn58r/ZpjOi8M//rfcyeXJs=; b=mK1+7K0M7NjocI9+sLi6Lrnv3Bd/H4z1l4leA4Z21VIqnur2MI78D2X7dAWUHiGRik 76wzwh6NoNI5+0qVBWdZigEmd/+v3qru8WV3pYKOuYt562szPJYgVvwHRdAQNySs9HXN kvKZUKcWAxpDNRgqeunGym4od6M8hkbEmhVJ/UqDHQWCdTlmdY5+/FtwH6kWXmTWthIX CuMMxcLtAVGsC3HQbtmdsr5g0CZPUkTGm3SyyA6gGnQAPehH9pUATZEPJTYmb2fx/1HB eWWmtg1/WH0ZdQWADw4ecqnaRIkPNfJk+ifztx3ROwDk22o1m/FLgqKuDBuVIVyamWjq fK7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=5Kl+5hJu; 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-84794-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84794-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 d26-20020a170906371a00b00a43873e798bsi1591627ejc.259.2024.02.28.01.52.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 01:52:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84794-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=5Kl+5hJu; 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-84794-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84794-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 C4B441F269BE for ; Wed, 28 Feb 2024 09:51:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9535A3612C; Wed, 28 Feb 2024 09:51:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="5Kl+5hJu" 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 371DB374C3 for ; Wed, 28 Feb 2024 09:51:37 +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=1709113899; cv=none; b=V8JOG0MPTp3M0w0mgveZevvbHjR9RQVHNglsOQVQy2dPujpwseuGrlR1hZlbM2mZOPHR0nSuD//OJpmv2kdF2H9qIBOjVQAxVjaywDgGx3tr2Efps56O0rCvep6SCjqHkgQRFjkOlBZkOm16ztl8LJVpjbzTXOH3VMrrKXkCBCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709113899; c=relaxed/simple; bh=G22s0wkjpFNZosDALoAG8Ufc1M9DBCSDGtlIAeBbjoc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DWwZUfwgPSDKn/lQOKTgJ3OWDseC3lUYkBJrcoz/or+C3p8OD+k0s+S8GKs9a32ESxW1OkuRKUQVdfs6T82f2mGYN2HPs479JALNqpaksaxhHFHh2mgpqjojT0PYjWGLEQkGrFZoT4xnFX+nFm4512Bli2ub+8+ifDhU4NMS6CQ= 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=5Kl+5hJu; 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=1709113896; bh=G22s0wkjpFNZosDALoAG8Ufc1M9DBCSDGtlIAeBbjoc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=5Kl+5hJufOEgvXzaCb1w2RqImqwe5YOsnx7tri7w5EMx3e6ocSZI7w6/me2KaH+aj mI0XZaEqLMVmEwkIzCs7OuUnFcXX1hyz8LIA/GHEepkIz1Mz0/iHKIceFzcZbwiL8n OjaUcWOejQbd1b+uxoTuNhtDLo14ts7xH/eCa3EMJ7z6AmqOAu4CJ+5kC56C2sXxDq C/7o9UCqy/Or1uka7QFaCGvDwoKuWA12XTk7R5V00ghlUDmEXkhbvQhwv6W1Npvkma keuTjoJdYLiSBwVb6uR3jlNXP0rdnl9oyJy2ZWFLxYqLtMR3c9ZqRz97eMS7GhuXxL csPBL71Kryc9w== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 4279F3780029; Wed, 28 Feb 2024 09:51:35 +0000 (UTC) Message-ID: <4c57d1f6-3114-4789-94d4-03e78852cbef@collabora.com> Date: Wed, 28 Feb 2024 10:51:34 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/bridge: anx7625: Don't log an error when DSI host can't be found Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Robert Foss Cc: Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , owen , kernel@collabora.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20240226-anx7625-defer-log-no-dsi-host-v1-1-242b1af31884@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20240226-anx7625-defer-log-no-dsi-host-v1-1-242b1af31884@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 26/02/24 22:20, NĂ­colas F. R. A. Prado ha scritto: > 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: 269332997a16 ("drm/bridge: anx7625: Return -EPROBE_DEFER if the dsi host was not found") > Signed-off-by: NĂ­colas F. R. A. Prado > --- > drivers/gpu/drm/bridge/analogix/anx7625.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c > index 29d91493b101..4ee5614a2623 100644 > --- a/drivers/gpu/drm/bridge/analogix/anx7625.c > +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c > @@ -2076,10 +2076,8 @@ static int anx7625_setup_dsi_device(struct anx7625_data *ctx) > }; > > host = of_find_mipi_dsi_host_by_node(ctx->pdata.mipi_host_node); > - if (!host) { > - DRM_DEV_ERROR(dev, "fail to find dsi host.\n"); > - return -EPROBE_DEFER; > - } > + if (!host) > + return dev_err_probe(dev, -EPROBE_DEFER, "fail to find dsi host.\n"); Agreed, but while at it: 1. This is not the only driver doing this, so you might as well go fix all of them in a series (toshiba tcxxxx, lontium, chipone.... check them, the error message is exactly the same even, that'd take 3 seconds); 2. I've just noticed that, in this driver, of_node_put() is never called for the `mipi_host_node`, so the reference is never dropped... but that can come later and not necessarily in the eventual series that fixes the err message strategy. In the meanwhile, for this commit Reviewed-by: AngeloGioacchino Del Regno > > dsi = devm_mipi_dsi_device_register_full(dev, host, &info); > if (IS_ERR(dsi)) { > > --- > base-commit: 2ae0a045e6814c8c1d676d6153c605a65746aa29 > change-id: 20240226-anx7625-defer-log-no-dsi-host-c3f9ccbcb287 > > Best regards,