Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1707264lqp; Mon, 15 Apr 2024 14:50:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6lgDsPTFSCrmyibpaYZoirjybNkJi9VygupwaC6ILl0KGi9QkdENNbqgy9RRepV6DJ6kVFbMChCIUA8UqKDQKihzHzuqkrsYzOnbRqg== X-Google-Smtp-Source: AGHT+IGbrpAk/y5Wl7csCDk5F/qC2ib1MXMfYP23rLZoWKNbLkkN5Ip9laWbaeobPIy7PDkdycfm X-Received: by 2002:a17:902:6805:b0:1e2:307f:d283 with SMTP id h5-20020a170902680500b001e2307fd283mr9794408plk.1.1713217804759; Mon, 15 Apr 2024 14:50:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713217804; cv=pass; d=google.com; s=arc-20160816; b=j48pOMRFescfVayKxpO8I0n7hPSSu6ZQz0hPNH3bRLXp17RBgT0m87pn73h8w0/Vgd oxsoT/Lkt+VXjOxTo+CZ1SrM1+51dZ24JXqfHm3WogrtLqBI4pM/30EUj/yZPL+Pm1d/ TEWRjTLtkWe1rMu6vXYdYy3sClhchm/9Z9WU4hDvrTOy//nD7T852dd3xlp/nq17tZBD NWoMPMSOhdWwoe3389+sd+C0WFtBaJi1J+40w8XO14lrZAFF6enJPU12lXA6OscqPhUl K/dqqNtlO86iWi7O0CwDk7FD5XN8AsKJQYL4PQUw2v+Kdo78QgBak0R+WcBnfUyGlrdQ MpDA== 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=3kwNKPreX0bwAYMl5z4dYBY6Z1VvpEP2pZvdA46NZgw=; fh=cWSJOWGJAjcdyFDFoN1PB+PJKfgvopPPk2h8P3Abz50=; b=KHxEvG8BUTGlVWet0W/yGi4l1+tG+XqhmZyu1NiipAaTFg8uEFbAsfTyNdbO47FzaR kfa+6mQXIQOdAdpQu/qC/nVtN9aAEPhHiunbazXYgIbxH2liz5ymFBv75XwncG0Dvpse wszIOPSQX6N0tjQaw+0b6+7+VtaQxT5oA3oK5iGFnkPc8I0cYWxznJc5TOp63jwP6kmK jRKXezUhUP/OLeHG6yLsjF39eq6hNLAyUswE8fK8WFoCuHaXmeLpayNprFBPLolrjruh /bdhFvnXAuHpd7EhE7Ndy5V6ji/ifeuiYKHxuEv+Wf8tnKm1wup+cVunuCtGPmC7McGX 3ZKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=x5p5X4uk; 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-145946-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145946-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 s23-20020a170902a51700b001e09c4eb126si8148483plq.169.2024.04.15.14.50.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 14:50:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145946-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=x5p5X4uk; 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-145946-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145946-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 002BF283223 for ; Mon, 15 Apr 2024 21:50:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B48F1581F6; Mon, 15 Apr 2024 21:49:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="x5p5X4uk" 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 093EB157A4D for ; Mon, 15 Apr 2024 21:49:49 +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=1713217791; cv=none; b=PghKzfmBeTwrXW4gabxDv097tJbVWAqq77uDk5RKbkC9zzphOWkSJ2d/4hWvdRrmUnap5nED2kf/JWxID9MIGEWIPz442bi8MCmKYaLtWy9A/LSWosOWVqD8jfIJzMyX8mmcPzrVjkgcrUgJMcwlhlQ5VZnGwQ/7G9cXoivTXaU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713217791; c=relaxed/simple; bh=4g04soJ3U4WMb4EDWjbft9oUxJ9c0JvI/mZOjFolm8M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DpxGq/YIpyi0Z9rQI2Tk/T/hcuQac7b0HAiRdEHQ7eEmI3wHYAzB6kro9AKMy52XtrIOB2I5NbkseirSjWtouLXD45Rh0iuOmqiv3qTzZpBkYKXDO/oM8abCka1FNs0K5FTi9GDHRnmjcVbV6JQ6N72OurPRcKfZWwnH90i9zLs= 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=x5p5X4uk; 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=1713217788; bh=4g04soJ3U4WMb4EDWjbft9oUxJ9c0JvI/mZOjFolm8M=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=x5p5X4ukl+JICrkhr9rv1CfSskf0+n2Mb8k+7koCf2npy1rmPJ4ocZavT55LreUOR 3n7Z2DI4ueqc2ozLAL+lsEdHVb/fL5f+Vagg99cq1gxMpDWy/TgnTXBRWp2njrTTHO NY5hwen3O4tGmKELuaBAJXF6/idFLdWAs0IGpGlw7stwlthuD+TT5QooiPf3K9g4sj 4EbZgfY4ivG3Av4s/aD3/2wcwda4AfmB4Xmln9LESGxN4yh2NCmTtej7tn0QtLbGCh eWCjnblPNYIa6P1kaHAzwKKp0fJheC5WZDzdunvjhmbjXHa1MCnNYMgy73dnNIB5vU dhjbNTn6oPFSA== 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 B954937811CD; Mon, 15 Apr 2024 21:49:44 +0000 (UTC) From: =?utf-8?q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Date: Mon, 15 Apr 2024 17:49:29 -0400 Subject: [PATCH v3 1/9] drm/bridge: anx7625: 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-1-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: 269332997a16 ("drm/bridge: anx7625: Return -EPROBE_DEFER if the dsi host was not found") Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Neil Armstrong Reviewed-by: Laurent Pinchart 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 9d96d28d6fe8..02bf45005307 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.c +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -2066,10 +2066,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"); dsi = devm_mipi_dsi_device_register_full(dev, host, &info); if (IS_ERR(dsi)) { -- 2.44.0