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

Commit aa5b138a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: dwc3: Process event buffer when pullup is disabled"

parents 60be6f24 fa6a954f
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -3362,6 +3362,12 @@ static void dwc3_process_event_entry(struct dwc3 *dwc,
		return;
	}

	/* If run/stop is cleared don't process any more events */
	if (!dwc->pullups_connected) {
		dbg_print_reg("SKIP_EVT_PULLUP", event->raw);
		return;
	}

	/* Endpoint IRQ, handle it and return early */
	if (event->type.is_devspec == 0) {
		/* depevt */
@@ -3525,12 +3531,6 @@ static irqreturn_t dwc3_interrupt(int irq, void *_dwc)
		temp_cnt += dwc->ev_buffs[i]->count;
	}

	/* If run/stop is cleared don't process any more events */
	if (!dwc->pullups_connected) {
		dev_warn(dwc->dev, "IRQ received but run/stop is cleared\n");
		ret = IRQ_HANDLED;
	}

	spin_unlock(&dwc->lock);

	dwc->irq_start_time[dwc->irq_dbg_index] = start_time;