Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp177527lqg; Fri, 1 Mar 2024 01:37:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUYZw1HbIlKgDI0gXTyLjSHItQhmiPt5x6mIIW0D+WqI9pwsutFIr5OOG+VltumQ+5l0h+R6U5rSWBygzQTbYzAaE1e+EFF7OJcuogoVQ== X-Google-Smtp-Source: AGHT+IGNB3ByLkO9g5oYvOyNDWvqW22HvvN7FsGnBtMVLp0ylsKNUMIGnccuJ3n5uqUASlpU6dbu X-Received: by 2002:a05:620a:4144:b0:788:f98:b4b3 with SMTP id k4-20020a05620a414400b007880f98b4b3mr58802qko.37.1709285867111; Fri, 01 Mar 2024 01:37:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709285867; cv=pass; d=google.com; s=arc-20160816; b=iiSV9hwA2Ju3SZw4Yd3YaQiito3DQGPUSRTwPUYP6DxPH09kQu98FMW9+qbrFNIfrk TADxGT3RV1YScqkbzYIgmQZM8+LUHeAY/VwgI/hpJTI2lY8vDovZcN14ssyAOUR1QFgt uOvYzKcU2xHJup31QtopczPTLIIVGL/n6qxeHZxilvcxNqRwdO7clRGxeBKED9DNVO8t Df4/mLspzukbKO7f0YULqjtsQDdt5IcxG/xdiUAyuIAXr8VAdDi8wzsX1cVsBwEuYuy6 czcHXS/UbxQbx4Y1eOJ/bYZzT7seIhFwMdT1Yd31KhuDOMuxpy4xevDCa1ymTPE73DtJ lPyw== 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=wTCrlWf4RTJ3ZX/ilm3SeYICbDk0PAvz9qzUwKPhiUM=; fh=1M7IQD34JAxtgXVZMJw3sD8CeK7ej+A2mJsWyReaiGQ=; b=LoRkYOy8R/kY2MmQ5233a5yOYUQqGRZSQfT6w7ociAl/vWxvIZXpweTxNYoFR0XV76 9MyuLF4V2EdzLixRO8vUaC0Aptgh+kqTSbTh+QgYk8FgjEwrYGKSA47rCE07MBepDkZ3 wkRi4AJQo1c5IjN/sWa+p7ra7lII9mznmavZ4g3GULFR4T3RMmRRLvoIJTXrk3b8+tjk 5gFLqZggFtnwG52VVYuGHbQHKgRh+q6QU8K7TEKRq7s4Q+j6UGzNlNaZ+SgquvjVYwVe TbNhZsHgElFbFopceL1VkcKaTkbnhJ/1Giq7gnqBlpdFGQ8iQkd6gXIdefGI5A6rl4q3 1Rxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=aQu+fAO0; 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-88194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f9-20020a05620a20c900b00787b900fe63si3146309qka.375.2024.03.01.01.37.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 01:37:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=aQu+fAO0; 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-88194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88194-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D311C1C2248C for ; Fri, 1 Mar 2024 09:37:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29A766A8B1; Fri, 1 Mar 2024 09:37:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="aQu+fAO0" 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 B9DE06A8A1 for ; Fri, 1 Mar 2024 09:37: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=1709285859; cv=none; b=DgBpR9SYOC4fMr3Svsq+RD8ZxVHChPGWMFwmCOV8rjAz5OqFVCZg0rjSqCp+skk9d8yVAJPoPRMDlIw4R58Vw1pagDnE31dYXgMfOKeiAyfQnL+yhcRGxFFLlGNiuHSzgwQBworklF3j1x/PeRh3lEkk6xt6UdzJz5a6May4QQA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709285859; c=relaxed/simple; bh=A2uxSw1vnaAuTLjXCJFn//797EKTGWb7p7s59bXgVD0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qSTwb26CJbm18cgQK7QwjK9SQ7ZJ7V1BIO/V1ybRiJT7Od+MGH8rb7oNkAzYKsaGeXb76Ws9udj4Igf67rES8zJNtgC2qiGr4Mno5WOfJ2Obbyv9NE5UQ6BPRbN8XWV5JrUiNPfJ0oia7ATVl8WVg7+SEv+b/EaKiuhueYYTnng= 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=aQu+fAO0; 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=1709285855; bh=A2uxSw1vnaAuTLjXCJFn//797EKTGWb7p7s59bXgVD0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=aQu+fAO0bPL8+YFsKX3mSWSa5uB5OEd5PCitGYbZzqfHR/pUjWtD1pPZ0f8dTU6iP Hjj+rl2h1dn9TPQUlyOPxUc85GNm9AVjdrOHBgA5T5RCQfwgqAc/W02wQ0ubHhpb3J Lh0XtaoRjGEjDKCf7yfi9crQBk7ORK0xzDU+oCOur5CtlHicWc1c4hDskoHum7jqB+ HRfVFKVCNptlYS66D41niOb/Ii1X2gMTtken8+qFilIlXqhAcxMwvrc6SupLVSPKA5 3Rl0waHceUsrd73R89atI88yXK3TtEdqduEqoBqMkO14OxVC3JmG5Iwewvh5DNt83q khH1jLFBb/VVQ== 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 29E6037810CD; Fri, 1 Mar 2024 09:37:34 +0000 (UTC) Message-ID: Date: Fri, 1 Mar 2024 10:37: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 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 Cc: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , 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> <20240301085624.GC30104@pendragon.ideasonboard.com> From: AngeloGioacchino Del Regno In-Reply-To: <20240301085624.GC30104@pendragon.ideasonboard.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 01/03/24 09:56, Laurent Pinchart ha scritto: > 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/. > Yes, that's right. Comes down to personal opinion. Cheers >> Reviewed-by: AngeloGioacchino Del Regno >> >>> Reviewed-by: Laurent Pinchart >>> >>>> >>>> /* register the second DSI device */ >>>> dsi1_device = mipi_dsi_device_register_full(dsi1_host, &info); >