Skip to content
Commit 2fd71042 authored by Julien Panis's avatar Julien Panis Committed by Xulin Sun
Browse files

bus: ti-sysc: Use fsleep() instead of usleep_range() in sysc_reset()

commit 3c763d86e601ebbaeaa632b802c253a7332cf997 from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git



The am335x-evm started producing boot errors because of subtle timing
changes:

Unhandled fault: external abort on non-linefetch (0x1008) at 0xf03c1010
...
sysc_reset from sysc_probe+0xf60/0x1514
sysc_probe from platform_probe+0x5c/0xbc
...

The fix consists in using the appropriate sleep function in sysc reset.
For flexible sleeping, fsleep is recommended. Here, sysc delay parameter
can take any value in [0 - 255] us range. As a result, fsleep() should
be used, calling udelay() for a sysc delay lower than 10 us.

Signed-off-by: default avatarJulien Panis <jpanis@baylibre.com>
Fixes: e709ed70 ("bus: ti-sysc: Fix missing reset delay handling")
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: default avatarXulin Sun <xulin.sun@windriver.com>
parent 51086d6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment