]> git.baikalelectronics.ru Git - kernel.git/commit
coresight: cti: Don't disable ect device if it's not enabled
authorTingwei Zhang <tingwei@codeaurora.org>
Mon, 28 Sep 2020 16:35:07 +0000 (10:35 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Sep 2020 17:47:41 +0000 (19:47 +0200)
commit710f1bfce608dbb5209e4dcc2fcc5eedd9c9f129
tree24f77bc4c0090acb603ac03ef85c32b27b5837ef
parent4e1047642916227d712486757d80cb99d8f7d138
coresight: cti: Don't disable ect device if it's not enabled

If associated ect device is not enabled at first place, disable
routine should not be called. Add ect_enabled flag to check whether
ect device is enabled. Fix the issue in below case.  Ect device is
not available when associated coresight device enabled and the
association is established after coresight device is enabled.

Signed-off-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200928163513.70169-20-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight.c
include/linux/coresight.h