Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1707505lqp; Mon, 15 Apr 2024 14:50:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVconQchPtXYEIY0w5neExm1/wEy6prIKg04Rh9P2b35sRGbLCndJctNzIJ6gMKJLm1rqZPU12JlfW0iO5qMbaC991plduNmXnlyYWfzA== X-Google-Smtp-Source: AGHT+IFkxzL8f19dBIrzgNCTFvqSawjBtSViAp0BWpDS/jc5l9fKpxgywN3U/cjItxbZgZ0C/iwM X-Received: by 2002:a05:6358:7b95:b0:186:148b:7573 with SMTP id n21-20020a0563587b9500b00186148b7573mr12958246rwg.9.1713217846682; Mon, 15 Apr 2024 14:50:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713217846; cv=pass; d=google.com; s=arc-20160816; b=U4WSduhe1rp9t2NrLK8fB88WR2Ypws+I93imD11Lnlm10silChR/Tuzqkn18GTHhGl QXEW+mFiyKloJoUrKzzhKqiUKDijZYEu//T3Y471r1naxGDwvWknkIgwP9miB6T0/qoz YVYQ43+9FLa0SHKRUPHKjwt2u/2qzZEFnk8mhTyC1LK75j5p4pgQiBisbNyMl8spCjXN pjQUM+yq4O/PlVLkdh3jCPW/OHaKPQbdrx8CaMagOsUpXgyZb7ClIzfd1W+WYwkXeH1i 3vnqkATcUq1ujM8s1mTLIYVXLia42Uf/Vz61o+k0iFgR6nW8rf5EoHaonmkIvIkx1QCD 6/jA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=m0j5BgAFL2rN+gCLwRGwfiMv388XrKPfPXT9rs4i2Kg=; fh=cWSJOWGJAjcdyFDFoN1PB+PJKfgvopPPk2h8P3Abz50=; b=nlJ/rOe3QBJBLdF/nOdQUKqwXfORNAnpkiOpS+41g0wis6YaIEfjsYF7VTwlituYlE slMu15LAPqNdVdj0fWic2TckSAbzqTLsj6zk0CkXK8cQslKtiWxItfJApG7w9+QqajO6 eV4Mo9y5pM1NUZqXwIxrb5uwGk8Q6GbFckKw88Cz7lDgRAsMENkv0l2czAlsGknViz5E +ptCZwyOtnCHHtIzOWcVZHhw8+tW+3b7/D8z57VEqDkCVlP07GzAxo6tMwe4EqQuP4pX IfsQxDaOE3XCTM4JhCXbV1/HtobWReaGZCJ2m1OzbBhidhno3HB2a4puzNUeQ0RUI09S bgNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JUWafUjA; 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-145950-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145950-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r21-20020a63d915000000b005d8e12c85d9si8446917pgg.738.2024.04.15.14.50.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 14:50:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145950-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 header.i=@collabora.com header.s=mail header.b=JUWafUjA; 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-145950-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145950-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 52676283278 for ; Mon, 15 Apr 2024 21:50:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFEFD159593; Mon, 15 Apr 2024 21:50:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="JUWafUjA" 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 BB686158203 for ; Mon, 15 Apr 2024 21:50:06 +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=1713217808; cv=none; b=pXAnzO01SvSJJjB/jYtrbB2wmN4HnmqPVRgkz3YhJ3nqBGZu+U5+SwOHee5K+pUg4dv3p+hCm0jHuc/rDmAoaAL5k2TYiFRiVRvbmI/avOs0cP4YXvjeJmA8dk9JlhaSaG0zIUaHF1ZISgOT+sBzP06mBI/qDGb6T2Y6qiIxB9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713217808; c=relaxed/simple; bh=0DbJMZzCSwBFdhJbT9iCo40kxXCX5FIuxjGa2VMhFxE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hcGButZlxpyfSvZshhxRI20mrNpjoK32UpqgMhSuIqOfyc+9nCMBzur8OlakO4I2X2hneL84qgmZVXXhA1GgZL52p4RGXgtTR/jGw2Wru6cxJhWVFjBRok/Vjn6WB6JS2MEe1SE8tkFT2o/3nK3+FpEEcyvFhSjejFP5WcAr3J4= 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=JUWafUjA; 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=1713217805; bh=0DbJMZzCSwBFdhJbT9iCo40kxXCX5FIuxjGa2VMhFxE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=JUWafUjA4Eqx/UeWahbyA4Tt43y5KNqa4zBAn/Zp5ZG7ZtfMDvsbh94gwfcu+vGVW M2ytP42JHhCZshY5OAtjf/tM+ZlvSz0xrn5MbxPqE7zquZX6QxIPveXB1V+CCZS+Hl prZZsnN5uJB3Ai1DAVwQgP08wJP86mjUjJ+OOY/H4aKH0wBLf+eEiMJy6aZaN0bEFa nExQixghSbjrvLv+Bd9SYl9CfL3ScreAiqQljJemqOXrjqOgNBb0oVEPR0APsZEL1b bEqN+kZXqysAn2bpeMJBqrfVHKvhLCp8m6RdNd9STQPF3+Oz/VYfEtu0otuG1ZwQeG 6j7chXu0VdC2A== Received: from [192.168.42.226] (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 5589537820CD; Mon, 15 Apr 2024 21:50:01 +0000 (UTC) From: =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Date: Mon, 15 Apr 2024 17:49:33 -0400 Subject: [PATCH v3 5/9] drm/bridge: lt9611uxc: Don't log an error when DSI host can't be found 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-Transfer-Encoding: 8bit Message-Id: <20240415-anx7625-defer-log-no-dsi-host-v3-5-619a28148e5c@collabora.com> References: <20240415-anx7625-defer-log-no-dsi-host-v3-0-619a28148e5c@collabora.com> In-Reply-To: <20240415-anx7625-defer-log-no-dsi-host-v3-0-619a28148e5c@collabora.com> To: 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, AngeloGioacchino Del Regno , Laurent Pinchart , =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= X-Mailer: b4 0.13.0 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: 0cbbd5b1a012 ("drm: bridge: add support for lontium LT9611UXC bridge") Suggested-by: AngeloGioacchino Del Regno Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Laurent Pinchart Signed-off-by: NĂ­colas F. R. A. Prado --- drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c index f4f593ad8f79..ab702471f3ab 100644 --- a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c +++ b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c @@ -266,10 +266,8 @@ static struct mipi_dsi_device *lt9611uxc_attach_dsi(struct lt9611uxc *lt9611uxc, int ret; host = of_find_mipi_dsi_host_by_node(dsi_node); - if (!host) { - dev_err(dev, "failed to find dsi host\n"); - return ERR_PTR(-EPROBE_DEFER); - } + if (!host) + return ERR_PTR(dev_err_probe(dev, -EPROBE_DEFER, "failed to find dsi host\n")); dsi = devm_mipi_dsi_device_register_full(dev, host, &info); if (IS_ERR(dsi)) { -- 2.44.0