diff options
author | Felipe Balbi | 2016-09-30 14:52:19 +0200 |
---|---|---|
committer | Felipe Balbi | 2016-11-03 09:38:30 +0100 |
commit | 4dd5a69e495b71491bb21c273b6d5a979e2f685b (patch) | |
tree | 4c2b52340393aebf53b4d4f13a3ccbf42430d34b /drivers/usb/dwc3/io.h | |
parent | usb: dwc3: Kconfig: allow all glues to build if COMPILE_TEST (diff) | |
download | kernel-qcow2-linux-4dd5a69e495b71491bb21c273b6d5a979e2f685b.tar.gz kernel-qcow2-linux-4dd5a69e495b71491bb21c273b6d5a979e2f685b.tar.xz kernel-qcow2-linux-4dd5a69e495b71491bb21c273b6d5a979e2f685b.zip |
usb: dwc3: trace: add a proper tracepoint for reg accessors
We want to reduce the usage of dwc3_trace() in favor
of proper tracepoints which can be enabled/disabled
by the user. Let's start with our register
accessors.
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/io.h')
-rw-r--r-- | drivers/usb/dwc3/io.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/dwc3/io.h b/drivers/usb/dwc3/io.h index a06f9a8fecc7..c69b06696824 100644 --- a/drivers/usb/dwc3/io.h +++ b/drivers/usb/dwc3/io.h @@ -40,8 +40,7 @@ static inline u32 dwc3_readl(void __iomem *base, u32 offset) * documentation, so we revert it back to the proper addresses, the * same way they are described on SNPS documentation */ - dwc3_trace(trace_dwc3_readl, "addr %p value %08x", - base - DWC3_GLOBALS_REGS_START + offset, value); + trace_dwc3_readl(base - DWC3_GLOBALS_REGS_START, offset, value); return value; } @@ -60,8 +59,7 @@ static inline void dwc3_writel(void __iomem *base, u32 offset, u32 value) * documentation, so we revert it back to the proper addresses, the * same way they are described on SNPS documentation */ - dwc3_trace(trace_dwc3_writel, "addr %p value %08x", - base - DWC3_GLOBALS_REGS_START + offset, value); + trace_dwc3_writel(base - DWC3_GLOBALS_REGS_START, offset, value); } #endif /* __DRIVERS_USB_DWC3_IO_H */ |