Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42153
b: refs/heads/master
c: 599b720
h: refs/heads/master
i:
  42151: ae59015
v: v3
  • Loading branch information
Mikael Pettersson authored and Jeff Garzik committed Dec 3, 2006
1 parent 6f76e87 commit d07dd58
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 800b399669ad495ad4361d134df87401ae36f44f
refs/heads/master: 599b7202c5bf2c7345ea34007379ba241c94a491
11 changes: 11 additions & 0 deletions trunk/drivers/ata/sata_promise.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ static struct pci_driver pdc_ata_pci_driver = {
static int pdc_port_start(struct ata_port *ap)
{
struct device *dev = ap->host->dev;
struct pdc_host_priv *hp = ap->host->private_data;
struct pdc_port_priv *pp;
int rc;

Expand All @@ -301,6 +302,16 @@ static int pdc_port_start(struct ata_port *ap)

ap->private_data = pp;

/* fix up PHYMODE4 align timing */
if ((hp->flags & PDC_FLAG_GEN_II) && sata_scr_valid(ap)) {
void __iomem *mmio = (void __iomem *) ap->ioaddr.scr_addr;
unsigned int tmp;

tmp = readl(mmio + 0x014);
tmp = (tmp & ~3) | 1; /* set bits 1:0 = 0:1 */
writel(tmp, mmio + 0x014);
}

return 0;

err_out_kfree:
Expand Down

0 comments on commit d07dd58

Please sign in to comment.