projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'tracing-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
uwb
/
whci.c
diff --git
a/drivers/uwb/whci.c
b/drivers/uwb/whci.c
index e626467f95e35a75852cb3c00c32ce8ce0ed7a75..1f8964ed98825914d9b68ebde4a1345dac33a18e 100644
(file)
--- a/
drivers/uwb/whci.c
+++ b/
drivers/uwb/whci.c
@@
-67,11
+67,11
@@
int whci_wait_for(struct device *dev, u32 __iomem *reg, u32 mask, u32 result,
val = le_readl(reg);
if ((val & mask) == result)
break;
- msleep(10);
if (t >= max_ms) {
- dev_err(dev, "
timed out waiting for %s
", tag);
+ dev_err(dev, "
%s timed out\n
", tag);
return -ETIMEDOUT;
}
+ msleep(10);
t += 10;
}
return 0;