[PATCH linux dev-5.3 v2 8/8] fsi: aspeed: Use defines for port reset

Joel Stanley joel at jms.id.au
Thu Oct 31 16:36:25 AEDT 2019


Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 drivers/fsi/fsi-master-aspeed.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/fsi/fsi-master-aspeed.c b/drivers/fsi/fsi-master-aspeed.c
index 686380414fba..595350800406 100644
--- a/drivers/fsi/fsi-master-aspeed.c
+++ b/drivers/fsi/fsi-master-aspeed.c
@@ -256,8 +256,8 @@ static int check_errors(struct fsi_master_aspeed *aspeed, int err)
 		/* Check MAEB (0x70) ? */
 
 		/* Then clear errors in master */
-		ret = opb_writel(aspeed, ctrl_base + 0xd0,
-				cpu_to_be32(0x20000000));
+		ret = opb_writel(aspeed, ctrl_base + FSI_MRESP0,
+				cpu_to_be32(FSI_MRESP_RST_ALL_MASTER));
 		if (ret) {
 			/* TODO: log? return different code? */
 			return ret;
-- 
2.24.0.rc1



More information about the openbmc mailing list