Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235000
b: refs/heads/master
c: 4ac7534
h: refs/heads/master
v: v3
  • Loading branch information
Prabhakar Kushwaha authored and Jeff Garzik committed Mar 14, 2011
1 parent a451c4a commit d1d9719
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 6b3b9d73e08d8939aaf54f85bb47495171f49e20
refs/heads/master: 4ac7534a7ff1aa1b1486e39bdf169aaa8a9bb3e2
7 changes: 5 additions & 2 deletions trunk/drivers/ata/sata_fsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1039,12 +1039,15 @@ static void sata_fsl_error_intr(struct ata_port *ap)

/* find out the offending link and qc */
if (ap->nr_pmp_links) {
unsigned int dev_num;

dereg = ioread32(hcr_base + DE);
iowrite32(dereg, hcr_base + DE);
iowrite32(cereg, hcr_base + CE);

if (dereg < ap->nr_pmp_links) {
link = &ap->pmp_link[dereg];
dev_num = ffs(dereg) - 1;
if (dev_num < ap->nr_pmp_links && dereg != 0) {
link = &ap->pmp_link[dev_num];
ehi = &link->eh_info;
qc = ata_qc_from_tag(ap, link->active_tag);
/*
Expand Down

0 comments on commit d1d9719

Please sign in to comment.