]> git.baikalelectronics.ru Git - kernel.git/commit
coresight: replicator: Reset replicator if context is lost
authorSai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Thu, 16 Jul 2020 17:57:34 +0000 (11:57 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2020 13:48:38 +0000 (15:48 +0200)
commitb826994aadc95edd48da019c1a16e45947da0cb8
tree57cd25d60b3b57ada23f9fc6dbfc54f006f0b03a
parentc035dff6749aa01aae6b685d2e59524c3743f803
coresight: replicator: Reset replicator if context is lost

On some QCOM SoCs, replicators in Always-On domain loses its
context as soon as the clock is disabled. Currently as a part
of pm_runtime workqueue, clock is disabled after the replicator
is initialized by amba_pm_runtime_suspend assuming that context
is not lost which is not true for replicators with such
limitations. So add a new property "qcom,replicator-loses-context"
to identify such replicators and reset them.

Suggested-by: Mike Leach <mike.leach@linaro.org>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200716175746.3338735-6-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-replicator.c