Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp438735lqp; Wed, 22 May 2024 08:53:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVWOr7oKRlBgQOKMm6c715PL5kOSmXICOCBXVcXNnbuwKlUtImllclLZJjTWjzY6GjlX2Bigp8+EKypT+de6y39df2yjMsrfm7LOPbWw== X-Google-Smtp-Source: AGHT+IG40Omv8EEMHGd09ROb/dIEfv3JscRjdvP0OJApf/R8koh1rXjeItO2q5jejJPCVTYuyOVA X-Received: by 2002:a05:622a:14c6:b0:43d:fca8:910d with SMTP id d75a77b69052e-43f9e0a27b0mr25557251cf.24.1716393226716; Wed, 22 May 2024 08:53:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716393226; cv=pass; d=google.com; s=arc-20160816; b=HX12XoztZ69XX8kht1jH2mJHKsvQVM9/sWVpyUUcE/rufyl+KjQKc1bZAug/vU0qJB tHRI+3NsOtF2qv6CDYGSiXM5I+3AgZNoNAJIn4+tPa8hz6Qsg+zFbDa+Tlu+4j8o1eqx WTECWiAHjrp49gQ96q4+xingCAR5SQDheBD3U2fHmzWtrRgXJcu1xpFGSySwVl2DtSCo 1Jopy3qMnDuAs4lipS5/Kzhw9nAuGCVtmBuQ2aB1se/MQtOoe0YTKi3EgDyi8J2m15if +JI+qUN4vfFapEUAcHbgqLG0d6Uwg9OW78hGg4p14mWENqKEZYfFjGe6PkBcExtjWUbU 3KQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JDt++QQAlsOzUrDwlx9IXnAUdrObqcb+6aIPVZEPWrE=; fh=52WvFK60e6HkmOrHDdq8tohVwvZHJnmAskGfKn9XRLs=; b=HS4qrKU+BWHsGYxWUZLq7VTv4pnB6L/fCSZeuAJdBJIQlpmLm8a5/q4/5YpVMiYNfj emt35/WzXY3q/GQLxvtLuNjB3ryA0hSqEhOhkMQvLgBYvOdhxCjxe0U5fUs+9e3OZNIv nacSZOl4aZSjP+sdRqc+Ske8HqeL7Qghjw89vjdlX+Sk8T1OEMU8+1kXLvTQKtYDfepJ vJDhBe8KkCXyWtK9+o+vlG8WkpW3GzZerb8EJX3n2fg/XV9T7S77XaKym+TNCefcpvKW oVr7CH7gIDH2vd40nha72aXc0+M6/i5p0tu9FuTAtyWunxSTM06dhr2tUOwaj1XMrJVw ZErA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=IelD6NNy; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-186464-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186464-linux.lists.archive=gmail.com@vger.kernel.org" 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-43df56c2b9asi120275941cf.615.2024.05.22.08.53.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 08:53:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186464-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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=IelD6NNy; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-186464-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186464-linux.lists.archive=gmail.com@vger.kernel.org" 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 2FEBE1C21C50 for ; Wed, 22 May 2024 15:53:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8509413DBBD; Wed, 22 May 2024 15:53:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="IelD6NNy" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 59C516EB5D; Wed, 22 May 2024 15:53:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716393218; cv=none; b=hr0+wGpcN9Lbt9mjnEFwQoEtEVHQBluUnkATtwsvY/EYNW8u9yGzhmJmFYozlHu9zLMBcReit5iaFb1OsD1+1sBWT0xK63T7jfbgolOPq/TJ6xtjpqg6deea094t5ZcmXjfSe78ThxTOdVno4UZ+1xx9h9I+PuWL8ioFlrcjC/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716393218; c=relaxed/simple; bh=A/ZS2NtINBxthxwqs5PcU2EkST+CNjfZ5b8/iFOfEhU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=r3Noggr9Awp4EVuJe0+0aFRen4X6+Sxg+gl0tNkRb2xkuyiUkYENjNMyyZSp2Nu3DA1CiLtKt+u5sqolKi6JhdMmR7niP/Sm7kAVdNtMaZuimiqiUBolSiUD1zqBKleSh8/wsHQsGtJ9437lJ62VUfOeH2PqzsYLldTh1xOMrgg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=IelD6NNy; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BBF1BC67; Wed, 22 May 2024 17:53:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1716393202; bh=A/ZS2NtINBxthxwqs5PcU2EkST+CNjfZ5b8/iFOfEhU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IelD6NNycUfvoHK84yZHpxTn7nh6WN1bSc/gKsWdz6CnuXUTf38HWwaPvr6+f46Ev fjdBnlhyT0LQC+YAMTDIFZiq82rAMQu7V+IdNFjhjB2SHACSsutM/PVjn7kdz7liPg 7gHxp3CUdzihFfVj4PCTsnbiMKo42t2Ig5Ag5XDQ= Date: Wed, 22 May 2024 18:53:26 +0300 From: Laurent Pinchart To: Christophe JAILLET Cc: Tomi Valkeinen , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Michal Simek , Sean Anderson , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Anatoliy Klymenko Subject: Re: [PATCH] drm: zynqmp_dpsub: Fix an error handling path in zynqmp_dpsub_probe() Message-ID: <20240522155326.GC9789@pendragon.ideasonboard.com> References: <974d1b062d7c61ee6db00d16fa7c69aa1218ee02.1716198025.git.christophe.jaillet@wanadoo.fr> 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-Disposition: inline In-Reply-To: <974d1b062d7c61ee6db00d16fa7c69aa1218ee02.1716198025.git.christophe.jaillet@wanadoo.fr> Hi Christophe, Thank you for the patch. On Mon, May 20, 2024 at 11:40:37AM +0200, Christophe JAILLET wrote: > If zynqmp_dpsub_drm_init() fails, we must undo the previous > drm_bridge_add() call. > > Fixes: be3f3042391d ("drm: zynqmp_dpsub: Always register bridge") > Signed-off-by: Christophe JAILLET Reviewed-by: Laurent Pinchart > --- > Compile tested only > --- > drivers/gpu/drm/xlnx/zynqmp_dpsub.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/xlnx/zynqmp_dpsub.c b/drivers/gpu/drm/xlnx/zynqmp_dpsub.c > index face8d6b2a6f..f5781939de9c 100644 > --- a/drivers/gpu/drm/xlnx/zynqmp_dpsub.c > +++ b/drivers/gpu/drm/xlnx/zynqmp_dpsub.c > @@ -269,6 +269,7 @@ static int zynqmp_dpsub_probe(struct platform_device *pdev) > return 0; > > err_disp: > + drm_bridge_remove(dpsub->bridge); > zynqmp_disp_remove(dpsub); > err_dp: > zynqmp_dp_remove(dpsub); -- Regards, Laurent Pinchart