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)
commit14ea4db18c069816e7ff0441a2f39a12d2feb11c
treee58606c8abf3bcaf9048c14ffa0fd4aad83ae987
parent685d84a7862eb0ca80e47f4179a7f0774462e539
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