Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47383
b: refs/heads/master
c: 409ba47
h: refs/heads/master
i:
  47381: 9ef65cb
  47379: 7cfea08
  47375: dcc1366
v: v3
  • Loading branch information
Sergei Shtylyov authored and Jeff Garzik committed Feb 9, 2007
1 parent af74ef5 commit 1c4d17b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 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: 49554c19569c91d0943b67ca731c9abfc857883f
refs/heads/master: 409ba47c297fd13849909adea63f183f55d52418
18 changes: 10 additions & 8 deletions trunk/drivers/ata/pata_oldpiix.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <linux/ata.h>

#define DRV_NAME "pata_oldpiix"
#define DRV_VERSION "0.5.2"
#define DRV_VERSION "0.5.3"

/**
* oldpiix_pre_reset - probe begin
Expand Down Expand Up @@ -94,19 +94,21 @@ static void oldpiix_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))
control |= 2; /* IE IORDY */
control |= 2; /* IE */

/* Intel specifies that the PPE functionality is for disk only */
/* Intel specifies that the prefetch/posting is for disk only */
if (adev->class == ATA_DEV_ATA)
control |= 4; /* PPE enable */
control |= 4; /* PPE */

pci_read_config_word(dev, idetm_port, &idetm_data);

/* Enable PPE, IE and TIME as appropriate. Clear the other
drive timing bits */
/*
* Set PPE, IE and TIME as appropriate.
* Clear the other drive's timing bits.
*/
if (adev->devno == 0) {
idetm_data &= 0xCCE0;
idetm_data |= control;
Expand Down

0 comments on commit 1c4d17b

Please sign in to comment.