usb: dwc2: debugfs: Don't touch RX FIFO during register dump
authorStefan Wahren <stefan.wahren@i2se.com>
Fri, 4 May 2018 18:09:05 +0000 (20:09 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 May 2018 07:17:00 +0000 (10:17 +0300)
commit971b750d31079e13c18e4ac335804401cfeb189d
treed3606754a9de7285ccffeec8efb4c6d3a2cbfdd3
parentd5d5f079138254e4d641de2f36760d0d0fc9f510
usb: dwc2: debugfs: Don't touch RX FIFO during register dump

Dumping the registers via debugfs makes USB on Raspberry Pi completely
unusable. The read of register GRXSTSP ("Receive Status Read and Pop
Register") is responsible for this behaviour, because it pops the RX FIFO.
So avoid this by omitting the relevant register.

CC: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Fixes: 563cf017c443 ("usb: dwc2: debugfs: add support for complete register dump")
Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/debugfs.c