2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 14:43:58 +08:00

staging: dwc2: reduce noisy debug messages

Change the non-aligned buffer debug messages to dev_vdbg(). Also
remove some duplicated debug output when the driver is loaded.

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Paul Zimmerman 2013-07-13 14:53:52 -07:00 committed by Greg Kroah-Hartman
parent b2d6cb5518
commit 0cf31f8629
2 changed files with 7 additions and 9 deletions

View File

@ -2950,8 +2950,6 @@ int dwc2_hcd_init(struct dwc2_hsotg *hsotg, int irq,
if (retval < 0) if (retval < 0)
goto error3; goto error3;
dwc2_dump_global_registers(hsotg);
dwc2_dump_host_registers(hsotg);
dwc2_hcd_dump_state(hsotg); dwc2_hcd_dump_state(hsotg);
dwc2_enable_global_interrupts(hsotg); dwc2_enable_global_interrupts(hsotg);

View File

@ -467,7 +467,7 @@ static int dwc2_update_urb_state(struct dwc2_hsotg *hsotg,
/* Non DWORD-aligned buffer case handling */ /* Non DWORD-aligned buffer case handling */
if (chan->align_buf && xfer_length && chan->ep_is_in) { if (chan->align_buf && xfer_length && chan->ep_is_in) {
dev_dbg(hsotg->dev, "%s(): non-aligned buffer\n", __func__); dev_vdbg(hsotg->dev, "%s(): non-aligned buffer\n", __func__);
dma_sync_single_for_cpu(hsotg->dev, urb->dma, urb->length, dma_sync_single_for_cpu(hsotg->dev, urb->dma, urb->length,
DMA_FROM_DEVICE); DMA_FROM_DEVICE);
memcpy(urb->buf + urb->actual_length, chan->qh->dw_align_buf, memcpy(urb->buf + urb->actual_length, chan->qh->dw_align_buf,
@ -562,7 +562,7 @@ static enum dwc2_halt_status dwc2_update_isoc_urb_state(
/* Non DWORD-aligned buffer case handling */ /* Non DWORD-aligned buffer case handling */
if (chan->align_buf && frame_desc->actual_length && if (chan->align_buf && frame_desc->actual_length &&
chan->ep_is_in) { chan->ep_is_in) {
dev_dbg(hsotg->dev, "%s(): non-aligned buffer\n", dev_vdbg(hsotg->dev, "%s(): non-aligned buffer\n",
__func__); __func__);
dma_sync_single_for_cpu(hsotg->dev, urb->dma, dma_sync_single_for_cpu(hsotg->dev, urb->dma,
urb->length, DMA_FROM_DEVICE); urb->length, DMA_FROM_DEVICE);
@ -596,7 +596,7 @@ static enum dwc2_halt_status dwc2_update_isoc_urb_state(
/* Non DWORD-aligned buffer case handling */ /* Non DWORD-aligned buffer case handling */
if (chan->align_buf && frame_desc->actual_length && if (chan->align_buf && frame_desc->actual_length &&
chan->ep_is_in) { chan->ep_is_in) {
dev_dbg(hsotg->dev, "%s(): non-aligned buffer\n", dev_vdbg(hsotg->dev, "%s(): non-aligned buffer\n",
__func__); __func__);
dma_sync_single_for_cpu(hsotg->dev, urb->dma, dma_sync_single_for_cpu(hsotg->dev, urb->dma,
urb->length, DMA_FROM_DEVICE); urb->length, DMA_FROM_DEVICE);
@ -935,7 +935,7 @@ static int dwc2_xfercomp_isoc_split_in(struct dwc2_hsotg *hsotg,
frame_desc->actual_length += len; frame_desc->actual_length += len;
if (chan->align_buf && len) { if (chan->align_buf && len) {
dev_dbg(hsotg->dev, "%s(): non-aligned buffer\n", __func__); dev_vdbg(hsotg->dev, "%s(): non-aligned buffer\n", __func__);
dma_sync_single_for_cpu(hsotg->dev, qtd->urb->dma, dma_sync_single_for_cpu(hsotg->dev, qtd->urb->dma,
qtd->urb->length, DMA_FROM_DEVICE); qtd->urb->length, DMA_FROM_DEVICE);
memcpy(qtd->urb->buf + frame_desc->offset + memcpy(qtd->urb->buf + frame_desc->offset +
@ -1164,7 +1164,7 @@ static void dwc2_update_urb_state_abn(struct dwc2_hsotg *hsotg,
/* Non DWORD-aligned buffer case handling */ /* Non DWORD-aligned buffer case handling */
if (chan->align_buf && xfer_length && chan->ep_is_in) { if (chan->align_buf && xfer_length && chan->ep_is_in) {
dev_dbg(hsotg->dev, "%s(): non-aligned buffer\n", __func__); dev_vdbg(hsotg->dev, "%s(): non-aligned buffer\n", __func__);
dma_sync_single_for_cpu(hsotg->dev, urb->dma, urb->length, dma_sync_single_for_cpu(hsotg->dev, urb->dma, urb->length,
DMA_FROM_DEVICE); DMA_FROM_DEVICE);
memcpy(urb->buf + urb->actual_length, chan->qh->dw_align_buf, memcpy(urb->buf + urb->actual_length, chan->qh->dw_align_buf,