From patchwork Tue Jan 17 10:59:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13104505 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 71D5EC63797 for ; Tue, 17 Jan 2023 10:59:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D07210E491; Tue, 17 Jan 2023 10:59:13 +0000 (UTC) Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by gabe.freedesktop.org (Postfix) with ESMTPS id 179C910E491 for ; Tue, 17 Jan 2023 10:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1673953151; x=1705489151; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ozw0uC54/LYaa0bVtEywCyFj6gzjN7Xki0z4Y7/t+TY=; b=P4xYFv1wMim8jl1juYzfSPDsKvrS1lEONaSCpqKKBrbRS/Ex1o0IGDdt 57u5s4mv94TrBVOSk77OdEapTPIHrd/CdEIoVPVyNZDATybXw5UvqV6uY C1l68KfsE0TKLdXPVncSSSAXrS8kZrsG5k8K0wEmtmQoIP+lgic7pCfcP 9sPeQT/s5tS8U0y2J8i/BuuiY0iac1QWCMJUWTEsaM/V997e4DP37X+jW kDqJHb7102xPL4uR8TrXqYxx6a5db4TBpR2P+cCG8JDelPvDa/o6+wHY+ Cr9SJx6kDqntmPETUU5PIR/KlhWkKSnQaOJJSkgsfT0vpVn01I8f+roxU w==; X-IronPort-AV: E=Sophos;i="5.97,222,1669071600"; d="scan'208";a="28473620" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 17 Jan 2023 11:59:08 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 17 Jan 2023 11:59:08 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 17 Jan 2023 11:59:08 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1673953148; x=1705489148; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ozw0uC54/LYaa0bVtEywCyFj6gzjN7Xki0z4Y7/t+TY=; b=j5euxat7KT8dA8mjJ4kD0XqelruZQL2oNa3iPrHqeotItqAgO3vp5DDY tblXObD0VYZa2e8MSawc98tP5SQzqHOIZa1nXfb67esG8TgvKMTYodUdu Qhaxg+3W3cnnFJhw//fTHsds7WybKPZiv2XDsAwcPd5ymBveA6Zw+EDct AZ8K+8EAgg15MN0AlFwPH6VeZI0gq0CfByPls52Yi3L7hPtTa4zUf8iXV I9bvNi/fTPpn70qgIdDaVpW5s63kN1VayYT8ALCtHoxuBa0ZXmXBXToCQ 9xFMaBBdn/OExdHOYVTC2RXOgngtNgPGdkpG7TJU8CzlxSIQXze0but5k Q==; X-IronPort-AV: E=Sophos;i="5.97,222,1669071600"; d="scan'208";a="28473619" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 17 Jan 2023 11:59:08 +0100 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 60594280056; Tue, 17 Jan 2023 11:59:08 +0100 (CET) From: Alexander Stein To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter Subject: [PATCH 1/1] drm/bridge: sii902x: Use dev_err_probe Date: Tue, 17 Jan 2023 11:59:03 +0100 Message-Id: <20230117105903.2068235-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Stein , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This helps figuring out why the device probe is deferred. Signed-off-by: Alexander Stein Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/bridge/sii902x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm/bridge/sii902x.c index d212ff7f7a87..f4a8f227c41b 100644 --- a/drivers/gpu/drm/bridge/sii902x.c +++ b/drivers/gpu/drm/bridge/sii902x.c @@ -1116,7 +1116,8 @@ static int sii902x_probe(struct i2c_client *client) sii902x->next_bridge = of_drm_find_bridge(remote); of_node_put(remote); if (!sii902x->next_bridge) - return -EPROBE_DEFER; + return dev_err_probe(dev, -EPROBE_DEFER, + "Failed to find remote bridge\n"); } mutex_init(&sii902x->mutex);