[PATCH AUTOSEL for 4.9 021/293] coresight: Fix reference count for software sources

2018-04-08 Thread Sasha Levin
From: Suzuki K Poulose [ Upstream commit 022aa1a81b778789ee7cf3124595854276a0330d ] For software sources (i.e STM), there could be multiple agents generating the trace data, unlike the ETMs. So we need to properly do the accounting for the active number of users to

[PATCH AUTOSEL for 4.9 021/293] coresight: Fix reference count for software sources

2018-04-08 Thread Sasha Levin
From: Suzuki K Poulose [ Upstream commit 022aa1a81b778789ee7cf3124595854276a0330d ] For software sources (i.e STM), there could be multiple agents generating the trace data, unlike the ETMs. So we need to properly do the accounting for the active number of users to disable the device when the