usb: dwc3: debugfs: Print/set link state for peripheral mode
authorThinh Nguyen <thinh.nguyen@synopsys.com>
Thu, 8 Nov 2018 01:56:23 +0000 (17:56 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 26 Nov 2018 07:06:31 +0000 (09:06 +0200)
commitd102444cac156425e1f154089eb4400ddb581629
tree81ad792441a2cda803e68a2446c84e525323ced8
parent0d36dede457873404becd7c9cb9d0f2bcfd0dcd9
usb: dwc3: debugfs: Print/set link state for peripheral mode

Current implementation only prints/sets the link state for peripheral
mode only. Check and prevent printing bogus link state if the current
mode of operation is not peripheral.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/debugfs.c