From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH 11/15] ide: PCI BMDMA initialization fixes
Date: Wed, 03 Oct 2007 17:13:21 +0400 [thread overview]
Message-ID: <47039571.20907@ru.mvista.com> (raw)
In-Reply-To: <200710012338.31404.bzolnier@gmail.com>
Hello.
Bartlomiej Zolnierkiewicz wrote:
> * Set hwif->dma_base only if allocation of extra ports succeeds.
> * Allocate hwif->dmatable_cpu before reserving I/O ports.
Looks like a bit of teardown code was missed with that change...
> While at it:
> * Move setting of hwif->dma_{base,master} from ide_{mapped_mmio,iomio}_dma()
> to ide_setup_dma().
> * Rename 'dma_base' argument to 'base' in ide_setup_dma().
I'm not sure what that achieves...
> * Remove stale ide_setup_dma() comment.
> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> @@ -1006,18 +994,20 @@ static int ide_dma_iobase(ide_hwif_t *hw
> return ide_iomio_dma(hwif, base, ports);
> }
>
> -/*
> - * This can be called for a dynamically installed interface. Don't __init it
> - */
> -void ide_setup_dma (ide_hwif_t *hwif, unsigned long dma_base, unsigned int num_ports)
> +void ide_setup_dma(ide_hwif_t *hwif, unsigned long base, unsigned num_ports)
> {
> - if (ide_dma_iobase(hwif, dma_base, num_ports))
> + if (ide_allocate_dma_engine(hwif))
> return;
>
> - if (ide_allocate_dma_engine(hwif)) {
> - ide_release_dma(hwif);
> + if (ide_dma_iobase(hwif, base, num_ports))
Why no ide_release_dma_engine() call here?
MBR, Sergei
next prev parent reply other threads:[~2007-10-03 13:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-01 21:38 [PATCH 11/15] ide: PCI BMDMA initialization fixes Bartlomiej Zolnierkiewicz
2007-10-03 13:13 ` Sergei Shtylyov [this message]
2007-10-03 21:59 ` Bartlomiej Zolnierkiewicz
2007-10-24 17:37 ` Sergei Shtylyov
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=47039571.20907@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).