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

Skip to content
Commit 72a472d2 authored by Takeyoshi Kikuchi's avatar Takeyoshi Kikuchi Committed by Felipe Balbi
Browse files

usb: musb: cppi41: fix condition to call cppi41_trans_done().



connect AR9271(USB wifi) to AM335x, and send a flood ping from Mac OSX,
AR9271 is stopped.

on USB bus, the following occurs.

 - OUT transaction is ACKed (NYET).
 - IN transaction is ACKed (512bytes).
 - PING-NAK transaction is continued for about 2 seconds (AR9271 timeout?).

In current imprementation, IN-transaction is not completed because it
checks the empty of TX-FIFO in cppi41_dma_callback().
As a result, communication to AR9271 stops.

This patch modified to check the empty of TX-FIFO only when OUT-transaction.

Signed-off-by: default avatarTakeyoshi Kikuchi <kikuchi@centurysys.co.jp>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 168bdb88
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment