]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
intel_th: Don't touch switch routing in host mode
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Thu, 1 Mar 2018 08:17:25 +0000 (10:17 +0200)
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>
Wed, 28 Mar 2018 15:47:20 +0000 (18:47 +0300)
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>
drivers/hwtracing/intel_th/core.c

index 8e4f5fd8a43e398e3fccb80abf6447482fc17950..d295b221e0bc67aa400f301fb3b9a2f03607ba45 100644 (file)
@@ -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;