aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-08-27 13:29:58 -0400
committerFelipe Balbi <balbi@ti.com>2011-09-09 06:02:02 -0400
commit164f6e141ed214bda30fb219d41ec3254bd90886 (patch)
tree6cae6cac569d0e511e42035773d626f30d50c3fb /drivers/usb/dwc3/gadget.c
parentf198ead21bcb7b03d7bb2cba7ba0f5ad615a3862 (diff)
usb: dwc3: gadget: improve command completion debug message
the previous message had too little meaning. Make it more human readable and use the macro we already had for extracting the command completion status out of DEPCMDn register. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r--drivers/usb/dwc3/gadget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 4d232c3646c..56ccd97000a 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -169,8 +169,8 @@ int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep,
169 do { 169 do {
170 reg = dwc3_readl(dwc->regs, DWC3_DEPCMD(ep)); 170 reg = dwc3_readl(dwc->regs, DWC3_DEPCMD(ep));
171 if (!(reg & DWC3_DEPCMD_CMDACT)) { 171 if (!(reg & DWC3_DEPCMD_CMDACT)) {
172 dev_vdbg(dwc->dev, "CMD Compl Status %d DEPCMD %04x\n", 172 dev_vdbg(dwc->dev, "Command Complete --> %d\n",
173 ((reg & 0xf000) >> 12), reg); 173 DWC3_DEPCMD_STATUS(reg));
174 return 0; 174 return 0;
175 } 175 }
176 176