summaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/intel_th
diff options
context:
space:
mode:
authorAlexander Shishkin2018-03-01 09:17:25 +0100
committerAlexander Shishkin2018-03-28 17:47:20 +0200
commitc2d2c7de972d7a08533bde622c36ff6feb112907 (patch)
tree0d5254091622b79a8cf1a99dc19d19ba2113ff36 /drivers/hwtracing/intel_th
parentintel_th: Use correct method of finding hub (diff)
downloadkernel-qcow2-linux-c2d2c7de972d7a08533bde622c36ff6feb112907.tar.gz
kernel-qcow2-linux-c2d2c7de972d7a08533bde622c36ff6feb112907.tar.xz
kernel-qcow2-linux-c2d2c7de972d7a08533bde622c36ff6feb112907.zip
intel_th: Don't touch switch routing in host mode
When the Trace Hub is operating in Host Debugger mode, it is up to the debugger to configure master routing even for the software sources. Do not do this in the driver in this case. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Diffstat (limited to 'drivers/hwtracing/intel_th')
-rw-r--r--drivers/hwtracing/intel_th/core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/hwtracing/intel_th/core.c b/drivers/hwtracing/intel_th/core.c
index 8e4f5fd8a43e..d295b221e0bc 100644
--- a/drivers/hwtracing/intel_th/core.c
+++ b/drivers/hwtracing/intel_th/core.c
@@ -930,6 +930,10 @@ int intel_th_set_output(struct intel_th_device *thdev,
struct intel_th_device *hub = to_intel_th_hub(thdev);
struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver);
+ /* In host mode, this is up to the external debugger, do nothing. */
+ if (hub->host_mode)
+ return 0;
+
if (!hubdrv->set_output)
return -ENOTSUPP;