reset: ti_syscon: fix a ti_syscon_reset_status issue
authorJiancheng Xue <xuejiancheng@hisilicon.com>
Wed, 30 Nov 2016 01:03:32 +0000 (09:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Oct 2017 08:26:03 +0000 (10:26 +0200)
commitbed7533196b2844088004975279c3674c7c424c5
tree2fa9f59b9f1f2109b7ff4a381a49ba5aa05575a8
parent6798f079b0a54caf69e1bde89cf997a2ade38f2e
reset: ti_syscon: fix a ti_syscon_reset_status issue

[ Upstream commit 5987b4bf512101137fa60c5c0ccac3db51541221 ]

If STATUS_SET was not set, ti_syscon_reset_status would always return 0
no matter whether the status_bit was set or not.

Signed-off-by: Jiancheng Xue <xuejiancheng@hisilicon.com>
Fixes: cc7c2bb1493c ("reset: add TI SYSCON based reset driver")
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/reset/reset-ti-syscon.c