Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142679
b: refs/heads/master
c: 933cb8e
h: refs/heads/master
i:
  142677: a6de4dd
  142675: eec3ec3
  142671: 02e2a54
v: v3
  • Loading branch information
Mark Lord authored and Jeff Garzik committed Apr 7, 2009
1 parent 33f8f8b commit 262bc4d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 44c65d169c5d2e5c872581ebc65f12710d7c3b71
refs/heads/master: 933cb8e5fcdebd4b666165e3f039f814d62b0e52
9 changes: 9 additions & 0 deletions trunk/drivers/ata/sata_mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,7 @@ static int mv_port_start(struct ata_port *ap)
struct device *dev = ap->host->dev;
struct mv_host_priv *hpriv = ap->host->private_data;
struct mv_port_priv *pp;
unsigned long flags;
int tag;

pp = devm_kzalloc(dev, sizeof(*pp), GFP_KERNEL);
Expand Down Expand Up @@ -1610,8 +1611,12 @@ static int mv_port_start(struct ata_port *ap)
pp->sg_tbl_dma[tag] = pp->sg_tbl_dma[0];
}
}

spin_lock_irqsave(ap->lock, flags);
mv_save_cached_regs(ap);
mv_edma_cfg(ap, 0, 0);
spin_unlock_irqrestore(ap->lock, flags);

return 0;

out_port_free_dma_mem:
Expand All @@ -1630,8 +1635,12 @@ static int mv_port_start(struct ata_port *ap)
*/
static void mv_port_stop(struct ata_port *ap)
{
unsigned long flags;

spin_lock_irqsave(ap->lock, flags);
mv_stop_edma(ap);
mv_enable_port_irqs(ap, 0);
spin_unlock_irqrestore(ap->lock, flags);
mv_port_free_dma_mem(ap);
}

Expand Down

0 comments on commit 262bc4d

Please sign in to comment.