Skip DMA initialization completely on revs < 0x20 by setting IDE_HFLAG_NO_DMA
host flag and resetting DMA host masks in alim15x3_init_one() (currently
ide_hwif_setup_dma() will try to obtain DMA base and setup PCI bus-mastering
but init_dma_ali15x3() will fail).
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
drivers/ide/pci/alim15x3.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Index: b/drivers/ide/pci/alim15x3.c
===================================================================
--- a/drivers/ide/pci/alim15x3.c
+++ b/drivers/ide/pci/alim15x3.c
@@ -732,8 +732,6 @@ static void __devinit init_hwif_ali15x3
static void __devinit init_dma_ali15x3 (ide_hwif_t *hwif, unsigned long dmabase)
{
- if (m5229_revision < 0x20)
- return;
if (!hwif->channel)
outb(inb(dmabase + 2) & 0x60, dmabase + 2);
ide_setup_dma(hwif, dmabase);
@@ -794,6 +792,10 @@ static int __devinit alim15x3_init_one(s
d.udma_mask = ATA_UDMA5;
else
d.udma_mask = ATA_UDMA6;
+ } else {
+ d.host_flags |= IDE_HFLAG_NO_DMA;
+
+ d.mwdma_mask = d.swdma_mask = 0;
}
if (idx == 0)
--
| Andy Whitcroft | Re: 2.6.22 -mm merge plans -- pfn_valid_within |
| Linus Torvalds | Linux 2.6.27-rc8 |
| Fernando Luis | [PATCH] affinity is not defined in non-smp kernels - x86_64 |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Wink Saville | Using git with Eclipse |
| Andy Parkins | svn:externals using git submodules |
| Jan Wielemaker | [PATCH] git-shell and git-cvsserver |
| Alf Mikula | Migrating a git repository to subversion |
| Leon Dippenaar | New tcp stack attack |
| Richard Stallman | Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| (private) HKS | Re: sshd_config(5) PermitRootLogin yes |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Pavel Emelyanov | [PATCH net-2.6.25 9/11][INET] Merge sys.net.ipv4.ip_forward and sys.net.ipv4.conf.... |
| Evgeniy Polyakov | Re: [Bugme-new] [Bug 10556] New: IPVS sync_backup oops |
| Johannes Berg | Re: wireless vs. alignment requirements |
