Skip to content

Commit

Permalink
(SMAP) Added workaround for the Rx FIFO of the MAL becoming unrespons…
Browse files Browse the repository at this point in the history
…ive or losing frames.
  • Loading branch information
sp193 committed May 18, 2018
1 parent 70c0585 commit dc918c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iop/network/smap/src/xfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ int HandleRxIntr(struct SmapDriverData *SmapDrivPrivData){

NumPacketsReceived=0;

while(1){
/* Non-Sony: Workaround for the hardware BUG whereby the Rx FIFO of the MAL becomes unresponsive or loses frames when under load.
Check that there are frames to process, before accessing the BD registers. */
while(SMAP_REG8(SMAP_R_RXFIFO_FRAME_CNT) > 0){
PktBdPtr = &rx_bd[SmapDrivPrivData->RxBDIndex % SMAP_BD_MAX_ENTRY];
ctrl_stat = PktBdPtr->ctrl_stat;
if(!(ctrl_stat & SMAP_BD_RX_EMPTY)){
Expand Down

0 comments on commit dc918c3

Please sign in to comment.