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

Commit a8a259f5 authored by infi he's avatar infi he Committed by hecaiqiang
Browse files

Optimize the enumeration logs

Change-Id: Id011c85bef009c49fbf74e1dbb2c7b882f7bb2db
parent 743dd631
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -59,8 +59,6 @@ void dwc3_dbg_print(struct dwc3 *dwc, u8 ep_num, const char *name,

	ipc_log_string(dwc->dwc_ipc_log_ctxt, "%02X %-25.25s %4i ?\t%s",
			ep_num, name, status, extra);
	pr_info("%02X %-25.25s %4i ?\t%s",
			ep_num, name, status, extra);
}

/**
@@ -78,8 +76,6 @@ void dwc3_dbg_done(struct dwc3 *dwc, u8 ep_num,

	ipc_log_string(dwc->dwc_ipc_log_ctxt, "%02X %-25.25s %4i ?\t%d",
			ep_num, "DONE", status, count);
	pr_info("%02X %-25.25s %4i ?\t%d",
			ep_num, "DONE", status, count);
}

/**
@@ -113,9 +109,6 @@ void dwc3_dbg_queue(struct dwc3 *dwc, u8 ep_num,
		ipc_log_string(dwc->dwc_ipc_log_ctxt,
			"%02X %-25.25s %4i ?\t%d %d", ep_num, "QUEUE", status,
			!req->no_interrupt, req->length);
		pr_info("%02X %-25.25s %4i ?\t%d %d",
			ep_num, "QUEUE", status,
			!req->no_interrupt, req->length);
	}
}

@@ -136,10 +129,6 @@ void dwc3_dbg_setup(struct dwc3 *dwc, u8 ep_num,
			ep_num, "SETUP", req->bRequestType,
			req->bRequest, le16_to_cpu(req->wValue),
			le16_to_cpu(req->wIndex), le16_to_cpu(req->wLength));
		pr_info("%02X %-25.25s ?\t%02X %02X %04X %04X %d",
			ep_num, "SETUP", req->bRequestType,
			req->bRequest, le16_to_cpu(req->wValue),
			le16_to_cpu(req->wIndex), le16_to_cpu(req->wLength));
	}
}

@@ -154,5 +143,4 @@ void dwc3_dbg_print_reg(struct dwc3 *dwc, const char *name, int reg)
		return;

	ipc_log_string(dwc->dwc_ipc_log_ctxt, "%s = 0x%08x", name, reg);
	pr_info("%s = 0x%08x", name, reg);
}