linux-stable/drivers/fsi
Joachim Fenkes 540c40c6bb fsi/sbefifo: Fix reset timeout
[ Upstream commit 9ab1428dfe ]

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: 9f4a8a2d7f ("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>
2021-07-14 16:53:42 +02:00
..
cf-fsi-fw.h fsi: cf-fsi-fw: Use the correct style for SPDX License Identifier 2019-06-19 19:35:51 +02:00
fsi-core.c fsi: core: Fix return of error values on failures 2021-07-14 16:53:41 +02:00
fsi-master-ast-cf.c fsi: master-ast-cf: Rename dump_trace() to avoid name collision 2018-07-26 14:49:50 +10:00
fsi-master-gpio.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
fsi-master-hub.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
fsi-master.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
fsi-occ.c fsi: occ: Don't accept response from un-initialized OCC 2021-07-14 16:53:41 +02:00
fsi-sbefifo.c fsi/sbefifo: Fix reset timeout 2021-07-14 16:53:42 +02:00
fsi-scom.c fsi: scom: Reset the FSI2PIB engine for any error 2021-07-14 16:53:41 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00