Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 164f6e14 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

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: default avatarFelipe Balbi <balbi@ti.com>
parent f198ead2
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -169,8 +169,8 @@ int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep,
	do {
	do {
		reg = dwc3_readl(dwc->regs, DWC3_DEPCMD(ep));
		reg = dwc3_readl(dwc->regs, DWC3_DEPCMD(ep));
		if (!(reg & DWC3_DEPCMD_CMDACT)) {
		if (!(reg & DWC3_DEPCMD_CMDACT)) {
			dev_vdbg(dwc->dev, "CMD Compl Status %d DEPCMD %04x\n",
			dev_vdbg(dwc->dev, "Command Complete --> %d\n",
					((reg & 0xf000) >> 12), reg);
					DWC3_DEPCMD_STATUS(reg));
			return 0;
			return 0;
		}
		}