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

Commit ccc080c7 authored by Ajay Kumar Gupta's avatar Ajay Kumar Gupta Committed by Felipe Balbi
Browse files

usb: musb: fix reset issue with full speed device



TXMAXP register is not getting programmed correctly for a full speed device
as can_bulk_split() have been removed by
"06624818: usb: musb: disable double buffering when it's broken" patch.

Adding back the case for can_bulk_split() to fix the reset message seen with
a full speed stick.

Signed-off-by: default avatarAjay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 1115b9e2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -774,6 +774,10 @@ static void musb_ep_program(struct musb *musb, u8 epnum,
			if (musb->double_buffer_not_ok)
				musb_writew(epio, MUSB_TXMAXP,
						hw_ep->max_packet_sz_tx);
			else if (can_bulk_split(musb, qh->type))
				musb_writew(epio, MUSB_TXMAXP, packet_sz
					| ((hw_ep->max_packet_sz_tx /
						packet_sz) - 1) << 11);
			else
				musb_writew(epio, MUSB_TXMAXP,
						qh->maxpacket |