]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc/keystone: Ensure the DSPs are in reset in probe
authorAndrew F. Davis <afd@ti.com>
Tue, 13 Jun 2017 23:45:13 +0000 (18:45 -0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 26 Jun 2017 20:02:44 +0000 (13:02 -0700)
commit0ace03e46c523a8029bd59437f8cbd9b56248ff6
treedc1ed878faff73e803b2139ad6d1156f867a5872
parent83bf8664d3724c00545d53b89aa28ebb771d84ef
remoteproc/keystone: Ensure the DSPs are in reset in probe

The DSPs are expected to be in reset when the driver probes a device.
If the DSPs are out of reset in probe, the system may crash when the
firmware is being loaded. So, add a check to make sure the DSP resets
are asserted, and if not, throw a eye-catchy warning and assert the
resets specifically.

Signed-off-by: Andrew F. Davis <afd@ti.com>
[s-anna@ti.com: replace warning with a WARN]
Signed-off-by: Suman Anna <s-anna@ti.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/keystone_remoteproc.c