Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp154873lqg; Fri, 1 Mar 2024 00:44:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUHSNDIMYu3Z6kPvWhiEHw3EbSihbyqAoWqiTfqmMMa3k4DaX/0cKUgrOsF1Q1Gogu/zH304draUMOi8pJqlkpMfH59Ox1PdiMRQ20ilg== X-Google-Smtp-Source: AGHT+IHjaYiFQG9Gqj4kB8IblMk30xegJZCnXtI7uy3iUeCxsmlM5DXvKX2hE8/kdY9WwRBd6WKG X-Received: by 2002:a17:906:f856:b0:a44:37cd:8385 with SMTP id ks22-20020a170906f85600b00a4437cd8385mr850280ejb.22.1709282691397; Fri, 01 Mar 2024 00:44:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709282691; cv=pass; d=google.com; s=arc-20160816; b=Mf0jdM0uQyCpGK2qMbLPl+/fdazUicDNj0cchMKTROZccFw1lEWm9zMz+4ILqhA7gR zf0Gv0kj9qEJYI4Mnq8PqIK0T0cjZRLn7Fa4KwRrWTZUTL9vX7JEvs4oVEVkUU1omGnH V4icKgC5IZmj9isacgE9SMfS9Pv3bUfq7csTjCHYkfBukqCiRniIx5dJlCaDdJXekUeK 0ha07ls/Ks6EZ8c9njimG7JB1LXtSeDYiB96XhuTBTbtU+0umyPNVRGK73YnNA+TcPfD zenhhiciKCCamnoaDCOX7iSdJGCHi4yu/yn1HzWm5lY7lnkZBnaDqTRp/ah2HXKhCKJJ /RNA== 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=9kVlnCn37e4JnV/+7jXrFhaWbB9utFJxsdf4C1D+Xas=; fh=Eip0EjRCjiG/Iu5okTN4VFU1995byXD0aKUlhD9mcXU=; b=jC7wNmdR8btwi7IrHmoC3CoWTpb7qZhy7Sqmpjz7Fgkdc9mX366gZAUtwwf0ktIQrG uOfQY+FRaX9rYQ063DQ6ZBOfrc0t69bYCZU8LVflx8vNIY0Ekm/W9xGkOqnt8RFDbGO+ yerrAmTmsMzgytd2kdrXy+TYAhF0SjOYbqfKLGnm/fR0Tg2nhT2xCccynmHyBW9zWpjX KQi/EGrcurioM3WZj6hggFiDL5RiOCJ74dTbR2Cf38Bu3YLxh9WbjfiEzPFloq8euBF/ zS8+kQZKh9zZIkaKJCf4VjCG3UfsYj55kAIyRPG8IXBJtwzkAmXAx1qHThFZwDTbeNpG HbTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Bpj8jGdS; 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-88098-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88098-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 kj2-20020a170907764200b00a3d2344a467si1283771ejc.118.2024.03.01.00.44.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 00:44:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88098-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=Bpj8jGdS; 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-88098-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88098-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 263A91F21F87 for ; Fri, 1 Mar 2024 08:44:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BE7369E01; Fri, 1 Mar 2024 08:44:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Bpj8jGdS" 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 90EA169DE8 for ; Fri, 1 Mar 2024 08:44:41 +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=1709282683; cv=none; b=u3xxfiNFdtqMz5PpB0gIePBCkMtBEK1k4aBPlDz+M4bh+BnmlifC4EbKsD8pgxXcnOpHm89c1vNYNFDBhQgR5VuUJZhbbE9L0LI8ikxHF+hTEQK2UeV8bsM6ktLMWqjrJEJxi+IaF72TrYW+sYLPaOKH/I9jnV0eWzhuY/AWD/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709282683; c=relaxed/simple; bh=XLaLLONd4SE+7aUeLHwG5Hrbe4M4/9UkvPrdtUnAvG4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=aEDjAz843HWznFbpX2ljADFkq7PZQroTKFELhEckoRnebaRyS50BAz7EzLxqWc1BZGoZ9oVju0e1DzL0zfNH6S79VY7rx/z3IAS0F8+7c5bJ8EzkqDs88lS4ugnNoF/1YHk7QFj+DfWLqem2FnCvYvn68ECRLkvDuCdLOR36Pog= 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=Bpj8jGdS; 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=1709282679; bh=XLaLLONd4SE+7aUeLHwG5Hrbe4M4/9UkvPrdtUnAvG4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Bpj8jGdSvexBD3DYnIrk34Uj8pozfpzurdNH7SiTFN5+2gT2uPzciPIOWewktNSik D5FFGsQgofou9YcjIGM4D1d6z3HzerFDXUwyosTBm/Q1SMfRxqaxdnxvv+tubDzrG/ QlZYKm1OKYo+jac0r+u+fOTodMzdMR8lfnF2ScLK3U5ttKAQmwqXRwsw8ORnh6V1bx MNWfTNIDp2iEmsDtqk7vT3y+TS68tSyZxfM4KnXu2by0+NB0Qn/jsJoocHS3crj53K E2W9nEJBlZ7RuwVy1meiMcPazsp3gU5+qvb36hYGl8D4vOKpwqGQPoqO+hD/jn9B9s cuD38kfQa74Pg== 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 9C0CB37814A4; Fri, 1 Mar 2024 08:44:37 +0000 (UTC) Message-ID: Date: Fri, 1 Mar 2024 09:44:36 +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 9/9] drm/panel: truly-nt35597: Don't log an error when DSI host can't be found Content-Language: en-US To: Laurent Pinchart , =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= 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 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> From: AngeloGioacchino Del Regno In-Reply-To: <20240301063020.GL30889@pendragon.ideasonboard.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 01/03/24 07:30, Laurent Pinchart ha scritto: > 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, I disagree. That's 87 columns, and the 80-col rule is long gone. Reviewed-by: AngeloGioacchino Del Regno > > Reviewed-by: Laurent Pinchart > >> >> /* register the second DSI device */ >> dsi1_device = mipi_dsi_device_register_full(dsi1_host, &info); >> >