fsi/sbefifo: Fix reset timeout
authorJoachim Fenkes <FENKES@de.ibm.com>
Fri, 24 Jul 2020 07:15:18 +0000 (16:45 +0930)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:41 +0000 (16:56 +0200)
commite5a3a3108f0668728cd43023230c39cd700fa320
treee9592737ab3cad77e49d47354bcd6585389a3b68
parent4a95eb0c800eb71720b4186bec56941208c750d1
fsi/sbefifo: Fix reset timeout

[ Upstream commit 9ab1428dfe2c66b51e0b41337cd0164da0ab6080 ]

On BMCs with lower timer resolution than 1ms, msleep(1) will take
way longer than 1ms, so looping 10k times won't wait for 10s but
significantly longer.

Fix this by using jiffies like the rest of the code.

Fixes: 9f4a8a2d7f9d ("fsi/sbefifo: Add driver for the SBE FIFO")
Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Link: https://lore.kernel.org/r/20200724071518.430515-3-joel@jms.id.au
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/fsi/fsi-sbefifo.c