Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97529
b: refs/heads/master
c: 8c30a8b
h: refs/heads/master
i:
  97527: 65f1b29
v: v3
  • Loading branch information
Mark Lord authored and Jeff Garzik committed May 30, 2008
1 parent 4438974 commit 312233f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 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: 1f39847255a02c69190ae30c33b8ccf4c10840df
refs/heads/master: 8c30a8b9b574cf6c51e207464b852a6f559da153
24 changes: 12 additions & 12 deletions trunk/drivers/ata/sata_mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2546,7 +2546,7 @@ static void mv6_phy_errata(struct mv_host_priv *hpriv, void __iomem *mmio,
hp_flags & (MV_HP_ERRATA_60X1B2 | MV_HP_ERRATA_60X1C0);
int fix_phy_mode4 =
hp_flags & (MV_HP_ERRATA_60X1B2 | MV_HP_ERRATA_60X1C0);
u32 m2, tmp;
u32 m2, m3;

if (fix_phy_mode2) {
m2 = readl(port_mmio + PHY_MODE2);
Expand All @@ -2563,27 +2563,27 @@ static void mv6_phy_errata(struct mv_host_priv *hpriv, void __iomem *mmio,
udelay(200);
}

/* who knows what this magic does */
tmp = readl(port_mmio + PHY_MODE3);
tmp &= ~0x7F800000;
tmp |= 0x2A800000;
writel(tmp, port_mmio + PHY_MODE3);
/*
* Gen-II/IIe PHY_MODE3 errata RM#2:
* Achieves better receiver noise performance than the h/w default:
*/
m3 = readl(port_mmio + PHY_MODE3);
m3 = (m3 & 0x1f) | (0x5555601 << 5);
writel(m3, port_mmio + PHY_MODE3);

if (fix_phy_mode4) {
u32 m4;

m4 = readl(port_mmio + PHY_MODE4);

if (hp_flags & MV_HP_ERRATA_60X1B2)
tmp = readl(port_mmio + PHY_MODE3);

/* workaround for errata FEr SATA#10 (part 1) */
m4 = (m4 & ~(1 << 1)) | (1 << 0);

writel(m4, port_mmio + PHY_MODE4);
/* enforce bit restrictions on GenIIe devices */
if (IS_GEN_IIE(hpriv))
m4 = (m4 & ~0x5DE3FFFC) | (1 << 2);

if (hp_flags & MV_HP_ERRATA_60X1B2)
writel(tmp, port_mmio + PHY_MODE3);
writel(m4, port_mmio + PHY_MODE4);
}

/* Revert values of pre-emphasis and signal amps to the saved ones */
Expand Down

0 comments on commit 312233f

Please sign in to comment.