diff options
-rw-r--r-- | drivers/phy/phy-qcom-apq8064-sata.c | 2 |
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) | |||
91 | usleep_range(DELAY_INTERVAL_US, DELAY_INTERVAL_US + 50); | 91 | usleep_range(DELAY_INTERVAL_US, DELAY_INTERVAL_US + 50); |
92 | } while (!time_after(jiffies, timeout)); | 92 | } while (!time_after(jiffies, timeout)); |
93 | 93 | ||
94 | return -ETIMEDOUT; | 94 | return (readl_relaxed(addr) & mask) ? 0 : -ETIMEDOUT; |
95 | } | 95 | } |
96 | 96 | ||
97 | static int qcom_apq8064_sata_phy_init(struct phy *generic_phy) | 97 | static int qcom_apq8064_sata_phy_init(struct phy *generic_phy) |