[PATCH linux dev-5.3 2/4] fsi: aspeed: Give read longer before timeout

Joel Stanley joel at jms.id.au
Wed Oct 23 17:18:46 AEDT 2019


Accessing some devices under the cfam would timeout (-ETIMEOUT/110).
This shouldn't happen in normal operation, so extend the timeout to be
longer.

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 60d302871db3..18f6012f19a8 100644
--- a/drivers/fsi/fsi-master-aspeed.c
+++ b/drivers/fsi/fsi-master-aspeed.c
@@ -220,7 +220,7 @@ static int opb_read(void __iomem *base, uint32_t addr, size_t size, u32 *out)
 
 	ret = readl_poll_timeout(base + OPB_IRQ_STATUS, reg,
 			   (reg & OPB0_XFER_ACK_EN) != 0,
-			   0, 100);
+			   0, 10000);
 
 	status = readl(base + OPB0_STATUS);
 
-- 
2.23.0



More information about the openbmc mailing list