The way it was before was really meaningless.
Now it looks saner.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
if (dwc->ep0_next_event != DWC3_EP0_NRDY_DATA) {
dev_vdbg(dwc->dev, "Expected %d got %d\n",
- DEPEVT_STATUS_CONTROL_DATA,
- event->status);
+ dwc->ep0_next_event,
+ DWC3_EP0_NRDY_DATA);
dwc3_ep0_stall_and_restart(dwc);
return;
if (dwc->ep0_next_event != DWC3_EP0_NRDY_STATUS) {
dev_vdbg(dwc->dev, "Expected %d got %d\n",
- DEPEVT_STATUS_CONTROL_STATUS,
- event->status);
+ dwc->ep0_next_event,
+ DWC3_EP0_NRDY_STATUS);
dwc3_ep0_stall_and_restart(dwc);
return;