OSDN Git Service

intel_th: gth: Handle host mode correctly
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Mon, 19 Sep 2016 14:27:45 +0000 (17:27 +0300)
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 18 Nov 2016 15:11:35 +0000 (17:11 +0200)
commitd4f5f545da12d876f5c49cef40a4a2922c75dd1e
tree6d9f57777c5f73f3735b896ea1ec0717f49950f6
parentc49a75910c5ea9bbeb60a86350f232f6fcb13cc2
intel_th: gth: Handle host mode correctly

When detecting host debugger mode either though a module option or via
the scratchpad register, do not export any configuration or capture
related attributes to userspace and refuse attempts by the output drivers
to configure output ports.

This way, GTH can still act as a hub and ensure that the other components
that rely on its presence continue to function properly, namely the
source devices.

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