Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+4
+4
drivers/hwtracing/intel_th/core.c
··· 930 930 struct intel_th_device *hub = to_intel_th_hub(thdev); 931 931 struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver); 932 932 933 + /* In host mode, this is up to the external debugger, do nothing. */ 934 + if (hub->host_mode) 935 + return 0; 936 + 933 937 if (!hubdrv->set_output) 934 938 return -ENOTSUPP; 935 939