Coresight: ETMv4: Prevent TRCRSCTLR0&1 from being accessed
authorChunyan Zhang <zhang.chunyan@linaro.org>
Wed, 7 Oct 2015 15:26:38 +0000 (09:26 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Oct 2015 16:54:09 +0000 (17:54 +0100)
commit497b59565b25d6dd2441bc483f3811ee27a0c7b0
tree2aa5156d0f75f9bac8a6603c519fd7087f288a6c
parentc39b7eef7d92f5ffef1abf04227a62fa2a6a62b2
Coresight: ETMv4: Prevent TRCRSCTLR0&1 from being accessed

1. TRCRSCTLRn - Resource Selection Control Registers n=0~1 are reserved,
   we shouldn't access them.
2. The max number of 'n' here is defined in TRCIDR4.NUMRSPAIR whoes value
   indicates the number of resource selection *pairs*, and 0 indicates
   one resource selection pair, 1 indicates two pairs, and so on ...

So, the total number of resource selection control registers which we can
access is (TRCIDR4.NUMRSPAIR * 2)

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm4x.c