提交 d9c51f4c 编写于 作者: D Dan Carpenter 提交者: Kishon Vijay Abraham I

phy: brcm-sata: fix a timeout test in init

We want to timeout with try set to zero so this should be a pre-op
instead of post-op.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
上级 aea430ee
...@@ -335,7 +335,7 @@ static int brcm_nsp_sata_init(struct brcm_sata_port *port) ...@@ -335,7 +335,7 @@ static int brcm_nsp_sata_init(struct brcm_sata_port *port)
/* Wait for pll_seq_done bit */ /* Wait for pll_seq_done bit */
try = 50; try = 50;
while (try--) { while (--try) {
val = brcm_sata_phy_rd(base, BLOCK0_REG_BANK, val = brcm_sata_phy_rd(base, BLOCK0_REG_BANK,
BLOCK0_XGXSSTATUS); BLOCK0_XGXSSTATUS);
if (val & BLOCK0_XGXSSTATUS_PLL_LOCK) if (val & BLOCK0_XGXSSTATUS_PLL_LOCK)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册