096-01-usb-dwc3-core-purge-dev_dbg-calls.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 1407bf13e3bf5f1168484c3e68b6ef9d8cf2bc72 Mon Sep 17 00:00:00 2001
  2. From: Felipe Balbi <balbi@ti.com>
  3. Date: Mon, 16 Nov 2015 16:06:37 -0600
  4. Subject: usb: dwc3: core: purge dev_dbg() calls
  5. The last few dev_dbg() messages are converted to
  6. tracepoints and we can finally ignore dev_dbg()
  7. messages during debug sessions.
  8. Signed-off-by: Felipe Balbi <balbi@ti.com>
  9. ---
  10. drivers/usb/dwc3/core.c | 8 +++++---
  11. 1 file changed, 5 insertions(+), 3 deletions(-)
  12. --- a/drivers/usb/dwc3/core.c
  13. +++ b/drivers/usb/dwc3/core.c
  14. @@ -272,7 +272,8 @@ static int dwc3_event_buffers_setup(stru
  15. for (n = 0; n < dwc->num_event_buffers; n++) {
  16. evt = dwc->ev_buffs[n];
  17. - dev_dbg(dwc->dev, "Event buf %p dma %08llx length %d\n",
  18. + dwc3_trace(trace_dwc3_core,
  19. + "Event buf %p dma %08llx length %d\n",
  20. evt->buf, (unsigned long long) evt->dma,
  21. evt->length);
  22. @@ -608,12 +609,13 @@ static int dwc3_core_init(struct dwc3 *d
  23. reg |= DWC3_GCTL_GBLHIBERNATIONEN;
  24. break;
  25. default:
  26. - dev_dbg(dwc->dev, "No power optimization available\n");
  27. + dwc3_trace(trace_dwc3_core, "No power optimization available\n");
  28. }
  29. /* check if current dwc3 is on simulation board */
  30. if (dwc->hwparams.hwparams6 & DWC3_GHWPARAMS6_EN_FPGA) {
  31. - dev_dbg(dwc->dev, "it is on FPGA board\n");
  32. + dwc3_trace(trace_dwc3_core,
  33. + "running on FPGA platform\n");
  34. dwc->is_fpga = true;
  35. }