]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite95460cef57b1ba1d85ef66b4326a9f4300bd24f
tree6d9f57777c5f73f3735b896ea1ec0717f49950f6
parentfb4504c03c016e53c131af05bd9d0a1d2b9a5bae
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