usb: dwc3: debugfs: Dump internal LSP and ep registers
authorThinh Nguyen <thinh.nguyen@synopsys.com>
Thu, 8 Nov 2018 01:55:13 +0000 (17:55 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 26 Nov 2018 07:06:31 +0000 (09:06 +0200)
commit62ba09d6bb6330d8a70e40e23891d8764663d469
tree1a4ca0d85190f6cf118ab2e7b0615057ccf44034
parent0f874f79dc81aec0229babebd6ef04e591a548d2
usb: dwc3: debugfs: Dump internal LSP and ep registers

To dump internal LSP and endpoint state debug registers, we must write
to GDBGLSPMUX register. This patch correctly dump LSP and endpoint
states from the debug registers.

If the controller is in device mode, all LSP and endpoint state
registers will be dumped via the debugfs attribute "lsp_dump". In host
mode, the user has to write the LSP number to "lsp_dump" to dump a
specific LSP selection.

Fixes: 80b776340c78 ("usb: dwc3: Dump LSP and BMU debug info")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/debugfs.c