From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 1198EC433EF for ; Thu, 21 Jul 2022 13:41:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8Ens4l0/GMfoH3/WIqjGCZ27CyMHbGxpjtZso+/zN1I=; b=VoG8T/Nn13BYEI O6m6fc5kqRcvBBELkv4CK7Xr7V2O7tLOyVmERULdvokbsP61BkskGGogwG/A7nHfPucFeEEtj6c7E JnFOVePqgDyiwY0ti4E3irO0mH1CkbGrglvYSbq1c0jG2z+9+WUqXMbwyZgBJQs9N/ZS7dhnnW4vc Hj5vBJH/NHS3hoGLrEyJwo2s+ZIbuzaM1blMHri9VQO8QOAoJUGYxBYTDspGerazfNqOuF+K16nHh S4OOBFi9IhWj9MDaKCKTx1eCr2DlFCG30MMM6k6unNIz/2b+ij5Ms8bie8rAFikFrwFBgm4ci/Eg9 1tEJ5xkxmyv8L5B+R4qQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEWQ2-007Arp-AM; Thu, 21 Jul 2022 13:40:47 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEWLp-0077Lv-03 for linux-arm-kernel@lists.infradead.org; Thu, 21 Jul 2022 13:36:26 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5435261F09; Thu, 21 Jul 2022 13:36:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73E3BC341C6; Thu, 21 Jul 2022 13:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658410584; bh=tPw3/zFzSi74bxB/0a8YLwdGeKzsIDaGr+axnWPvb3I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cls4ebnuCw+MOwSL2tvLlbZ1M1xywKs5TPjlmyha75NSYGgU5gcPLyd89HEL4Mbc5 t9kVrcskREyLyx9HjylF5yeMMYa8li7LEYoOdQoXq9pP3hNxGr14ZOIOqRiKMilrKl EiGXQwKyXWlffx4WGW/NqJ+jRWu6NM4vYVXFITVOgwHL6JtGEuKxMr0ZbkbL1IuWUI 1MHarp7A9X/0aT7qjZLVHDDjCQjI9bYwlRp+2ZIc4A3LUcMypajwQX5rcprXMpStXO i+P5dkeyeqHtv43t9juwSRs2wELcbwqVwUtR1wUHNGzC4luIlu1psX5UeWgRO1wqez 52K80HThdnYzA== Date: Thu, 21 Jul 2022 19:06:19 +0530 From: Vinod Koul To: "Agarwal, Swati" Cc: Swati Agarwal , "lars@metafoo.de" , "adrianml@alumnos.upm.es" , "libaokun1@huawei.com" , "marex@denx.de" , "dmaengine@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "harini.katakam@xilinx.com" , "radhey.shyam.pandey@xilinx.com" , "michal.simek@xilinx.com" , "Katakam, Harini" , "Pandey, Radhey Shyam" , "Simek, Michal" Subject: Re: [PATCH 1/2] dmaengine: xilinx_dma: Fix probe error cleanup Message-ID: References: <20220624063539.18657-1-swati.agarwal@xilinx.com> <20220624063539.18657-2-swati.agarwal@xilinx.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220721_063625_158276_9229202B X-CRM114-Status: GOOD ( 23.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 12-07-22, 07:36, Agarwal, Swati wrote: > Hi Vinod, > > > -----Original Message----- > > From: Vinod Koul > > Sent: Friday, July 1, 2022 5:21 PM > > To: Swati Agarwal > > Cc: lars@metafoo.de; adrianml@alumnos.upm.es; libaokun1@huawei.com; > > marex@denx.de; dmaengine@vger.kernel.org; linux-arm- > > kernel@lists.infradead.org; linux-kernel@vger.kernel.org; > > harini.katakam@xilinx.com; radhey.shyam.pandey@xilinx.com; > > michal.simek@xilinx.com > > Subject: Re: [PATCH 1/2] dmaengine: xilinx_dma: Fix probe error cleanup > > > > CAUTION: This message has originated from an External Source. Please use > > proper judgment and caution when opening attachments, clicking links, or > > responding to this email. > > > > > > On 24-06-22, 12:05, Swati Agarwal wrote: > > > When probe fails remove dma channel resources and disable clocks in > > > accordance with the order of resources allocated . > > > > Ok this looks fine and the changes below.. > > Thanks for the review!! > Sorry for the delayed reply. I missed this mail due to some mailer issues. > > > > > > > Add missing cleanup in devm_platform_ioremap_resource(), > > > xlnx,num-fstores property. > > > > Where is this part? > > The statement is an elaboration of the previous one. The relevant code is below. Okay, a patch should do only One thing, pls consider splitting it up... > > > > > /* Request and map I/O memory */ > > > xdev->regs = devm_platform_ioremap_resource(pdev, 0); > > > - if (IS_ERR(xdev->regs)) > > > - return PTR_ERR(xdev->regs); > > > + if (IS_ERR(xdev->regs)) { > > > + err = PTR_ERR(xdev->regs); > > > + goto disable_clks; > > > + } > > This > > > > > if (err < 0) { > > > dev_err(xdev->dev, > > > "missing xlnx,num-fstores property\n"); > > > - return err; > > > + goto disable_clks; > > > } > > And this > > Regards, > Swati Agarwal -- ~Vinod _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel