aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/trace.c
diff options
context:
space:
mode:
authorPawel Laszczak <pawell@cadence.com>2019-07-02 14:38:01 +0100
committerFelipe Balbi <felipe.balbi@linux.intel.com>2019-07-03 10:46:05 +0300
commit8bc1901ca7b07d864fca11461b3875b31f949765 (patch)
tree18f26f7b8ef9edf550182f935d6236b761cfc683 /drivers/usb/cdns3/trace.c
parentusb:gadget Simplify usb_decode_get_set_descriptor function. (diff)
downloadlinux-dev-8bc1901ca7b07d864fca11461b3875b31f949765.tar.xz
linux-dev-8bc1901ca7b07d864fca11461b3875b31f949765.zip
usb:cdns3 Add Cadence USB3 DRD Driver
This patch introduce new Cadence USBSS DRD driver to Linux kernel. The Cadence USBSS DRD Controller is a highly configurable IP Core which can be instantiated as Dual-Role Device (DRD), Peripheral Only and Host Only (XHCI)configurations. The current driver has been validated with FPGA platform. We have support for PCIe bus, which is used on FPGA prototyping. The host side of USBSS-DRD controller is compliant with XHCI specification, so it works with standard XHCI Linux driver. Signed-off-by: Pawel Laszczak <pawell@cadence.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/cdns3/trace.c')
-rw-r--r--drivers/usb/cdns3/trace.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/usb/cdns3/trace.c b/drivers/usb/cdns3/trace.c
new file mode 100644
index 000000000000..9431eb86d4ff
--- /dev/null
+++ b/drivers/usb/cdns3/trace.c
@@ -0,0 +1,23 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * USBSS device controller driver Trace Support
+ *
+ * Copyright (C) 2018 Cadence.
+ *
+ * Author: Pawel Laszczak <pawell@cadence.com>
+ */
+
+#define CREATE_TRACE_POINTS
+#include "trace.h"
+
+void cdns3_dbg(struct cdns3_device *priv_dev, const char *fmt, ...)
+{
+ struct va_format vaf;
+ va_list args;
+
+ va_start(args, fmt);
+ vaf.fmt = fmt;
+ vaf.va = &args;
+ trace_cdns3_log(priv_dev, &vaf);
+ va_end(args);
+}