]> git.baikalelectronics.ru Git - kernel.git/commit
coresight: etm4x: Fix number of resources check for ETM 4.3 and above
authorMike Leach <mike.leach@linaro.org>
Wed, 16 Sep 2020 19:17:37 +0000 (13:17 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2020 16:46:05 +0000 (18:46 +0200)
commit603c885af00e2db31b1656271f629cc133fd9333
treee58606c8abf3bcaf9048c14ffa0fd4aad83ae987
parente735503ec5252b10f3c2320a7d9430c211727b4a
coresight: etm4x: Fix number of resources check for ETM 4.3 and above

The initialisation code checks TRCIDR4 to determine the number of resource
selectors available on the system. Since ETM v 4.3, the value 0 has a
different meaning. This patch takes into account this change.

Signed-off-by: Mike Leach <mike.leach@linaro.org>
[Removed '.' in patch title, added stable]
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200916191737.4001561-17-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm4x.c
drivers/hwtracing/coresight/coresight-etm4x.h