Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp487021lqb; Wed, 29 May 2024 01:24:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUaaNqkIRApnLH/URNyYmqjNEny/Gi6TMLkbijbhf6+IADJN1g+0moBz6+H6OvirTA7Hj6HswialeMXmyPS7CxNDmnMAVYaz6NLUZHrHw== X-Google-Smtp-Source: AGHT+IEO4pMQ/6pdcScQzadzz0Ez2Yn3btJt/lNXdawdRDu2Y742jfUtMCVWw1NhrShGazzSa8BS X-Received: by 2002:a17:906:f147:b0:a62:94ef:1f50 with SMTP id a640c23a62f3a-a64259d4a20mr116962266b.0.1716971076098; Wed, 29 May 2024 01:24:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716971076; cv=pass; d=google.com; s=arc-20160816; b=P4sJPO+53ZnEpDOuFwXyKZWaS5n9nkELnIVQ6ci2txVjSk0i3Y0M3hfWSaD1sTHzjZ rcUGLEhqnMUweHZ5tunMoMLOOKrorifdNn/SHPkliIwIfZRh19lXF448ojPvHyuEM0Jh OcWaEtF7ynXgVAhiDALh/KQlMEzSDytnwb9gxmlrIdJN4/6G3zQSgW8AqYWNjsF+fq7u pf3HwfT63Hx+lnRpqxsnQgeehsGfK0LKVyCsVvNnBvITQ6DJ+y8bXdLWgjanpTDupk/V HTVap1gdh/kihiv+XA/mvrpKheITIb+ee3Vfswwn5pA8MZYCZZyYn/GmltArkCi1xi1d JYfg== 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 :organization:message-id:date:subject:cc:to:from:dkim-signature :dkim-signature; bh=qPzqmbhWrWgXeytPFFr8ZnaAVt6ESUekqElZje8ecik=; fh=SpTdz888LhAKGQLcl23CVWxRYVauPwp1JyaS65a8YOQ=; b=b/ZDQL2RKXM/5JTWJmOAluOvZC+g79U1wyVJuKScSyVaiX5sZers1FqQ4XsbGrnVRa IPke8eJXl1g8U13j7ZvzFtbf3zpYUmfPrgUVTyhlc48MadYd6PlJc6alPFby0bOPQgYt plVkWLg+iTIYeQLzpsPQ4yg4hgeQ3+KA6ItikTk0yQxKK1YbbdYXXWaxToPurmEz3P/w 0DdEYjZ21E9oLhAnw8wO3/J8PxM429h35FlH+kT+057UJiFVkSxA+DKN0ucGdJPIDtnb LqwguOEYEnel9aGD6WUBg/xYSK1R8Q37zgDFZ2kgt4RlMElyyHE9VkN5eYi0FoFC3tC+ nlJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=QZHNzQzw; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b=X0yjbkyS; 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-193708-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193708-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 am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a634a7dbdadsi154023166b.744.2024.05.29.01.24.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 01:24:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193708-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=QZHNzQzw; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b=X0yjbkyS; 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-193708-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193708-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C77B91F267E5 for ; Wed, 29 May 2024 08:21:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6E7F16F0D4; Wed, 29 May 2024 08:15:32 +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="QZHNzQzw"; 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="X0yjbkyS" 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 9947933CFC for ; Wed, 29 May 2024 08:15:28 +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=1716970531; cv=none; b=UzJwQKfSHw318RQPkg3QVpKLKvmJtLsE8slNQFLNToHk5dWo17WitrYXfEwYwyvGvspdaKAiD3H1kphTjF/VIv6qf52dSd3BkWRfxsNWY6HWku/XPpSB47cKBY/G1zGb5Ibj2KmSdz/o4ikiAuFwKEb5emaR32m1WCAcz8kbwbA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716970531; c=relaxed/simple; bh=UzQmf9tjN3LeNjX/lVtrlreMZNXUsY8QbXs8KUectg0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FJPiNvTWF/aGqyYp8evscOBE0fuRKrNQ4xu7DG1XZwrq4e2Wf9gWFbYZ9CHoUMdA31VqQui85t/nhLXWaw886b8PhsBhHm4Dc+XQS8HCuoeclRJ6RVXAjjV2bByBfdBurkO11BhYEe2RoMT5AzJrihBK6lj8YjDHjIfg9Guq5M4= 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=QZHNzQzw; dkim=fail (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b=X0yjbkyS 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=1716970528; x=1748506528; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qPzqmbhWrWgXeytPFFr8ZnaAVt6ESUekqElZje8ecik=; b=QZHNzQzwm0qFrgoOLEhkcQQQnO3iq43VNmwZPxRobkA+yNMCi+Md0Azp PIumymSHTTYCkDSOVvK8iA21E2GcCqh7Q2R2UqdM5mJs07BBKcOFZUYHd Z254ZiloN8tUMLS/k+JVdbMx3yeYCBmteUnLkR9Tm/99St8P94i/bVctq sKTNCr3bNnl8t/jODl66dZYiHdkm4yfzbuZfiSsaAcr0pATl55tOWiMWu wBltK/Dbzzagp7yoA/gm48i54s+4/vT1xavXxByM5BP8VfgaG7HTxsPfI FUHjMAhCYNGXlIpU7JZVy9y+B4yikt3y6Nxli+x70clvnrBe7IE/aYDW+ Q==; X-CSE-ConnectionGUID: peETRQxgQGeJmBnaAiv4Qw== X-CSE-MsgGUID: BGCkLORMQzqJRAr6qC55Sg== X-IronPort-AV: E=Sophos;i="6.08,197,1712613600"; d="scan'208";a="37120964" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 29 May 2024 10:15:26 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 428F516564F; Wed, 29 May 2024 10:15:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1716970522; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=qPzqmbhWrWgXeytPFFr8ZnaAVt6ESUekqElZje8ecik=; b=X0yjbkySyuGTbdlhNBO93Jh68pO3BA/mg1Zd40iUSbpOU95OxQ52P5PGEqzn1uViTP7tbV iI62wxWbD0xc/OKGyawp1b6dojDbnY8akxQlxY9e9l8JkWzE3k8w9yJmXsbEuVLi3mJy1Z JWLzPP+GEyTf1xbuixIphwW1jshgmDGJbhsM26wmH70SZ73nvIg5vrj5VBP1ZF6LGgAhaq k1Z+w27V+CgqhxshxYlgoiDkKrmpmW0XUdSUFjJhKyEs0PHT1Ko4d+UnBTvf5+kOrl05eD LiJ5XSthmZoI6noWYj4kLdu/pdMTUiWfawdrHwOFq4NddGxNyi62if1v7I6qCA== 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 , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Liu Ying Cc: dri-devel@lists.freedesktop.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/1] drm/bridge: imx93-mipi-dsi: Use dev_err_probe Date: Wed, 29 May 2024 10:15:18 +0200 Message-ID: <6130653.lOV4Wx5bFT@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <091f1d5c-0bff-4dcb-b823-b82989eac628@nxp.com> References: <20240529065400.461633-1-alexander.stein@ew.tq-group.com> <091f1d5c-0bff-4dcb-b823-b82989eac628@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Last-TLS-Session-Version: TLSv1.3 Hi, Am Mittwoch, 29. Mai 2024, 09:50:24 CEST schrieb Liu Ying: > On 05/29/2024, Alexander Stein wrote: > > Although very unlike to occur (media_blk_ctrl needs 'syscon' compatible > > removed), it lines up with the other error paths in probe function. >=20 > Why media_blk_ctrl needs 'syscon' compatible removed? No, it does not. As media_blk_ctrl is also used as power-domain the device will not even be probed if media_blk_ctrl is not available. I just mentioned it under which conditions this error path could happen. Best regards, Alexander > device_node_get_regmap may return error pointer other than > ERR_PTR(-EPROBE_DEFER), like ERR_PTR(-ENOMEM). >=20 > struct regmap *syscon_node_to_regmap(struct device_node *np) = =20 > { = =20 > if (!of_device_is_compatible(np, "syscon")) = =20 > return ERR_PTR(-EINVAL); = =20 > = =20 > return device_node_get_regmap(np, true); = =20 > } = =20 > EXPORT_SYMBOL_GPL(syscon_node_to_regmap); >=20 > Regard, > Liu Ying >=20 > >=20 > > Signed-off-by: Alexander Stein > > --- > > Changes in v2: > > * Removed unused variable > > * Added missing \n at end of string > >=20 > > drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c | 9 +++------ > > 1 file changed, 3 insertions(+), 6 deletions(-) > >=20 > > diff --git a/drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c b/drivers/gpu/= drm/bridge/imx/imx93-mipi-dsi.c > > index 2347f8dd632f9..13025f47f3902 100644 > > --- a/drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c > > +++ b/drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c > > @@ -834,18 +834,15 @@ static int imx93_dsi_probe(struct platform_device= *pdev) > > struct device *dev =3D &pdev->dev; > > struct device_node *np =3D dev->of_node; > > struct imx93_dsi *dsi; > > - int ret; > > =20 > > dsi =3D devm_kzalloc(dev, sizeof(*dsi), GFP_KERNEL); > > if (!dsi) > > return -ENOMEM; > > =20 > > dsi->regmap =3D syscon_regmap_lookup_by_phandle(np, "fsl,media-blk-ct= rl"); > > - if (IS_ERR(dsi->regmap)) { > > - ret =3D PTR_ERR(dsi->regmap); > > - dev_err(dev, "failed to get block ctrl regmap: %d\n", ret); > > - return ret; > > - } > > + if (IS_ERR(dsi->regmap)) > > + return dev_err_probe(dev, PTR_ERR(dsi->regmap), > > + "failed to get block ctrl regmap\n"); > > =20 > > dsi->clk_pixel =3D devm_clk_get(dev, "pix"); > > if (IS_ERR(dsi->clk_pixel)) >=20 >=20 =2D-=20 TQ-Systems GmbH | M=FChlstra=DFe 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht M=FCnchen, HRB 105018 Gesch=E4ftsf=FChrer: Detlef Schneider, R=FCdiger Stahl, Stefan Schneider http://www.tq-group.com/