mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
cmd64x: fix hwif->chipset setup
commit 528a572dae
("ide: add ->chipset field
to ide_pci_device_t") broke hwif->chipset setup (it is now set to ide_cmd646
for CMD648 instead of CMD646). It seems that the breakage happend while
I was moving patches around (cmd64x_chipsets[] entries for CMD646 and CMD648
are identical except for 'name' field). Fix it and bump driver version.
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
c404c199f7
commit
deffca117b
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* linux/drivers/ide/pci/cmd64x.c Version 1.51 Nov 8, 2007
|
* linux/drivers/ide/pci/cmd64x.c Version 1.52 Dec 24, 2007
|
||||||
*
|
*
|
||||||
* cmd64x.c: Enable interrupts at initialization time on Ultra/PCI machines.
|
* cmd64x.c: Enable interrupts at initialization time on Ultra/PCI machines.
|
||||||
* Due to massive hardware bugs, UltraDMA is only supported
|
* Due to massive hardware bugs, UltraDMA is only supported
|
||||||
@ -564,6 +564,7 @@ static const struct ide_port_info cmd64x_chipsets[] __devinitdata = {
|
|||||||
.init_chipset = init_chipset_cmd64x,
|
.init_chipset = init_chipset_cmd64x,
|
||||||
.init_hwif = init_hwif_cmd64x,
|
.init_hwif = init_hwif_cmd64x,
|
||||||
.enablebits = {{0x51,0x04,0x04}, {0x51,0x08,0x08}},
|
.enablebits = {{0x51,0x04,0x04}, {0x51,0x08,0x08}},
|
||||||
|
.chipset = ide_cmd646,
|
||||||
.host_flags = IDE_HFLAG_ABUSE_PREFETCH | IDE_HFLAG_BOOTABLE,
|
.host_flags = IDE_HFLAG_ABUSE_PREFETCH | IDE_HFLAG_BOOTABLE,
|
||||||
.pio_mask = ATA_PIO5,
|
.pio_mask = ATA_PIO5,
|
||||||
.mwdma_mask = ATA_MWDMA2,
|
.mwdma_mask = ATA_MWDMA2,
|
||||||
@ -573,7 +574,6 @@ static const struct ide_port_info cmd64x_chipsets[] __devinitdata = {
|
|||||||
.init_chipset = init_chipset_cmd64x,
|
.init_chipset = init_chipset_cmd64x,
|
||||||
.init_hwif = init_hwif_cmd64x,
|
.init_hwif = init_hwif_cmd64x,
|
||||||
.enablebits = {{0x51,0x04,0x04}, {0x51,0x08,0x08}},
|
.enablebits = {{0x51,0x04,0x04}, {0x51,0x08,0x08}},
|
||||||
.chipset = ide_cmd646,
|
|
||||||
.host_flags = IDE_HFLAG_ABUSE_PREFETCH | IDE_HFLAG_BOOTABLE,
|
.host_flags = IDE_HFLAG_ABUSE_PREFETCH | IDE_HFLAG_BOOTABLE,
|
||||||
.pio_mask = ATA_PIO5,
|
.pio_mask = ATA_PIO5,
|
||||||
.mwdma_mask = ATA_MWDMA2,
|
.mwdma_mask = ATA_MWDMA2,
|
||||||
|
Loading…
Reference in New Issue
Block a user