Skip to content

Commit f33eb7f

Browse files
jim2101024pH5
authored andcommitted
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: 4cf176e ("reset: Add Broadcom STB RESCAL reset controller") Signed-off-by: Jim Quinlan <[email protected]> Signed-off-by: Florian Fainelli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Philipp Zabel <[email protected]>
1 parent 6880fa6 commit f33eb7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/reset/reset-brcmstb-rescal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static int brcm_rescal_reset_set(struct reset_controller_dev *rcdev,
3838
}
3939

4040
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);
4242
if (ret) {
4343
dev_err(data->dev, "time out on SATA/PCIe rescal\n");
4444
return ret;

0 commit comments

Comments
 (0)