Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299202
b: refs/heads/master
c: 6674fb7
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Mar 26, 2012
1 parent 1e8e579 commit 6ebc2ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 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: 3389bb8bf76180eecaffdfa7dd5b35fa4a2ce9b5
refs/heads/master: 6674fb79ca9c19f5ee3d4cd683da2d9e09cfc9b8
19 changes: 8 additions & 11 deletions trunk/drivers/block/mtip32xx/mtip32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,10 @@ static void mtip_init_port(struct mtip_port *port)
/* Clear any pending interrupts for this port */
writel(readl(port->mmio + PORT_IRQ_STAT), port->mmio + PORT_IRQ_STAT);

/* Clear any pending interrupts on the HBA. */
writel(readl(port->dd->mmio + HOST_IRQ_STAT),
port->dd->mmio + HOST_IRQ_STAT);

/* Enable port interrupts */
writel(DEF_PORT_IRQ, port->mmio + PORT_IRQ_MASK);
}
Expand Down Expand Up @@ -490,11 +494,9 @@ static void mtip_restart_port(struct mtip_port *port)
dev_warn(&port->dd->pdev->dev,
"COM reset failed\n");

/* Clear SError, the PxSERR.DIAG.x should be set so clear it */
writel(readl(port->mmio + PORT_SCR_ERR), port->mmio + PORT_SCR_ERR);
mtip_init_port(port);
mtip_start_port(port);

/* Enable the DMA engine */
mtip_enable_engine(port, 1);
}

/*
Expand Down Expand Up @@ -3359,9 +3361,6 @@ static int mtip_pci_probe(struct pci_dev *pdev,
return -ENOMEM;
}

/* Set the atomic variable as 1 in case of SRSI */
atomic_set(&dd->drv_cleanup_done, true);

atomic_set(&dd->resumeflag, false);

/* Attach the private data to this PCI device. */
Expand Down Expand Up @@ -3434,8 +3433,8 @@ static int mtip_pci_probe(struct pci_dev *pdev,
pci_set_drvdata(pdev, NULL);
return rv;
done:
/* Set the atomic variable as 0 in case of SRSI */
atomic_set(&dd->drv_cleanup_done, true);
/* Set the atomic variable as 0 */
atomic_set(&dd->drv_cleanup_done, false);

return rv;
}
Expand Down Expand Up @@ -3463,8 +3462,6 @@ static void mtip_pci_remove(struct pci_dev *pdev)
}
}
}
/* Set the atomic variable as 1 in case of SRSI */
atomic_set(&dd->drv_cleanup_done, true);

/* Clean up the block layer. */
mtip_block_remove(dd);
Expand Down

0 comments on commit 6ebc2ce

Please sign in to comment.