]> git.baikalelectronics.ru Git - kernel.git/commit
coresight: etmv4: Counter values not saved on disable
authorMike Leach <mike.leach@linaro.org>
Thu, 16 Jul 2020 17:57:39 +0000 (11:57 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2020 13:48:39 +0000 (15:48 +0200)
commit3cc4bd3e1c03396d7929763d418255a06fdf503c
tree45903efb73864f0419f14c6eb47dfc71b1d2a4dd
parenta5a57280da778b7544ca2459f0e01e87bd8cc748
coresight: etmv4: Counter values not saved on disable

The counter value registers change during operation, however this change
is not reflected in the values seen by the user in sysfs.

This fixes the issue by reading back the values on disable.

Signed-off-by: Mike Leach <mike.leach@linaro.org>
Fixes: 856561a8d1f29 ("coresight-etm4x: Adding CoreSight ETM4x driver")
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200716175746.3338735-11-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm4x.c