Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp162468lqg; Fri, 1 Mar 2024 01:03:40 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXmTmp9jr/BOs5DhRS1R8wQBRkQg0dhCFVYpt8lUBkmRlwmnIjXhyKW9t7cqXyjfW8wvsK4rr92xw2iqa2Yo3DM8nAUb8fzUuFuvlHWyA== X-Google-Smtp-Source: AGHT+IF0HHv+DL6rzgMQOc0wu1mY0s3AfT4yrq6vUefVkn3qi6yr25hhnRowBmhjqMLK1aJuJyDN X-Received: by 2002:a17:902:cf4c:b0:1dc:cdc5:31c9 with SMTP id e12-20020a170902cf4c00b001dccdc531c9mr1252391plg.15.1709283819978; Fri, 01 Mar 2024 01:03:39 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w24-20020a1709027b9800b001dcb00362bfsi2984117pll.535.2024.03.01.01.03.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 01:03:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@collabora.com header.s=mail header.b=DtMW0puY; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-88110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88110-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 227DEB2281C for ; Fri, 1 Mar 2024 08:47:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAAFD6A33F; Fri, 1 Mar 2024 08:47:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="DtMW0puY" 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 563586A023 for ; Fri, 1 Mar 2024 08:47:08 +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=1709282830; cv=none; b=Qhw/QCXzO8GfO2SEkbMlJ01+222RSe+lcFPJ+9ZAyh+Ml3sbs7C0kG/s47T+9nKD/1f90+Ryj917UMAW/6ZtgASJ3B64EOxrZ2aJMzHSeB72JN7fncYdQWiic6UVlVZq2ySrRgep49W+Aur0NG82K0IefeRKYHLCF7F+sFu07Jc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709282830; c=relaxed/simple; bh=5MxkYGIx2DdVeJ4zAV3mxPPY60bkLJwsDM9R11jSvKU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nbpzT6Wkafbpwiqxs+X//CmgXQZK1Dnsko9dXL8A+zT0tHCzxV8rJ+NVYUdzu014GMH5bWnYhYZaYcUqJiPtd0daNalZbwK12GWEUs1cpOngIY4t3EHgFDKw/LQNFMmZ6ihqrBP1LtYajB/uDs7TwhmigdmtL9/4xvQaH+21iq4= 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=DtMW0puY; 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=1709282826; bh=5MxkYGIx2DdVeJ4zAV3mxPPY60bkLJwsDM9R11jSvKU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=DtMW0puYArAtKYfVDkcFg4Yb57s2iOxXvnrkqbgfb5A1BsQPQyVnpOqAzOU0/SbPl 0QlQ6sWsaP7Y8IMz65A2UsaGWaOuauKCl36wV2S4EDF9hjIrxE99hCT9ofSZoI+Fp0 dxEPMbTPpa0/DWM517QrTgn5Xc3NYvW3gh+p1iQIDj/8gI9PXVaqcyG606cQDCMtSC 0p0nkti0Osax5MnZzd7fGQBLZGyjirdK2VKczA5aPu8/6VSYxXtta64QGvwQYVWJhT yN+NS/s+OxmTMPBAqw0ugQHjntr9ACCS/YSTC9gxYId3/gAGNQ4z5oN79rwc4UbSiv ijX6U2on/S4sw== 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 BBE7537814A4; Fri, 1 Mar 2024 08:47:04 +0000 (UTC) Message-ID: Date: Fri, 1 Mar 2024 09:47:04 +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 v2 0/9] drm: Switch from dev_err to dev_err_probe for missing DSI host error path Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , 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 References: <20240229-anx7625-defer-log-no-dsi-host-v2-0-00506941049a@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20240229-anx7625-defer-log-no-dsi-host-v2-0-00506941049a@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 01/03/24 01:12, NĂ­colas F. R. A. Prado ha scritto: > This series changes every occurence of the following pattern: > > dsi_host = of_find_mipi_dsi_host_by_node(dsi); > if (!dsi_host) { > dev_err(dev, "failed to find dsi host\n"); > return -EPROBE_DEFER; > } > > into > > dsi_host = of_find_mipi_dsi_host_by_node(dsi); > if (!dsi_host) > return dev_err_probe(dev, -EPROBE_DEFER, "failed to find dsi host\n"); > > This registers the defer probe reason (so it can later be printed by the > driver core or checked on demand through the devices_deferred file in > debugfs) and prevents errors to be spammed in the kernel log every time > the driver retries to probe, unnecessarily alerting userspace about > something that is a normal part of the boot process. > > I have omitted a Fixes: tag in the last patch, for the truly-nt35597 > panel, because it predates the dev_err_probe() helper. > > Changes in v2: > - Added patches 2 onwards to fix all occurences of this pattern instead > of just for the anx7625 driver > - Link to v1: https://lore.kernel.org/r/20240226-anx7625-defer-log-no-dsi-host-v1-1-242b1af31884@collabora.com > Apart from patch [8/9], where you're going over 100 cols, this series looks good. After fixing that, on v3, please feel free to add my.... Reviewed-by: AngeloGioacchino Del Regno ..to all of the patches in this series (and the one that you'll fix as well). Cheers! Angelo > --- > NĂ­colas F. R. A. Prado (9): > drm/bridge: anx7625: Don't log an error when DSI host can't be found > drm/bridge: icn6211: Don't log an error when DSI host can't be found > drm/bridge: lt8912b: Don't log an error when DSI host can't be found > drm/bridge: lt9611: Don't log an error when DSI host can't be found > drm/bridge: lt9611uxc: Don't log an error when DSI host can't be found > drm/bridge: tc358775: Don't log an error when DSI host can't be found > drm/bridge: dpc3433: Don't log an error when DSI host can't be found > drm/panel: novatek-nt35950: Don't log an error when DSI host can't be found > drm/panel: truly-nt35597: Don't log an error when DSI host can't be found > > drivers/gpu/drm/bridge/analogix/anx7625.c | 6 ++---- > drivers/gpu/drm/bridge/chipone-icn6211.c | 6 ++---- > drivers/gpu/drm/bridge/lontium-lt8912b.c | 6 ++---- > drivers/gpu/drm/bridge/lontium-lt9611.c | 6 ++---- > drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 6 ++---- > drivers/gpu/drm/bridge/tc358775.c | 6 ++---- > drivers/gpu/drm/bridge/ti-dlpc3433.c | 17 +++++++++-------- > drivers/gpu/drm/panel/panel-novatek-nt35950.c | 6 ++---- > drivers/gpu/drm/panel/panel-truly-nt35597.c | 6 ++---- > 9 files changed, 25 insertions(+), 40 deletions(-) > --- > base-commit: 2ae0a045e6814c8c1d676d6153c605a65746aa29 > change-id: 20240226-anx7625-defer-log-no-dsi-host-c3f9ccbcb287 > > Best regards,