From: Vinod Koul <vkoul@kernel.org>
To: "Agarwal, Swati" <swati.agarwal@amd.com>
Cc: Swati Agarwal <swati.agarwal@xilinx.com>,
"lars@metafoo.de" <lars@metafoo.de>,
"adrianml@alumnos.upm.es" <adrianml@alumnos.upm.es>,
"libaokun1@huawei.com" <libaokun1@huawei.com>,
"marex@denx.de" <marex@denx.de>,
"dmaengine@vger.kernel.org" <dmaengine@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"harini.katakam@xilinx.com" <harini.katakam@xilinx.com>,
"radhey.shyam.pandey@xilinx.com" <radhey.shyam.pandey@xilinx.com>,
"michal.simek@xilinx.com" <michal.simek@xilinx.com>,
"Katakam, Harini" <harini.katakam@amd.com>,
"Pandey, Radhey Shyam" <radhey.shyam.pandey@amd.com>,
"Simek, Michal" <michal.simek@amd.com>
Subject: Re: [PATCH 1/2] dmaengine: xilinx_dma: Fix probe error cleanup
Date: Thu, 21 Jul 2022 19:06:19 +0530 [thread overview]
Message-ID: <YtlWU/H+45hkEv4o@matsya> (raw)
In-Reply-To: <BL0PR12MB25796644B683AB6FAF6BD9D6E4869@BL0PR12MB2579.namprd12.prod.outlook.com>
On 12-07-22, 07:36, Agarwal, Swati wrote:
> Hi Vinod,
>
> > -----Original Message-----
> > From: Vinod Koul <vkoul@kernel.org>
> > Sent: Friday, July 1, 2022 5:21 PM
> > To: Swati Agarwal <swati.agarwal@xilinx.com>
> > 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...
>
> <snip>
> > > /* 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
>
> <snip>
> > > if (err < 0) {
> > > dev_err(xdev->dev,
> > > "missing xlnx,num-fstores property\n");
> > > - return err;
> > > + goto disable_clks;
> > > }
>
> And this
>
> Regards,
> Swati Agarwal
--
~Vinod
next prev parent reply other threads:[~2022-07-21 13:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-24 6:35 [PATCH 0/2] dmaengine : xilinx_dma: Fix error handling paths Swati Agarwal
2022-06-24 6:35 ` [PATCH 1/2] dmaengine: xilinx_dma: Fix probe error cleanup Swati Agarwal
2022-07-01 11:50 ` Vinod Koul
2022-07-12 7:36 ` Agarwal, Swati
2022-07-21 13:36 ` Vinod Koul [this message]
2022-06-24 6:35 ` [PATCH 2/2] dmaengine: xilinx_dma: Report error in case of dma_set_mask_and_coherent API failure Swati Agarwal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YtlWU/H+45hkEv4o@matsya \
--to=vkoul@kernel.org \
--cc=adrianml@alumnos.upm.es \
--cc=dmaengine@vger.kernel.org \
--cc=harini.katakam@amd.com \
--cc=harini.katakam@xilinx.com \
--cc=lars@metafoo.de \
--cc=libaokun1@huawei.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marex@denx.de \
--cc=michal.simek@amd.com \
--cc=michal.simek@xilinx.com \
--cc=radhey.shyam.pandey@amd.com \
--cc=radhey.shyam.pandey@xilinx.com \
--cc=swati.agarwal@amd.com \
--cc=swati.agarwal@xilinx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox