Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2585508lqb; Tue, 28 May 2024 04:50:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWkSnvVJrT+EHiHA9CJdqCzVlxFsJQ3CqwmaiJXHNOYwykg0oObwx6+XS24m8RoyG3nAfiWMu9r6zgp8ECjw8emRBmLCqarWn/aFUWR7w== X-Google-Smtp-Source: AGHT+IFaK7h4Mg8oUR14p/wfYnTp8QdPUOKxBArSvOMOQNbHsAHe0iakMNVk/AHDRA1WImHYcroM X-Received: by 2002:a05:6830:1bcb:b0:6f0:40f3:12f4 with SMTP id 46e09a7af769-6f8d0a76b24mr13360061a34.16.1716897038094; Tue, 28 May 2024 04:50:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716897038; cv=pass; d=google.com; s=arc-20160816; b=ANuW7q1y71vsKH+v56Yysf9X3o47AuPtKli7VIwuxuaOa99VRLPUgRcmnJdpoNGpBV K6ARzAEILfCyZlukwb8bcAQ5Y0ayPLz2hveDSvvVgq+Lc+n74S1eijEqKLUm/DM8f97h hew3O/vf5tmoJ0q/V/+WuJlBDC2v3tN9imTIgXQBNmUSz+8RY7ZD1f+Pk7jmD4yE3o0G kjVqp+kZFsNaR/2YMacNX/20f4ni7XtFQFvLcR4t6MpRvNt2EJ3aZfTpThFznGsTeM+n boUAmlRfXB+ejue8cVFc44euJ2Fw1e6OTbsN/vNcceSgJWX28MYXEIpEtTqTD5n5w8n9 bGUw== 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=/58gdiJpM0B3ImJiCbj+KqJdGf8LvDGPhKIR6a6hhbM=; fh=SpTdz888LhAKGQLcl23CVWxRYVauPwp1JyaS65a8YOQ=; b=QtE+1UUnxVR6KQQAiTNpS7cVgxt3xqAv3uBt+COXVGr4qJQ4RWPW04zyk5phhRla1r bre8NAnFAob3TmyHwPtgrSFw8nxDH/8MK/B1sbf5lfn/NjxSGKrYNE3SHgNyCptWvZpT CZ78zJrRUU13+2rSfNZxVTmKSFfPYdqBrqVwyOtwUtxo/+5Bn+HnyyH/D5m4P+vkOtei Yj4FvoL9yNORm67dwR2CUb70CjCmMZ12kiF1Q50GdnEKh5jaX6mOKpnuYtkL5RLuj1n5 K6oXRwwdUZweTtTgGDTDKsxfBa0kSBIL4bKs+lut08Q0i1LdFwilkD6pOZ8K/vYtSIUE Turw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=kZrDN7Hs; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b="jn5/LwSM"; 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-192219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192219-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 ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18cacc7si100139921cf.681.2024.05.28.04.50.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 04:50:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=kZrDN7Hs; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b="jn5/LwSM"; 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-192219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192219-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C3F661C22721 for ; Tue, 28 May 2024 11:50:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A23C516C848; Tue, 28 May 2024 11:50: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="kZrDN7Hs"; 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="jn5/LwSM" 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 C16A216ABE4 for ; Tue, 28 May 2024 11:50:26 +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=1716897031; cv=none; b=FDTbxNBbXoYpdaeVX2/9qGzoiJO/K0zf1t7F0vX3KDo1RNBVwI5kkhFpM0KElTMSutkR2Or6ll/tnOGrq03ek2K+N/6qiFpQdEz9/9pP6GhAPgDnSEJlpjiTLHoXbA2avb2vkSW78nWuyzG2IsS1GUEOXn1NwIl/ojkBkyfPF+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716897031; c=relaxed/simple; bh=McgWi6uyNI53NhifrEHGTgiMU4g/id++r0i7AzU8SbA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LtDK/1h7FmyHdROWF6v9KRQI40bos2gCBOnrlnH9z5Zds4pQV+Ua7KUHGbPmgn+HTlYh2GTKQAXxYoSMO3fXqD55ylO/GcNoG15VPB5n15GJR8WEVgOJ4qBvJYKcvv8hf9LTCu1h+E9WGeMnaM/baAV2CZ2Dwrl2d4EAYIsHmpQ= 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=kZrDN7Hs; dkim=fail (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b=jn5/LwSM 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=1716897027; x=1748433027; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/58gdiJpM0B3ImJiCbj+KqJdGf8LvDGPhKIR6a6hhbM=; b=kZrDN7Hsm4Z/nYi2ZPn5XtX18d7eVg6wLK2r7TrAPCbzAyCf494S4J+m 3as9JVkCQtEl+10XnX/lw3yJAvENyWZjJ4HmE89Na+qcpkmvG20ddwfwB FH8cKb6fKDRIytDaXEWDNFIgpRdXiPxux0TZz1DPBX2tRVSnTwRir63w1 PjiE9dTPGOdOOE/dvIpAtnEl72LJyfasbVU15vqRd0GeLCDod3LlpI3Yh KcvuUL6oanf53AIe4eFDLhYbSCKYrZiK9AV1/qAqQLLkJp8EUFsjCbn2u kw6p/ShbullEXx66H4yQjs7gJquNd2YrxY5jUYcm0MrHy9JDaiCqUz7J4 Q==; X-CSE-ConnectionGUID: PrY+tUZASFe3HnFpq9Lp/A== X-CSE-MsgGUID: tuuXUIU6TLKb2D2PbQRM3w== X-IronPort-AV: E=Sophos;i="6.08,195,1712613600"; d="scan'208";a="37103537" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 28 May 2024 13:50:20 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 1413D163F66; Tue, 28 May 2024 13:50:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1716897010; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=/58gdiJpM0B3ImJiCbj+KqJdGf8LvDGPhKIR6a6hhbM=; b=jn5/LwSMBdGE+BWjDxi0RR5faA1n+uSIqWJBNMw2n68YARuq3DbPhFy9cv9LpHRQy7b4mr 3EyI+S3oMDZ1RJpbKokB2tD1kimPMkGYiAtLn8SHRLscQKrriuwoccm8p8nPevD/C+7DSE 40FCnqHIPl6ZeVqdxKr3kxMwd1tcqN7hAZseS/96c3iYd8HvlhxMe6usl6aNb/WOkXLNb+ zSQxEXBBYuxSVjTOgLljprQOvEvlEXa7ngGODLpFjVmnlSIHsfDgdKds2SFSe7BELkAPM/ PKgDTUwI60WgyP6ScfOBU36jHZQ1WSKniQUjJJEuNRryo0K3TzxBzz/GvwlTUA== 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 1/1] drm/bridge: imx93-mipi-dsi: Use dev_err_probe Date: Tue, 28 May 2024 13:50:07 +0200 Message-ID: <2814548.mvXUDI8C0e@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <40bc3142-c7be-4dfc-a2ff-6ac209112aa6@nxp.com> References: <20240528093922.194684-1-alexander.stein@ew.tq-group.com> <40bc3142-c7be-4dfc-a2ff-6ac209112aa6@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="UTF-8" X-Last-TLS-Session-Version: TLSv1.3 Hi, thanks for your feedback. Am Dienstag, 28. Mai 2024, 12:02:29 CEST schrieb Liu Ying: > On 05/28/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 > > Signed-off-by: Alexander Stein > > --- > > drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c | 8 +++----- > > 1 file changed, 3 insertions(+), 5 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..8331db3b4f054 100644 > > --- a/drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c > > +++ b/drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c > > @@ -841,11 +841,9 @@ static int imx93_dsi_probe(struct platform_device = *pdev) > > 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"); >=20 > Missing \n. >=20 > And, a build warning: > drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c: In function =E2=80=98imx93_d= si_probe=E2=80=99: > drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c:837:13: warning: unused varia= ble =E2=80=98ret=E2=80=99 [-Wunused-variable] > 837 | int ret; > | ^~~ >=20 Nice catch. Thanks. I'll send v2 tomorrow. Best regards, Alexander =2D-=20 TQ-Systems GmbH | M=C3=BChlstra=C3=9Fe 2, Gut Delling | 82229 Seefeld, Germ= any Amtsgericht M=C3=BCnchen, HRB 105018 Gesch=C3=A4ftsf=C3=BChrer: Detlef Schneider, R=C3=BCdiger Stahl, Stefan Sch= neider http://www.tq-group.com/