]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc/davinci: simplify the reset function
authorSuman Anna <s-anna@ti.com>
Thu, 18 May 2017 22:09:00 +0000 (17:09 -0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 25 Jun 2017 21:00:00 +0000 (14:00 -0700)
commit9fe61c1686bfd01d4296f1366814ef0f6831e5a7
tree77a9467f7dac06674e50978daeb027fc575f80ee
parent3e1e529be20a406711f637f50fdd837aae0e049c
remoteproc/davinci: simplify the reset function

The reset_assert() function is used to make sure the DSP remote
processor is in a reset state regardless of its previous state.
The driver relies on davinci_clk_reset_{assert,deassert}()
functions for reset management which take in a clock parameter.
The assert_reset() performs a clk_get()/clk_put() cycle to
acquire the clock handle to use with this function. This is
totally unnecessary and the code can be simplified to use
the clock acquired during probe and directly use the reset
functions, so simplify this logic.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/da8xx_remoteproc.c