[PATCH linux dev-5.3 1/7] fsi: aspeed: busy loop in the write case

Joel Stanley joel at jms.id.au
Fri Oct 25 12:03:45 AEDT 2019


We busy loop in the read case, make the write case the same. Note that
this may cause issues when doing a break, which takes a long time.

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

diff --git a/drivers/fsi/fsi-master-aspeed.c b/drivers/fsi/fsi-master-aspeed.c
index 3524b3dfe549..59537cab4f68 100644
--- a/drivers/fsi/fsi-master-aspeed.c
+++ b/drivers/fsi/fsi-master-aspeed.c
@@ -204,7 +204,7 @@ static u32 opb_write(void __iomem *base, uint32_t addr, uint32_t val,
 
 	ret = readl_poll_timeout(base + OPB_IRQ_STATUS, reg,
 				(reg & OPB0_XFER_ACK_EN) != 0,
-				1, 10000);
+				0, 10000);
 
 	status = readl(base + OPB0_STATUS);
 
-- 
2.23.0



More information about the openbmc mailing list