projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sata: ahsata: Fix wrong operand for checking SERR DIAG_X
[oweals/u-boot.git]
/
drivers
/
ata
/
dwc_ahsata.c
diff --git
a/drivers/ata/dwc_ahsata.c
b/drivers/ata/dwc_ahsata.c
index a77521479280c1534ca0fc667b05ba69f714c63d..4b37a023380c571d4c1ba28d1d668f6a1905093c 100644
(file)
--- a/
drivers/ata/dwc_ahsata.c
+++ b/
drivers/ata/dwc_ahsata.c
@@
-223,7
+223,7
@@
static int ahci_host_init(struct ahci_uc_priv *uc_priv)
/* Wait for COMINIT bit 26 (DIAG_X) in SERR */
timeout = 1000;
- while (!(readl(&port_mmio->serr)
|
SATA_PORT_SERR_DIAG_X)
+ while (!(readl(&port_mmio->serr)
&
SATA_PORT_SERR_DIAG_X)
&& --timeout)
;
if (timeout <= 0) {