فهرست منبع

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>
Alexander Shishkin 7 سال پیش
والد
کامیت
c2d2c7de97
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      drivers/hwtracing/intel_th/core.c

+ 4 - 0
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_device *hub = to_intel_th_hub(thdev);
 	struct intel_th_driver *hubdrv = to_intel_th_driver(hub->dev.driver);
 	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)
 	if (!hubdrv->set_output)
 		return -ENOTSUPP;
 		return -ENOTSUPP;