Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp93443lqo; Wed, 15 May 2024 23:25:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbWGhwdidv9d8ItspdC6pJSS6hqmklMeieAroKqh0fEBOq3zZzB6wZFxii3GycIt/KwCI1hf9Xv8USVlAQDKoIKaGI2RCVF7EsCsY1NA== X-Google-Smtp-Source: AGHT+IG2s2dx9juCyo0NIOGoBWF5+4Kxz6mg/sE0tvGreUNY3x/IoeLOT9Vb+PezAYkZMhKJoGY7 X-Received: by 2002:a17:903:234b:b0:1f0:9395:751c with SMTP id d9443c01a7336-1f09395772fmr39285275ad.61.1715840725809; Wed, 15 May 2024 23:25:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715840725; cv=pass; d=google.com; s=arc-20160816; b=ZzDo3sw5y+YA5JpYAEHEQAiTM3L+LpvGQRQNjq98TuxG2yXED/FTbIYk/Q0v9nj9DG aKzLkY9n8VKOdXjRe9gZUgkFZE2+WYwGEnXqdj0VKWwqx52RY09Wlm7Rbez+hC/2JQI5 rniI1Cy8E/mIEXhV0ILTdiEQoK9QiaKj5AQCtPyf3dO+75D54BkojldV5l7s/R7Pdv8H pOZM1KAdjqyLOiN6FMTSWrStMg3V3knhOTAfh/DEtXCwwci3NbXV8irQ8Dgg1yxQ1oBW O6rk0NSQYBb6/qzFmCiX6+hUnUZ28gYwL6qLTlaKqfFrE9V0MsAvjNRIWecGOji1kLFt eOpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-signature; bh=eXSRJ9ePSQv2BRVPVAwRZ5tukZAjyNQB7JMiQsOB8x8=; fh=i4D4fpoKQyYP7X2YfmnfJNAKZdIoinDfQ4wTNJaduS0=; b=H/VkExqK5e1hOixgtiRTReNBjkyVPalZOVsRCc1rk7y5ic3i3j/xJrlqCpez6pZf22 4TedYF6+qGqwfNo5ol1gFkf8IFYVlnHqtN+cnCzYEolz5G7tuojyBxKn5kI1YFQ8jUym n/jBYA5YBo/ba27DojvfphYzqnA6QjfvqNgFbs8ZNlvDg8SCQX7DF+mLruQgpgG4VcMU 0YkibY06H8pK08bQVmUfw6I9e0+v/48pptLrQma0nMK3lcpMo+9vZM1UZwlmwPqS0Sd5 j2ROMVxpQ8CYtP3VbG+h5Joalmh7iQJ0zENo28t8K84tVAhAAaOWdzUxTfEms/JU15ac uTkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=hadd6n4m; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b=PnOMc5wk; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-180671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180671-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c03928asi142537295ad.424.2024.05.15.23.25.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 23:25:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=hadd6n4m; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b=PnOMc5wk; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-180671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180671-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.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 39EBA281EE5 for ; Thu, 16 May 2024 06:25:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C45C525619; Thu, 16 May 2024 06:25:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="hadd6n4m"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b="PnOMc5wk" Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (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 29DF21D53F for ; Thu, 16 May 2024 06:25:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.104.207.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715840715; cv=none; b=nSEpW0hxxtNuzhznH32oeJEJbhWgD5x1IufuGAIFsJ7uhe/d3alebFabdtGUqA+RTJioAAwE1TqSk64FrRmbGrZq7pJGezNA5O+gfg7RyA0S7Dq/KR8uwZ9/KSXlDpeLxYO5N6tOoe9rRpAL7DQzpFSfO+bu0lsjijJVXx6K0x8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715840715; c=relaxed/simple; bh=SaOiCHxwt8vnIKaxDdC1b9Uwm+iMZnNRlK+ZpCasYuA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=l4rd3PZ57oLcaQ4BJbZDVWPhCmjTpo5byHGkEMfVh1xKDI23pK+iDTNdoTF0VAvDUZ2X4rdjLI0WtdfUVkO7E5V3RW5D/Ad5O77jIxZ70XcaUMW7iMQgDtWsjWGAu152p+eOdpyp/j6FeMJLeML2yqCgJTkdIJcpqHcrvl2ZjUc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com; spf=pass smtp.mailfrom=ew.tq-group.com; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b=hadd6n4m; dkim=fail (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b=PnOMc5wk reason="key not found in DNS"; arc=none smtp.client-ip=93.104.207.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1715840713; x=1747376713; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eXSRJ9ePSQv2BRVPVAwRZ5tukZAjyNQB7JMiQsOB8x8=; b=hadd6n4mI3q4VUA58hrqvg/3U4aDPyx/2X2GnAOpbU1GFKi7MgB06qJH Rcql1LEKfbWXaomeDWYTRQzZ/Sa30fsfU7AQHGankte9TVWJ/y80RPqCr Jji71+XDR3RdhRnBo3KSm6pIb5jQFQtXVzCTbma60FD9+JLl8ndjEcA2X OkGYH12WroqWMba7e7lXNuADRFVO/5dVVwBLV2gTiu1gKyjForWTzjAAP QwRWXOsgKE2Zp10R3CVdVOaCbww/Vw6W68fmf1rFPEF1g2DYYztUOIE0T moEcJrhjPdf+3N5g+ZLHFRnRUlg69xknMsodulaidP4EWAT1uN3g8kgiU Q==; X-CSE-ConnectionGUID: VszA4rqNR/qsNv/XzKy4KA== X-CSE-MsgGUID: Fq9c5anXSamT1K8pUT7tlw== X-IronPort-AV: E=Sophos;i="6.08,163,1712613600"; d="scan'208";a="36926960" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 16 May 2024 08:25:06 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 87495172EAE; Thu, 16 May 2024 08:25:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1715840701; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=eXSRJ9ePSQv2BRVPVAwRZ5tukZAjyNQB7JMiQsOB8x8=; b=PnOMc5wkNdlyJ2j1ykBMFHHOVXO2rQs18mSmwhOwegV8w1boATeh1sgPe3E29mVKe1beUy gCkBer+x6OdCoR3iNvAhBfw3QmRZkcRwXZgcaaGgUNxHdYp3C5xAxQ5D0SYPvzrLmlOBs/ 5jqRtAp7hynm121UkmOPyf/IvXMcJ5WV938b7TJpMhTa4VSjBxfTvfx5zROnUeHjjWRAM4 p8abwya3jMT7r0IYEh46/l4xHvwfD/5qsutqErr6GWE4b0oNA5yi3AVfK5/iKRy/zVqmGt YCTlvv1WnaDYASdil+CZtjduP39wQ7RmFn0M6WWkJjnyXsAhexBzKH3/CUktCQ== From: Alexander Stein To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: Alexander Stein , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] drm/bridge: tc358767: Use dev_err_probe Date: Thu, 16 May 2024 08:24:53 +0200 Message-Id: <20240516062455.106266-2-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240516062455.106266-1-alexander.stein@ew.tq-group.com> References: <20240516062455.106266-1-alexander.stein@ew.tq-group.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 The function calls preceding these returns can return -EPROBE_DEFER. So use dev_err_probe to add some information to /sys/kernel/debug/devices_deferred Signed-off-by: Alexander Stein --- drivers/gpu/drm/bridge/tc358767.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c index 99e8a8cf29f5b..de62a7e2eafec 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -2215,7 +2215,8 @@ static int tc_probe_dpi_bridge_endpoint(struct tc_data *tc) /* port@1 is the DPI input/output port */ ret = drm_of_find_panel_or_bridge(dev->of_node, 1, 0, &panel, &bridge); if (ret && ret != -ENODEV) - return ret; + return dev_err_probe(dev, ret, + "Could not find DPI panel or bridge\n"); if (panel) { bridge = devm_drm_panel_bridge_add(dev, panel); @@ -2243,7 +2244,8 @@ static int tc_probe_edp_bridge_endpoint(struct tc_data *tc) /* port@2 is the output port */ ret = drm_of_find_panel_or_bridge(dev->of_node, 2, 0, &panel, NULL); if (ret && ret != -ENODEV) - return ret; + return dev_err_probe(dev, ret, + "Could not find DSI panel or bridge\n"); if (panel) { struct drm_bridge *panel_bridge; @@ -2455,7 +2457,7 @@ static int tc_probe(struct i2c_client *client) ret = tc_mipi_dsi_host_attach(tc); if (ret) { drm_bridge_remove(&tc->bridge); - return ret; + return dev_err_probe(dev, ret, "Failed to attach DSI host\n"); } } -- 2.34.1