coresight: Disable the path only when the source is disabled
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 5 Jun 2017 20:15:02 +0000 (14:15 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2017 09:45:23 +0000 (11:45 +0200)
commitf73f20e1fcc9fcdc7557fd1c4b1b72f924478688
tree05fdc622e212f99d3f25eafed313667511861005
parenteb7bfcce69a9283db76e6d95ce9a9fcd7abc047a
coresight: Disable the path only when the source is disabled

With a coresight tracing session, the components along the path
from the source to sink are disabled after the source is disabled.
However, if the source was not actually disabled due to active
users, we should not disable the components in the path.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight.c