Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133577
b: refs/heads/master
c: 96b34ce
h: refs/heads/master
i:
  133575: d259c47
v: v3
  • Loading branch information
Phil Sutter authored and Jeff Garzik committed Mar 25, 2009
1 parent c346da7 commit 488500f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 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: 84bcbeebcfd283c3f4804287ed4610c3a18e1590
refs/heads/master: 96b34ce7cafa0888580698d199b9fac6ad9f9a2e
15 changes: 2 additions & 13 deletions trunk/drivers/ata/pata_rb532_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,11 @@ struct rb532_cf_info {

/* ------------------------------------------------------------------------ */

static inline void rb532_pata_finish_io(struct ata_port *ap)
{
struct ata_host *ah = ap->host;
struct rb532_cf_info *info = ah->private_data;

/* FIXME: Keep previous delay. If this is merely a fence then
ata_sff_sync might be sufficient. */
ata_sff_dma_pause(ap);
ndelay(RB500_CF_IO_DELAY);
}

static void rb532_pata_exec_command(struct ata_port *ap,
const struct ata_taskfile *tf)
{
writeb(tf->command, ap->ioaddr.command_addr);
rb532_pata_finish_io(ap);
ata_sff_pause(ap);
}

static unsigned int rb532_pata_data_xfer(struct ata_device *adev, unsigned char *buf,
Expand All @@ -87,7 +76,7 @@ static unsigned int rb532_pata_data_xfer(struct ata_device *adev, unsigned char
*buf = readb(ioaddr);
}

rb532_pata_finish_io(adev->link->ap);
ata_sff_pause(ap);
return retlen;
}

Expand Down

0 comments on commit 488500f

Please sign in to comment.