reset: brcmstb-rescal: fix incorrect polarity of status bit
authorJim Quinlan <jim2101024@gmail.com>
Tue, 14 Sep 2021 22:11:21 +0000 (15:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Nov 2021 18:48:22 +0000 (19:48 +0100)
commite51371bd687e7ff4a2f5f53d97d4388500fb27e1
tree56c7af49ed880bc75d2cfe6ff68d1b79cab47d2c
parent2cf7d935d6ba3fdae254ad6585fe74464de270f5
reset: brcmstb-rescal: fix incorrect polarity of status bit

commit f33eb7f29c16ba78db3221ee02346fd832274cdd upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/reset/reset-brcmstb-rescal.c