]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
fsi/sbefifo: Fix reset timeout
authorJoachim Fenkes <FENKES@de.ibm.com>
Fri, 24 Jul 2020 07:15:18 +0000 (16:45 +0930)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:46:12 +0000 (09:46 +0200)
commitf55846f3b5eb72a8e330ca6480d423e09fe78c2e
tree2dd07d7e8cee115f6b44c373cf9f4e2bfbec5d01
parent8d38a18ffdb5730d0e8fec299c2fe83038667108
fsi/sbefifo: Fix reset timeout

BugLink: https://bugs.launchpad.net/bugs/1938199
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/fsi/fsi-sbefifo.c