summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/src/drivers/block/triton.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/linux/src/drivers/block/triton.c b/linux/src/drivers/block/triton.c
index 739b1b9..0017069 100644
--- a/linux/src/drivers/block/triton.c
+++ b/linux/src/drivers/block/triton.c
@@ -409,7 +409,17 @@ void ide_init_triton (byte bus, byte fn)
goto quit;
}
if ((pcicmd & 4) == 0) {
- printk("ide: BM-DMA feature is not enabled (BIOS)\n");
+ printk("ide: BM-DMA feature is not enabled (BIOS), enabling\n");
+ pcicmd |= 4;
+ pcibios_write_config_word(bus, fn, 0x04, pcicmd);
+ if ((rc = pcibios_read_config_word(bus, fn, 0x04, &pcicmd))) {
+ printk("ide: Couldn't read back PCI command\n");
+ goto quit;
+ }
+ }
+
+ if ((pcicmd & 4) == 0) {
+ printk("ide: BM-DMA feature couldn't be enabled\n");
} else {
/*
* Get the bmiba base address