aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/cs5530.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-18 18:30:10 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-18 18:30:10 -0400
commit1c51361a9867021dd7444b56d87834003d4ca67d (patch)
tree2b14e5a4d85b9d46571c5839bbcce6f90be8b616 /drivers/ide/pci/cs5530.c
parented67b92385a5afddc98d5ff0894b2854c4a54dac (diff)
ide: add IDE_HFLAG_SERIALIZE host flag
Add IDE_HFLAG_SERIALIZE host flag to tell ide_pci_setup_ports() to set hwif/mate->serialized and convert aec62xx, cs5530 and sc1200 host drivers to use it. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/cs5530.c')
-rw-r--r--drivers/ide/pci/cs5530.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/ide/pci/cs5530.c b/drivers/ide/pci/cs5530.c
index 5e77a3d8e6d0..0324a8a88ef4 100644
--- a/drivers/ide/pci/cs5530.c
+++ b/drivers/ide/pci/cs5530.c
@@ -245,9 +245,6 @@ static void __devinit init_hwif_cs5530 (ide_hwif_t *hwif)
245 unsigned long basereg; 245 unsigned long basereg;
246 u32 d0_timings; 246 u32 d0_timings;
247 247
248 if (hwif->mate)
249 hwif->serialized = hwif->mate->serialized = 1;
250
251 hwif->set_pio_mode = &cs5530_set_pio_mode; 248 hwif->set_pio_mode = &cs5530_set_pio_mode;
252 hwif->set_dma_mode = &cs5530_set_dma_mode; 249 hwif->set_dma_mode = &cs5530_set_dma_mode;
253 250
@@ -271,7 +268,9 @@ static ide_pci_device_t cs5530_chipset __devinitdata = {
271 .name = "CS5530", 268 .name = "CS5530",
272 .init_chipset = init_chipset_cs5530, 269 .init_chipset = init_chipset_cs5530,
273 .init_hwif = init_hwif_cs5530, 270 .init_hwif = init_hwif_cs5530,
274 .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_BOOTABLE, 271 .host_flags = IDE_HFLAG_SERIALIZE |
272 IDE_HFLAG_POST_SET_MODE |
273 IDE_HFLAG_BOOTABLE,
275 .pio_mask = ATA_PIO4, 274 .pio_mask = ATA_PIO4,
276 .mwdma_mask = ATA_MWDMA2, 275 .mwdma_mask = ATA_MWDMA2,
277 .udma_mask = ATA_UDMA2, 276 .udma_mask = ATA_UDMA2,