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

Commit 68960057 authored by Yoshihiro Shimoda's avatar Yoshihiro Shimoda Committed by Sasha Levin
Browse files

usb: renesas_usbhs: fix the sequence in xfer_work()



[ Upstream commit 9b53d9af7aac09cf249d72bfbf15f08e47c4f7fe ]

This patch fixes the setup sequence in xfer_work(). Otherwise,
sometimes a usb transaction will get stuck.

Signed-off-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
parent 31338a15
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -858,10 +858,10 @@ static void xfer_work(struct work_struct *work)
		fifo->name, usbhs_pipe_number(pipe), pkt->length, pkt->zero);

	usbhs_pipe_running(pipe, 1);
	usbhs_pipe_set_trans_count_if_bulk(pipe, pkt->trans);
	usbhs_pipe_enable(pipe);
	usbhsf_dma_start(pipe, fifo);
	usbhs_pipe_set_trans_count_if_bulk(pipe, pkt->trans);
	dma_async_issue_pending(chan);
	usbhs_pipe_enable(pipe);
}

/*