summaryrefslogtreecommitdiff
path: root/drivers/phy/phy-qcom-apq8064-sata.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/phy/phy-qcom-apq8064-sata.c')
-rw-r--r--drivers/phy/phy-qcom-apq8064-sata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-qcom-apq8064-sata.c b/drivers/phy/phy-qcom-apq8064-sata.c
index d7c01aa1f8d7..b3ef7d805765 100644
--- a/drivers/phy/phy-qcom-apq8064-sata.c
+++ b/drivers/phy/phy-qcom-apq8064-sata.c
@@ -91,7 +91,7 @@ static int read_poll_timeout(void __iomem *addr, u32 mask)
usleep_range(DELAY_INTERVAL_US, DELAY_INTERVAL_US + 50);
} while (!time_after(jiffies, timeout));
- return -ETIMEDOUT;
+ return (readl_relaxed(addr) & mask) ? 0 : -ETIMEDOUT;
}
static int qcom_apq8064_sata_phy_init(struct phy *generic_phy)