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

Commit 795fc746 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: dwc3: debugfs: Add missing in_lpm check"

parents 07c1ed1e b4524a87
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -605,6 +605,11 @@ static int dwc3_tx_request_queue_show(struct seq_file *s, void *unused)
	unsigned long		flags;
	u32			val;

	if (atomic_read(&dwc->in_lpm)) {
		seq_puts(s, "USB device is powered off\n");
		return 0;
	}

	spin_lock_irqsave(&dwc->lock, flags);
	val = dwc3_core_fifo_space(dep, DWC3_TXREQQ);
	seq_printf(s, "%u\n", val);