linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [12/15] usb: dwc3: Dump LSP and BMU debug info
@ 2018-01-08 12:06 Felipe Balbi
  0 siblings, 0 replies; 3+ messages in thread
From: Felipe Balbi @ 2018-01-08 12:06 UTC (permalink / raw)
  To: Thinh Nguyen; +Cc: John Youn

Hi,

Thinh Nguyen <Thinh.Nguyen@synopsys.com> writes:
> Dump LSP and BMU debug info.
>
> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
> ---
>  drivers/usb/dwc3/core.h    | 5 +++++
>  drivers/usb/dwc3/debugfs.c | 5 +++++
>  2 files changed, 10 insertions(+)
>
> diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
> index 83a74d10fa82..21a6dcd379f1 100644
> --- a/drivers/usb/dwc3/core.h
> +++ b/drivers/usb/dwc3/core.h
> @@ -100,6 +100,11 @@
>  #define DWC3_GHWPARAMS7		0xc15c
>  #define DWC3_GDBGFIFOSPACE	0xc160
>  #define DWC3_GDBGLTSSM		0xc164
> +#define DWC3_GDBGBMU		0xc16c
> +#define DWC3_GDBGLSPMUX		0xc170
> +#define DWC3_GDBGLSP		0xc174
> +#define DWC3_GDBGEPINFO0	0xc178
> +#define DWC3_GDBGEPINFO1	0xc17c

wheren't these registers accessed with a write followed by a read? IIRC,
just writing them doesn't give us much information, no?

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [12/15] usb: dwc3: Dump LSP and BMU debug info
@ 2018-01-08 23:40 Thinh Nguyen
  0 siblings, 0 replies; 3+ messages in thread
From: Thinh Nguyen @ 2018-01-08 23:40 UTC (permalink / raw)
  To: Felipe Balbi, Thinh Nguyen, linux-usb@vger.kernel.org; +Cc: John Youn

Hi,

On 1/8/2018 4:08 AM, Felipe Balbi wrote:
> Thinh Nguyen <Thinh.Nguyen@synopsys.com> writes:
>> Dump LSP and BMU debug info.
>>
>> Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
>> ---
>>   drivers/usb/dwc3/core.h    | 5 +++++
>>   drivers/usb/dwc3/debugfs.c | 5 +++++
>>   2 files changed, 10 insertions(+)
>>
>> diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
>> index 83a74d10fa82..21a6dcd379f1 100644
>> --- a/drivers/usb/dwc3/core.h
>> +++ b/drivers/usb/dwc3/core.h
>> @@ -100,6 +100,11 @@
>>   #define DWC3_GHWPARAMS7		0xc15c
>>   #define DWC3_GDBGFIFOSPACE	0xc160
>>   #define DWC3_GDBGLTSSM		0xc164
>> +#define DWC3_GDBGBMU		0xc16c
>> +#define DWC3_GDBGLSPMUX		0xc170
>> +#define DWC3_GDBGLSP		0xc174
>> +#define DWC3_GDBGEPINFO0	0xc178
>> +#define DWC3_GDBGEPINFO1	0xc17c
> 
> wheren't these registers accessed with a write followed by a read? IIRC,
> just writing them doesn't give us much information, no?
> 

These registers are for internal use only. They hold the internal states 
that are useful for the HW engineers to debug. The databook doesn't 
specify that we need a write followed by a read to access these registers.

BR,
Thinh
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [12/15] usb: dwc3: Dump LSP and BMU debug info
@ 2018-01-05 20:15 Thinh Nguyen
  0 siblings, 0 replies; 3+ messages in thread
From: Thinh Nguyen @ 2018-01-05 20:15 UTC (permalink / raw)
  To: Felipe Balbi, Thinh Nguyen, linux-usb; +Cc: John Youn

Dump LSP and BMU debug info.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
---
 drivers/usb/dwc3/core.h    | 5 +++++
 drivers/usb/dwc3/debugfs.c | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index 83a74d10fa82..21a6dcd379f1 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -100,6 +100,11 @@
 #define DWC3_GHWPARAMS7		0xc15c
 #define DWC3_GDBGFIFOSPACE	0xc160
 #define DWC3_GDBGLTSSM		0xc164
+#define DWC3_GDBGBMU		0xc16c
+#define DWC3_GDBGLSPMUX		0xc170
+#define DWC3_GDBGLSP		0xc174
+#define DWC3_GDBGEPINFO0	0xc178
+#define DWC3_GDBGEPINFO1	0xc17c
 #define DWC3_GPRTBIMAP_HS0	0xc180
 #define DWC3_GPRTBIMAP_HS1	0xc184
 #define DWC3_GPRTBIMAP_FS0	0xc188
diff --git a/drivers/usb/dwc3/debugfs.c b/drivers/usb/dwc3/debugfs.c
index 00e65530c81e..f09072395afe 100644
--- a/drivers/usb/dwc3/debugfs.c
+++ b/drivers/usb/dwc3/debugfs.c
@@ -81,6 +81,11 @@ static const struct debugfs_reg32 dwc3_regs[] = {
 	dump_register(GHWPARAMS7),
 	dump_register(GDBGFIFOSPACE),
 	dump_register(GDBGLTSSM),
+	dump_register(GDBGBMU),
+	dump_register(GDBGLSPMUX),
+	dump_register(GDBGLSP),
+	dump_register(GDBGEPINFO0),
+	dump_register(GDBGEPINFO1),
 	dump_register(GPRTBIMAP_HS0),
 	dump_register(GPRTBIMAP_HS1),
 	dump_register(GPRTBIMAP_FS0),

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-08 23:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-08 12:06 [12/15] usb: dwc3: Dump LSP and BMU debug info Felipe Balbi
  -- strict thread matches above, loose matches on Subject: below --
2018-01-08 23:40 Thinh Nguyen
2018-01-05 20:15 Thinh Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).