Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

reset: brcmstb-rescal: fix incorrect polarity of status bit

The readl_poll_timeout() should complete when the status bit
is a 1, not 0.

Fixes: 4cf176e52397 ("reset: Add Broadcom STB RESCAL reset controller")
Signed-off-by: Jim Quinlan <jim2101024@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210914221122.62315-1-f.fainelli@gmail.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Jim Quinlan and committed by
Philipp Zabel
f33eb7f2 6880fa6c

+1 -1
+1 -1
drivers/reset/reset-brcmstb-rescal.c
··· 38 38 } 39 39 40 40 ret = readl_poll_timeout(base + BRCM_RESCAL_STATUS, reg, 41 - !(reg & BRCM_RESCAL_STATUS_BIT), 100, 1000); 41 + (reg & BRCM_RESCAL_STATUS_BIT), 100, 1000); 42 42 if (ret) { 43 43 dev_err(data->dev, "time out on SATA/PCIe rescal\n"); 44 44 return ret;