From: Jan Nikitenko <jan.nikitenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Manuel Lauss <mano-nEyxjcs6f3Vin2gBucwGBecsttgLyre6@public.gmane.org>
Cc: spi-devel-general-TtF/mJH4Jtrk1uMJSBkQmQ@public.gmane.org
Subject: Re: [PATCH] au1550-spi: proper platform driver.
Date: Tue, 10 Jun 2008 15:35:41 +0200 [thread overview]
Message-ID: <484E832D.2090002@gmail.com> (raw)
In-Reply-To: <20080610132440.GA6580-nEyxjcs6f3Vin2gBucwGBecsttgLyre6@public.gmane.org>
Manuel Lauss wrote:
>>From d5c837fe6df9c4cebb0d2d7fc947c7d50c4369c6 Mon Sep 17 00:00:00 2001
> From: Manuel Lauss <mano-nEyxjcs6f3Vin2gBucwGBecsttgLyre6@public.gmane.org>
> Date: Sat, 7 Jun 2008 12:14:37 +0200
> Subject: [PATCH] au1550_spi: proper platform driver
>
> Remove the Au1550 resource table and instead extract MMIO/IRQ/DMA
> resources from platform resource information like any well-behaved
> platform driver.
>
> Signed-off-by: Manuel Lauss <mano-nEyxjcs6f3Vin2gBucwGBecsttgLyre6@public.gmane.org>
> Signed-off-by: Jan Nikitenko <jan.nikitenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Please, do not sign by my signature:-/ Particularly when you did not make the
requested change concerning the parameter of release_mem_region() - see below,
please...
<snip>
> @@ -924,7 +915,9 @@ err_no_txdma_descr:
> au1xxx_dbdma_chan_free(hw->dma_tx_ch);
>
> err_no_txdma:
> -err_dma_add_dev:
> + iounmap((void __iomem *)hw->regs);
> +
> +err_ioremap:
> release_mem_region((unsigned long)hw->regs, sizeof(psc_spi_t));
hw->regs is not valid argument for release_mem_region() - physical address was
used for request_mem_region() obtained from the resource, but here it is used
ioremapped and it's not even valid anymore...
>
> err_no_iores:
> @@ -945,6 +938,7 @@ static int __exit au1550_spi_remove(struct
platform_device *pdev)
> spi_bitbang_stop(&hw->bitbang);
> free_irq(hw->irq, hw);
> release_mem_region((unsigned long)hw->regs, sizeof(psc_spi_t));
> + iounmap((void __iomem *)hw->regs);
maybe we should put the iounmap() above the release_mem_region().
Here the parameter for release_mem_region() has the same problem as mentioned above.
<snip>
Could you please, fix that?
Thanks and best regards,
Jan
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
next prev parent reply other threads:[~2008-06-10 13:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-10 13:24 [PATCH] au1550-spi: proper platform driver Manuel Lauss
[not found] ` <20080610132440.GA6580-nEyxjcs6f3Vin2gBucwGBecsttgLyre6@public.gmane.org>
2008-06-10 13:35 ` Jan Nikitenko [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-06-10 9:46 Jan Nikitenko
2008-06-10 10:00 ` Manuel Lauss
[not found] ` <20080610100004.GA4637-nEyxjcs6f3Vin2gBucwGBecsttgLyre6@public.gmane.org>
2008-06-10 11:12 ` Jan Nikitenko
[not found] ` <484E61A4.9080707-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-06-10 11:27 ` Manuel Lauss
[not found] ` <20080610112702.GB4637-nEyxjcs6f3Vin2gBucwGBecsttgLyre6@public.gmane.org>
2008-06-10 12:19 ` Jan Nikitenko
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=484E832D.2090002@gmail.com \
--to=jan.nikitenko-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=mano-nEyxjcs6f3Vin2gBucwGBecsttgLyre6@public.gmane.org \
--cc=spi-devel-general-TtF/mJH4Jtrk1uMJSBkQmQ@public.gmane.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.