projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aea430e
)
phy: brcm-sata: fix a timeout test in init
author
Dan Carpenter
<dan.carpenter@oracle.com>
Mon, 19 Jun 2017 10:56:05 +0000
(13:56 +0300)
committer
Kishon Vijay Abraham I
<kishon@ti.com>
Tue, 22 Aug 2017 04:41:27 +0000
(10:11 +0530)
We want to timeout with try set to zero so this should be a pre-op
instead of post-op.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/broadcom/phy-brcm-sata.c
patch
|
blob
|
history
diff --git
a/drivers/phy/broadcom/phy-brcm-sata.c
b/drivers/phy/broadcom/phy-brcm-sata.c
index
e6544c8
..
9d7f74f
100644
(file)
--- a/
drivers/phy/broadcom/phy-brcm-sata.c
+++ b/
drivers/phy/broadcom/phy-brcm-sata.c
@@
-335,7
+335,7
@@
static int brcm_nsp_sata_init(struct brcm_sata_port *port)
/* Wait for pll_seq_done bit */
try = 50;
- while (
try--
) {
+ while (
--try
) {
val = brcm_sata_phy_rd(base, BLOCK0_REG_BANK,
BLOCK0_XGXSSTATUS);
if (val & BLOCK0_XGXSSTATUS_PLL_LOCK)