Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172879
b: refs/heads/master
c: ed869ff
h: refs/heads/master
i:
  172877: 030aef6
  172875: 2b272d0
  172871: 0043e18
  172863: 1cabe66
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and Jeff Garzik committed Dec 3, 2009
1 parent 7f867d5 commit 6fd5b98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 088ccb53a341b5c0afab67e392b053ebb0bf7b2b
refs/heads/master: ed869ff0c70d482de0dc97c3138ff42cbf87aed5
13 changes: 6 additions & 7 deletions trunk/drivers/ata/pata_it8213.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,17 @@ static void it8213_set_piomode (struct ata_port *ap, struct ata_device *adev)
{ 2, 1 },
{ 2, 3 }, };

if (pio > 2)
control |= 1; /* TIME1 enable */
if (pio > 1)
control |= 1; /* TIME */
if (ata_pio_need_iordy(adev)) /* PIO 3/4 require IORDY */
control |= 2; /* IORDY enable */
control |= 2; /* IE */
/* Bit 2 is set for ATAPI on the IT8213 - reverse of ICH/PIIX */
if (adev->class != ATA_DEV_ATA)
control |= 4;
control |= 4; /* PPE */

pci_read_config_word(dev, idetm_port, &idetm_data);

/* Enable PPE, IE and TIME as appropriate */

/* Set PPE, IE, and TIME as appropriate */
if (adev->devno == 0) {
idetm_data &= 0xCCF0;
idetm_data |= control;
Expand All @@ -122,7 +121,7 @@ static void it8213_set_piomode (struct ata_port *ap, struct ata_device *adev)
pci_write_config_byte(dev, 0x44, slave_data);
}

idetm_data |= 0x4000; /* Ensure SITRE is enabled */
idetm_data |= 0x4000; /* Ensure SITRE is set */
pci_write_config_word(dev, idetm_port, idetm_data);
}

Expand Down

0 comments on commit 6fd5b98

Please sign in to comment.