intel_th: Add runtime power management handling
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Wed, 22 Jun 2016 10:48:21 +0000 (13:48 +0300)
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 1 Jul 2016 08:01:01 +0000 (11:01 +0300)
commit142dfeb20209607659ca85f15e7a3dd592a6dd20
tree45cbdde394ba1823df99bc386ac2798ad3a56cd3
parent8e0469a4f3e647059c0ef8db961140ee25246fbd
intel_th: Add runtime power management handling

Currently, an Intel TH (pci) device will be always active, because the
devices on the 'intel_th' bus don't implement runtime pm to track their
usage.

To address this, this patch adds runtime pm support to the 'intel_th'
bus and some additional bits for the hub. The 'output' type device is
in use while a capture is active; the 'source' type device (STH) relies
on its child stm class device for runtime pm tracking.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
drivers/hwtracing/intel_th/core.c
drivers/hwtracing/intel_th/gth.c