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

Commit e5d22765 authored by Manu Gautam's avatar Manu Gautam
Browse files

USB: ci13xxx: Don't fail ep_dequeue in suspend if USB not in LPM



Fail ep_dequeue only if USB is in LPM and don't check for USB
bus_suspend as some platforms or function drivers may not allow
USB LPM on bus_suspend.

Change-Id: I1217dc1fa2ac9d6d7b3ffe7498f143ef3fa5ec28
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent 89ebfc0a
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -3247,13 +3247,6 @@ static int ep_dequeue(struct usb_ep *ep, struct usb_request *req)
				__func__);
		return -EAGAIN;
	}

	if (udc->suspended) {
		dev_err(udc->transceiver->dev,
			"%s: Unable to dequeue while suspended\n", __func__);
		return -EAGAIN;
	}

	spin_lock_irqsave(mEp->lock, flags);
	/*
	 * Only ep0 IN is exposed to composite.  When a req is dequeued